Show solution to recurrence is never a squarePrimes of the form 1..1Integers divide several solutions to Greatest Common Divisor equationProving a solution to a double recurrence is exhaustiveNumbers that are clearly NOT a SquareProcedural question regarding number of steps in Euclidean algorithmLimit of sequence in which each term is the average of its preceding k terms.Geometric represntation of terms for reccurence sequence with $f(x)=frac-12 x+3$?How many digits occur in the $100^th$ term of the following recurrence?Convergence of a linear recurrence equationDerivative of integral for non-negative part functions

Will a coyote attack my dog on a leash while I'm on a hiking trail?

How might a landlocked lake become a complete ecosystem?

Did galley captains put corks in the mouths of slave rowers to keep them quiet?

Were any of the books mentioned in this scene from the movie Hackers real?

Why didn't the Avengers use this object earlier?

Can I say: "When was your train leaving?" if the train leaves in the future?

The meaning of the Middle English word “king”

How to cope with regret and shame about not fully utilizing opportunities during PhD?

Does "Software Updater" only update software installed using apt, or also software installed using snap?

How to not get blinded by an attack at dawn

Adding labels and comments to a matrix

Polynomial division: Is this trick obvious?

Source of the Wildfire?

How does this Martian habitat 3D printer built for NASA work?

How to make a not so good looking person more appealing?

Creative Commons useage question!

Is Valonqar prophecy unfulfilled?

complicated arrows in flowcharts

Who commanded or executed this action in Game of Thrones S8E5?

Extract the characters before last colon

Problem in downloading videos using youtube-dl from unsupported sites

How to continually let my readers know what time it is in my story, in an organic way?

Why weren't the bells paid heed to in S8E5?

Can a tourist shoot a gun for recreational purpose in the USA?



Show solution to recurrence is never a square


Primes of the form 1..1Integers divide several solutions to Greatest Common Divisor equationProving a solution to a double recurrence is exhaustiveNumbers that are clearly NOT a SquareProcedural question regarding number of steps in Euclidean algorithmLimit of sequence in which each term is the average of its preceding k terms.Geometric represntation of terms for reccurence sequence with $f(x)=frac-12 x+3$?How many digits occur in the $100^th$ term of the following recurrence?Convergence of a linear recurrence equationDerivative of integral for non-negative part functions













3












$begingroup$


Cute problem I saw on quora:



If
$u_1 = 1,
u_n+1 = n+sum_k=1^n u_k^2
$
,
show that,
for $n ge 2$,
$u_n$ is never a square.



$
n=1: u_2 = 1+1 = 2\
n=2: u_3 = 2+1+4 = 7\
n=3: u_4 = 3+1+4+49 = 57\
$



And, as usual,
I have a generalization:



If
$a ge 1, b ge 0, u_1 = 1,
u_n+1 = an+b+sum_k=1^n u_k^2,
a, b in mathbbZ,
$
then
for $n ge 3$,
$u_n$ is never a square.



Note:
My solutions to these
do not involve
any explicit expressions
for the $u_n$.










share|cite|improve this question









$endgroup$







  • 1




    $begingroup$
    I see the answer from considering modulo $5$. I wonder if it could also be proved that $u_n$ is never a square because $u_n-1<sqrtu_n<u_n-1+1$
    $endgroup$
    – J. W. Tanner
    1 hour ago















3












$begingroup$


Cute problem I saw on quora:



If
$u_1 = 1,
u_n+1 = n+sum_k=1^n u_k^2
$
,
show that,
for $n ge 2$,
$u_n$ is never a square.



$
n=1: u_2 = 1+1 = 2\
n=2: u_3 = 2+1+4 = 7\
n=3: u_4 = 3+1+4+49 = 57\
$



And, as usual,
I have a generalization:



If
$a ge 1, b ge 0, u_1 = 1,
u_n+1 = an+b+sum_k=1^n u_k^2,
a, b in mathbbZ,
$
then
for $n ge 3$,
$u_n$ is never a square.



Note:
My solutions to these
do not involve
any explicit expressions
for the $u_n$.










share|cite|improve this question









$endgroup$







  • 1




    $begingroup$
    I see the answer from considering modulo $5$. I wonder if it could also be proved that $u_n$ is never a square because $u_n-1<sqrtu_n<u_n-1+1$
    $endgroup$
    – J. W. Tanner
    1 hour ago













3












3








3





$begingroup$


Cute problem I saw on quora:



If
$u_1 = 1,
u_n+1 = n+sum_k=1^n u_k^2
$
,
show that,
for $n ge 2$,
$u_n$ is never a square.



