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

How might a landlocked lake become a complete ecosystem?

Polynomial division: Is this trick obvious?

How to disable Two-factor authentication for Apple ID?

Can only the master initiate communication in SPI whereas in I2C the slave can also initiate the communication?

Meaning of "work with shame"

Is there any way to adjust the damage type of the Eldritch Blast cantrip so that it does fire damage?

Re-testing of regression test bug fixes or re-run regression tests?

Biology of a Firestarter

The meaning of the Middle English word “king”

Creative Commons useage question!

Problem in downloading videos using youtube-dl from unsupported sites

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

Promotion comes with unexpected 24/7/365 on-call

Ansible: use group_vars directly without with_items

How to redirect stdout to a file, and stdout+stderr to another one?

Filter a data-frame and add a new column according to the given condition

Help understanding this line - usage of くれる

Is 95% of what you read in the financial press “either wrong or irrelevant?”

Show solution to recurrence is never a square

Segmentation fault when popping x86 stack

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

Is this a group? If so, what group is it?

Under what charges was this character executed in Game of Thrones, The Bells?

How do I identify the partitions of my hard drive in order to then shred them all?



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


















4












$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
    1 hour ago


















4












$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
    1 hour 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









4












$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
    1 hour ago















4












$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
    1 hour ago













4












4








4





$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 1 hour ago

























answered 1 hour ago









JaneJane

1,258313




1,258313











  • $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
    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$
    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
    1 hour 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
1 hour ago




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











4












$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
    1 hour ago















4












$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
    1 hour ago













4












4








4





$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 1 hour 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
    1 hour 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
    1 hour 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
1 hour 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
1 hour 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

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單