What is the smallest integer n , greater than one, for which the root-mean-square of the first n positive integers is an integer?
N o t e . The root-mean-square of n numbers a 1 , a 2 , ⋯ , a n is defined to be [ n a 1 2 + a 2 2 + ⋯ + a n 2 ] 1 / 2
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.
Oh damn got till that Pell's equation(not by this method though) but just forgot that formula right now(ah darn me) for its solution so had to use programming. Thanks for the Pell's equations
Log in to reply
What's the proof? Had to do something with generating functions?
Log in to reply
Without going into details, say we have a solution ( x 0 , y 0 ) , in our case the minimal solution, then let us rewrite the following x k 2 − 4 8 y k 2 ( x k + 4 8 y k ) ( x k − 4 8 y k ) = ( x 0 2 − 4 8 y 0 2 ) k = 1 ⇒ = ( x 0 + 4 8 y 0 ) k ( x 0 − 4 8 y 0 ) k So x k + 4 8 y k x k − 4 8 y k x k + 4 8 y k + ( x k − 4 8 y k ) ⇒ x k = ( x 0 + 4 8 y 0 ) k = ( x 0 − 4 4 8 y 0 ) k ⇒ = ( x 0 + 4 3 y 0 ) k + ( x 0 − 4 3 y 0 ) k = 2 ( x 0 + 4 3 y 0 ) k + ( x 0 − 4 3 y 0 ) k We can do similarly for y k .
The formula above is not the most convenient way of generating solutions by hand. I have revised my solution a bit such that it applies a slightly easier technique to generate solutions.
Nice! Took me a while to notice the Pell equation.
Problem Loading...
Note Loading...
Set Loading...
The sum of the first n consecutive squares is known as the n 'th pyramid number. The formula for such a number is P n = 6 n ( n + 1 ) ( 2 n + 1 )
So the problem we are asked to solve corresponds to solving the equation n P n = y where y is some positive integer.
Notice that we can rewrite the equation above as n P n 6 1 ( n + 1 ) ( 2 n + 1 ) 2 n 2 + 3 n + 1 2 ( n + 4 3 ) 2 − 8 1 ( 4 n + 3 ) 2 − 4 8 y 2 = y ⇒ = y 2 ⇒ = 6 y 2 ⇒ = 6 y 2 ⇒ = 1 If we let x = 4 n + 3 then we are looking for solutions to the Pell equation for which x ≡ 3 ( m o d 4 ) . For a moment, leave aside the extra restriction on x .
It is easy to see that ( x , y ) = ( 7 , 1 ) is a solution to x 2 − 4 8 y 2 = 1 . Observe that if ( x 0 , y 0 ) is a solution then computing ( x 0 + 4 8 y 0 ) k = x k + 4 8 y k yields another solution ( x k , y k ) for any k .
A few hand calculations generate the following solutions ( 7 , 1 ) , ( 9 7 , 1 4 ) , ( 1 3 5 1 , 1 9 5 ) , ( 1 8 8 1 7 , 2 7 1 6 ) , … The least ''non-trivial'' x -value that is congruent to 3 modulo 4 is x = 1 3 5 1 . Thus, n = 4 1 3 5 1 − 3 = 3 3 7