$
n=1: u_2 = 1+1 = 2\
n=2: u_3 = 2+1+4 = 7\
n=3: u_4 = 3+1+4+49 = 57\
$



And, as usual,
I have a generalization:



If
$a ge 1, b ge 0, u_1 = 1,
u_n+1 = an+b+sum_k=1^n u_k^2,
a, b in mathbbZ,
$
then
for $n ge 3$,
$u_n$ is never a square.



Note:
My solutions to these
do not involve
any explicit expressions
for the $u_n$.










share|cite|improve this question









$endgroup$




Cute problem I saw on quora:



If
$u_1 = 1,
u_n+1 = n+sum_k=1^n u_k^2
$
,
show that,
for $n ge 2$,
$u_n$ is never a square.



$
n=1: u_2 = 1+1 = 2\
n=2: u_3 = 2+1+4 = 7\
n=3: u_4 = 3+1+4+49 = 57\
$



And, as usual,
I have a generalization:



If
$a ge 1, b ge 0, u_1 = 1,
u_n+1 = an+b+sum_k=1^n u_k^2,
a, b in mathbbZ,
$
then
for $n ge 3$,
$u_n$ is never a square.



Note:
My solutions to these
do not involve
any explicit expressions
for the $u_n$.







elementary-number-theory recurrence-relations square-numbers






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked 1 hour ago









marty cohenmarty cohen

76.8k549130




76.8k549130







  • 1




    $begingroup$
    I see the answer from considering modulo $5$. I wonder if it could also be proved that $u_n$ is never a square because $u_n-1<sqrtu_n<u_n-1+1$
    $endgroup$
    – J. W. Tanner
    1 hour ago












  • 1




    $begingroup$
    I see the answer from considering modulo $5$. I wonder if it could also be proved that $u_n$ is never a square because $u_n-1<sqrtu_n<u_n-1+1$
    $endgroup$
    – J. W. Tanner
    1 hour ago







1




1




$begingroup$
I see the answer from considering modulo $5$. I wonder if it could also be proved that $u_n$ is never a square because $u_n-1<sqrtu_n<u_n-1+1$
$endgroup$
– J. W. Tanner
1 hour ago




$begingroup$
I see the answer from considering modulo $5$. I wonder if it could also be proved that $u_n$ is never a square because $u_n-1<sqrtu_n<u_n-1+1$
$endgroup$
– J. W. Tanner
1 hour ago










2 Answers
2






active

oldest

votes


















2












$begingroup$

The problem, indeed, is very cute.



We just need to check the condition $textrmmod 5$:
$$u_1 equiv 1 textrm mod 5$$
$$u_2 equiv 2 textrm mod 5$$
$$u_3 equiv 2 textrm mod 5$$
etc.



Therefore, one can show by induction that for any $n in mathbbN$:
$$u_n+1 equiv left[ n+1+sum_j=2^n (-1) right] textrm mod 5 equiv 2 textrm mod 5.$$
The latter is never true for squares, since squares are equal to either 1 or 4 mod 5.



To prove the generalization, we use the recurrence relation of type
$$u_n+1 = u_n^2+u_n+a.$$
Notice that $u_n+1>u_n^2$ since $a>0$.



Therefore, if $u_n+1$ is a perfect square, then $ageq u_n+1 > u_n$.



But $a>u_n$ is impossible since for any $n geq 3$:
$$u_n = u_n-1^2+u_n-1+a >a.$$
This gives us a contradiction, so $u_n$ is never a perfect square for any
$ngeq 3$.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    although, I need to think a bit more about the generalization
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    That is very nice, and it is completely different than my solution, so I will accept it. Now, how about the generalization?
    $endgroup$
    – marty cohen
    1 hour ago










  • $begingroup$
    thank you! i am thinking about the generalization right now.
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    I added the proof for the generalization by editing this post.
    $endgroup$
    – Jane
    41 mins ago


















3












$begingroup$

The recurrence can be rewritten as
begineqnarray*
u_n+1=u_n^2+u_n+1.
endeqnarray*

It is easy to show that
begineqnarray*
u_n^2 < u_n+1 <(u_n+1)^2.
endeqnarray*

Now observe that there is no whole numbers between $u_n$ & $u_n+1$.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    This was the idea I expressed in my comment; I just didn't take the time to flesh it out; thank you for doing so
    $endgroup$
    – J. W. Tanner
    39 mins ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3225094%2fshow-solution-to-recurrence-is-never-a-square%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

The problem, indeed, is very cute.



We just need to check the condition $textrmmod 5$:
$$u_1 equiv 1 textrm mod 5$$
$$u_2 equiv 2 textrm mod 5$$
$$u_3 equiv 2 textrm mod 5$$
etc.



