Find the least positive integer n > 1 such that the arithmetic mean of the first n non-zero perfect squares is again a perfect square.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Considering the continued fraction expansion of 4 8 = [ 6 , 1 , 1 2 ]
What is the significance of this line? And how did you show that it is true in the first place?
Log in to reply
The connection between the solution's of Pell's equation and the convergents of the associated continued fraction is a standard piece of Elementary Number Theory, but is too large to describe here. The notation [ 6 , 1 , 1 2 ] means that 4 8 = 6 + 1 + 1 2 + 1 + 1 2 + 1 + ⋯ 1 1 1 1 1 so that the 1 and 1 2 recur in the continued fraction expression.
Log in to reply
Oh, I know what that notation mean. Maybe I didn't clarify. Let me rephrase my question:
Why do you need to find the continued fraction for 4 8 in the first place (what is its significance)? Can't we solve this question without even knowing what continued fractions are to begin with?
And for my response to your last comment: It is too large to describe here? Is that so? What text/sites that can shed light on this matter?
Log in to reply
@Pi Han Goh – This document seems to cover the main ideas. If you want an more "official" version, try A.J Baker's "Elementary Number Theory". A slim paperback which covers the key basics of ENT.
Log in to reply
@Mark Hennings – Thank you for the links.
This pdf ? It only has 66 pages, it feels too short. I thought most undergraduate books should be over 100 pages, especially when it covers so many different areas.
Unfortunately, by glancing through these two pdfs, I still can't determine how continued fractions plays a role in this question. Maybe I'll come back to it some other time.
And what do you mean by "official"? They both seem pretty good to me.
How did you managed to find all relevant articles so quickly anyway? It's like you know the entire library of articles and journals in your fingertips. How did you do that? I couldn't even remember where I last put my keys!
Log in to reply
@Pi Han Goh – Try theorems 1.43 and 1.44 in the Baker notes for the connection between Pell's equation and continued fractions.
I was thinking of this as a published book. The other two seem to be lecture notes or student summaries. Of course, Baker's lecture notes are pretty official.
As to finding documents on the web, my daughter calls it "Google Fu". It helps to have a good idea about what productive search parameters to put in...
Log in to reply
@Mark Hennings – That connection would be a great addition to the pell's equation wiki :)
Perhaps start off with a brief intro of the explanation, and then add the details over time.
@Mark Hennings – How important is this book ? That is: Is Chapters 6 onwards (basically the stuffs I know little about) a great introduction with great examples to work with? Like about as good as Alan J Weir's one? Or much better?
Log in to reply
@Pi Han Goh – The Conciese Introduction is precisely that. It gives you the basics, but does not go into what comes next. If you want more than the basics, you need to upgrade.
Weir's book is a more detailed setting out of a complex theory.
Log in to reply
@Mark Hennings – Wonderful. Concise introduction should do fine for now.
Then a natural follow-up question is: "Do you know any books that is/are an upgrade of Alan Baker's book?"
Log in to reply
@Pi Han Goh – Wait. Come to think of it, an upgrade isn't that important for now. Thanks again (as usual) Mr Mark Hennings!!
Our objective is to find the least integer n greater than 1 which satisfies the Diophantine equation ( n + 1 ) ( 2 n + 1 ) = 2 . 3 m 2 Since 2 n + 1 is odd, this immediately implies that 2 ∣ ( n + 1 ) , i.e. n is odd. Writing n = 2 k − 1 , for some positive integer k > 1 , we have k ( 4 k − 1 ) = 3 m 2 Now note that gcd ( k , 4 k − 1 ) = 1 and 4 k − 1 can never be a perfect square. Hence the solution of the above equation is always of the form k = m 1 2 , 4 k − 1 = 3 m 2 2 For some positive integers m 1 , m 2 > 1 . Taking these two conditions together, we have 4 m 1 2 = 1 + 3 m 2 2 This immediately give us a necessary condition m 2 2 = 1 m o d ( 4 ) , i.e., m 2 = 1 , 3 m o d ( 4 ) . Since we are looking for the smallest solution m 2 > 1 , a simple search over the first few positive integer reveals that m 2 = 1 5 is the smallest integer satisfying the above Diophantine equation and hence m 1 = 1 3 . Thus n = 2 k − 1 = 2 m 1 2 − 1 = 3 3 7
It is well known that k = 1 ∑ n k 2 = 6 n ( n + 1 ) ( 2 n + 1 ) . Divide this by n to find the average; equate this to the square of a number a . ( n + 1 ) ( 2 n + 1 ) = 6 a 2 . Both sides of the equation must be even, but 2 n + 1 is odd. Therefore n + 1 must be even. This allows us to substitute n = 2 m − 1 ∴ m ( 4 m − 1 ) = 3 a 2 . Assuming m > 1 (easy to check), the two factors m , 4 m − 1 have no common factors. Moreover, 4 m − 1 cannot be a perfect square (because it ≡ 3 mod 4), so it must be 3 times a perfect square. Thus we split the square: a = b c ∴ m = b 2 , 4 m − 1 = 3 c 2 3 c 2 = 4 b 2 − 1 ∴ 3 c 2 = ( 2 b + 1 ) ( 2 b − 1 ) . Since b > 1 the two factors on the right have no common factors. Again, split the square: c = p q ∴ b = 2 1 ( p 2 ± 1 ) = 2 1 ( 3 q 2 ∓ 1 ) . p 2 − 3 q 2 = ∓ 2 . It is easy to see that p and q must both be odd. Substitute and divide by 4: p = 2 s − 1 , q = 2 t − 1 ∴ s ( s − 1 ) − 3 t ( t − 1 ) = 0 or 1 . The smallest solution of this equation is s = 3 and t = 2 . Then, working backward p = 2 ⋅ 3 − 1 = 5 ; q = 2 ⋅ 2 − 1 = 3 ; c = 5 ⋅ 3 = 1 5 ; b = 2 1 ( 5 2 + 1 ) = 2 1 ( 3 ⋅ 3 2 − 1 ) = 1 3 ; a = 1 3 ⋅ 1 5 = 1 9 5 ; m = 1 3 2 = 1 6 9 ; ( check: 4 ⋅ 1 6 9 − 1 = 6 7 5 = 3 ⋅ 1 5 2 ) ; n = 2 ⋅ 1 6 9 − 1 = 3 3 7 .
This is similar to my solution that I posted earlier.
Log in to reply
The first half is-- I take a few more steps to reduce 3 c 2 = 4 b 2 − 1 even further, so that we don't have to a search over the first 15 integers.
The techniques used here (reduction using even/odd, reasoning mod 4, splitting a square based on lack of common factors) are standard for Diophantine equations. It is therefore not strange that we find similar solutions.
Log in to reply
I need to test first 8 integers 1 , 3 m o d ( 4 ) .
Problem Loading...
Note Loading...
Set Loading...
We are trying to find integers n > 1 such that n 1 ∑ j = 1 n j 2 = 6 1 ( n + 1 ) ( 2 n + 1 ) = m 2 is a perfect square. This condition rearranges to read ( 4 n + 3 ) 2 − 4 8 m 2 = 1 , and so we are interested in the solutions of Pell's equation x 2 − 4 8 y 2 = 1 . Considering the continued fraction expansion of 4 8 = [ 6 , 1 , 1 2 ] , the first few solutions in positive integers are ( x , y ) = ( 7 , 1 ) , ( 9 7 , 1 4 ) , ( 1 3 5 1 , 1 9 5 ) . Note that these can be obtained as x + y 4 8 = ( 7 + 4 8 ) n for n = 1 , 2 , 3 . Since 9 7 is not congruent to 3 modulo 4 , we are not interested in that solution, and so (since n > 1 ) we want 4 n + 3 = 1 3 5 1 , and hence n = 3 3 7 .