Therefore, one can show by induction that for any $n in mathbbN$:
$$u_n+1 equiv left[ n+1+sum_j=2^n (-1) right] textrm mod 5 equiv 2 textrm mod 5.$$
The latter is never true for squares, since squares are equal to either 1 or 4 mod 5.



To prove the generalization, we use the recurrence relation of type
$$u_n+1 = u_n^2+u_n+a.$$
Notice that $u_n+1>u_n^2$ since $a>0$.



Therefore, if $u_n+1$ is a perfect square, then $ageq u_n+1 > u_n$.



But $a>u_n$ is impossible since for any $n geq 3$:
$$u_n = u_n-1^2+u_n-1+a >a.$$
This gives us a contradiction, so $u_n$ is never a perfect square for any
$ngeq 3$.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    although, I need to think a bit more about the generalization
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    That is very nice, and it is completely different than my solution, so I will accept it. Now, how about the generalization?
    $endgroup$
    – marty cohen
    1 hour ago










  • $begingroup$
    thank you! i am thinking about the generalization right now.
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    I added the proof for the generalization by editing this post.
    $endgroup$
    – Jane
    41 mins ago















2












$begingroup$

The problem, indeed, is very cute.



We just need to check the condition $textrmmod 5$:
$$u_1 equiv 1 textrm mod 5$$
$$u_2 equiv 2 textrm mod 5$$
$$u_3 equiv 2 textrm mod 5$$
etc.



Therefore, one can show by induction that for any $n in mathbbN$:
$$u_n+1 equiv left[ n+1+sum_j=2^n (-1) right] textrm mod 5 equiv 2 textrm mod 5.$$
The latter is never true for squares, since squares are equal to either 1 or 4 mod 5.



To prove the generalization, we use the recurrence relation of type
$$u_n+1 = u_n^2+u_n+a.$$
Notice that $u_n+1>u_n^2$ since $a>0$.



Therefore, if $u_n+1$ is a perfect square, then $ageq u_n+1 > u_n$.



But $a>u_n$ is impossible since for any $n geq 3$:
$$u_n = u_n-1^2+u_n-1+a >a.$$
This gives us a contradiction, so $u_n$ is never a perfect square for any
$ngeq 3$.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    although, I need to think a bit more about the generalization
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    That is very nice, and it is completely different than my solution, so I will accept it. Now, how about the generalization?
    $endgroup$
    – marty cohen
    1 hour ago










  • $begingroup$
    thank you! i am thinking about the generalization right now.
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    I added the proof for the generalization by editing this post.
    $endgroup$
    – Jane
    41 mins ago













2












2








2





$begingroup$

The problem, indeed, is very cute.



We just need to check the condition $textrmmod 5$:
$$u_1 equiv 1 textrm mod 5$$
$$u_2 equiv 2 textrm mod 5$$
$$u_3 equiv 2 textrm mod 5$$
etc.



Therefore, one can show by induction that for any $n in mathbbN$:
$$u_n+1 equiv left[ n+1+sum_j=2^n (-1) right] textrm mod 5 equiv 2 textrm mod 5.$$
The latter is never true for squares, since squares are equal to either 1 or 4 mod 5.



To prove the generalization, we use the recurrence relation of type
$$u_n+1 = u_n^2+u_n+a.$$
Notice that $u_n+1>u_n^2$ since $a>0$.



Therefore, if $u_n+1$ is a perfect square, then $ageq u_n+1 > u_n$.



But $a>u_n$ is impossible since for any $n geq 3$:
$$u_n = u_n-1^2+u_n-1+a >a.$$
This gives us a contradiction, so $u_n$ is never a perfect square for any
$ngeq 3$.






share|cite|improve this answer











$endgroup$



The problem, indeed, is very cute.



We just need to check the condition $textrmmod 5$:
$$u_1 equiv 1 textrm mod 5$$
$$u_2 equiv 2 textrm mod 5$$
$$u_3 equiv 2 textrm mod 5$$
etc.



Therefore, one can show by induction that for any $n in mathbbN$:
$$u_n+1 equiv left[ n+1+sum_j=2^n (-1) right] textrm mod 5 equiv 2 textrm mod 5.$$
The latter is never true for squares, since squares are equal to either 1 or 4 mod 5.



To prove the generalization, we use the recurrence relation of type
$$u_n+1 = u_n^2+u_n+a.$$
Notice that $u_n+1>u_n^2$ since $a>0$.



Therefore, if $u_n+1$ is a perfect square, then $ageq u_n+1 > u_n$.



But $a>u_n$ is impossible since for any $n geq 3$:
$$u_n = u_n-1^2+u_n-1+a >a.$$
This gives us a contradiction, so $u_n$ is never a perfect square for any
$ngeq 3$.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited 41 mins ago

























answered 1 hour ago









JaneJane

1,238313




1,238313











  • $begingroup$
    although, I need to think a bit more about the generalization
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    That is very nice, and it is completely different than my solution, so I will accept it. Now, how about the generalization?
    $endgroup$
    – marty cohen
    1 hour ago










  • $begingroup$
    thank you! i am thinking about the generalization right now.
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    I added the proof for the generalization by editing this post.
    $endgroup$
    – Jane
    41 mins ago
















  • $begingroup$
    although, I need to think a bit more about the generalization
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    That is very nice, and it is completely different than my solution, so I will accept it. Now, how about the generalization?
    $endgroup$
    – marty cohen
    1 hour ago










  • $begingroup$
    thank you! i am thinking about the generalization right now.
    $endgroup$
    – Jane
    1 hour ago










  • $begingroup$
    I added the proof for the generalization by editing this post.
    $endgroup$
    – Jane
    41 mins ago















$begingroup$
although, I need to think a bit more about the generalization
$endgroup$
– Jane
1 hour ago




$begingroup$
although, I need to think a bit more about the generalization
$endgroup$
– Jane
1 hour ago












$begingroup$
That is very nice, and it is completely different than my solution, so I will accept it. Now, how about the generalization?
$endgroup$
– marty cohen
1 hour ago




$begingroup$
That is very nice, and it is completely different than my solution, so I will accept it. Now, how about the generalization?
$endgroup$
– marty cohen
1 hour ago












$begingroup$
thank you! i am thinking about the generalization right now.
$endgroup$
– Jane
1 hour ago




$begingroup$
thank you! i am thinking about the generalization right now.
$endgroup$
– Jane
1 hour ago












$begingroup$
I added the proof for the generalization by editing this post.
$endgroup$
– Jane
41 mins ago




$begingroup$
I added the proof for the generalization by editing this post.
$endgroup$
– Jane
41 mins ago











3












$begingroup$

The recurrence can be rewritten as
begineqnarray*
u_n+1=u_n^2+u_n+1.
endeqnarray*

It is easy to show that
begineqnarray*
u_n^2 < u_n+1 <(u_n+1)^2.
endeqnarray*

Now observe that there is no whole numbers between $u_n$ & $u_n+1$.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    This was the idea I expressed in my comment; I just didn't take the time to flesh it out; thank you for doing so
    $endgroup$
    – J. W. Tanner
    39 mins ago















3












$begingroup$

The recurrence can be rewritten as
begineqnarray*
u_n+1=u_n^2+u_n+1.
endeqnarray*

It is easy to show that
begineqnarray*
u_n^2 < u_n+1 <(u_n+1)^2.
endeqnarray*

Now observe that there is no whole numbers between $u_n$ & $u_n+1$.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    This was the idea I expressed in my comment; I just didn't take the time to flesh it out; thank you for doing so
    $endgroup$
    – J. W. Tanner
    39 mins ago













3












3








3





$begingroup$

The recurrence can be rewritten as
begineqnarray*
u_n+1=u_n^2+u_n+1.
endeqnarray*

It is easy to show that
begineqnarray*
u_n^2 < u_n+1 <(u_n+1)^2.
endeqnarray*

Now observe that there is no whole numbers between $u_n$ & $u_n+1$.






share|cite|improve this answer









$endgroup$



The recurrence can be rewritten as
begineqnarray*
u_n+1=u_n^2+u_n+1.
endeqnarray*

It is easy to show that
begineqnarray*
u_n^2 < u_n+1 <(u_n+1)^2.
endeqnarray*

Now observe that there is no whole numbers between $u_n$ & $u_n+1$.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered 56 mins ago









Donald SplutterwitDonald Splutterwit

23.3k21446




23.3k21446











  • $begingroup$
    This was the idea I expressed in my comment; I just didn't take the time to flesh it out; thank you for doing so
    $endgroup$
    – J. W. Tanner
    39 mins ago
















  • $begingroup$
    This was the idea I expressed in my comment; I just didn't take the time to flesh it out; thank you for doing so
    $endgroup$
    – J. W. Tanner
    39 mins ago















$begingroup$
This was the idea I expressed in my comment; I just didn't take the time to flesh it out; thank you for doing so
$endgroup$
– J. W. Tanner
39 mins ago




$begingroup$
This was the idea I expressed in my comment; I just didn't take the time to flesh it out; thank you for doing so
$endgroup$
– J. W. Tanner
39 mins ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3225094%2fshow-solution-to-recurrence-is-never-a-square%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу