3 6 5 can be written as a sum of 2 consecutive perfect squares and also 3 consecutive non-zero perfect squares: 3 6 5 = 1 4 2 + 1 3 2 = 1 2 2 + 1 1 2 + 1 0 2
What is the next number with this property?
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.
You said:
" it must be that one of the factors is equal to 6 × m 2 "
Can't one of them be 3 × m 2 and the other one 2 × n 2
Log in to reply
You're right.
Consider m odd. Then, 3 m 2 ≡ 3 ( m o d 4 ) . Then either 2 n 2 = 3 m 2 + 1 or 2 n 2 + 1 = 3 m 2 , with n even and odd, respectively.
In the first case, we get n = 2 3 m 2 + 1 . From this we get n = 2 , 1 4 , 3 8 , 7 4 , . . . and so n = 2 + 6 t ( t − 1 ) = 6 t 2 − 6 t + 2 . This requires 3 t 2 − 3 t + 1 = 2 x 2 , but clearly it is odd ∀ t . ( t is just some number I picked from the positive integers to make this explanation easier)
In the second case, we get n = 2 3 m 2 − 1 and so n = 6 t ( t − 1 ) + 1 = 6 t 2 − 6 t + 1 . We get an answer in n = 1 1 , m = 9 , a = 5 9 4 . In particular, the solutions are described by http://www.wolframalpha.com/input/?i=1%2F12+%286%2B3+%285-2+sqrt%286%29%29%5Ek%2Bsqrt%286%29+%285-2+sqrt%286%29%29%5Ek%2B3+%285%2B2+sqrt%286%29%29%5Ek-sqrt%286%29+%285%2B2+sqrt%286%29%29%5Ek%29 and http://www.wolframalpha.com/input/?i=1%2F12+%286-3+%285-2+sqrt%286%29%29%5Ek-sqrt%286%29+%285-2+sqrt%286%29%29%5Ek-3+%285%2B2+sqrt%286%29%29%5Ek%2Bsqrt%286%29+%285%2B2+sqrt%286%29%29%5Ek%29
Consider m even. Then, 3 m 2 ≡ 0 ( m o d 4 ) . But, 2 m 2 ≡ 0 , 2 ( m o d 4 ) , so this is impossible (since they are separated each by 1).
So yes, you're right.
Nice solution! However, there are some typos/mistakes. You mentioned the discriminant being equal to 0, when the discriminant should actually be equal to a perfect square. Also, you said that one of the factors is equal to 6 ∗ m 2 , and that the other is equal to n 2 . To avoid confusion, something like x 2 should be used instead of n 2 .
On a complete side note, I found that using n as the middle number instead of the first number makes the computation a little easier.
it is Wrong.the answer is 1460.
Log in to reply
Justification?
Note that 2 6 2 + 2 7 2 = 1 4 0 5 < 1 4 6 0 < 1 5 1 3 = 2 7 2 + 2 8 2 Hence is not the sum of 2 consecutive squares.
Also note that 2 1 2 + 2 2 2 + 2 3 2 = 1 4 5 4 < 1 4 6 0 < 1 5 8 9 = 2 2 2 + 2 3 2 + 2 4 2 Hence is not the sum of 3 consecutive squares.
Further checks can be done to show that 1460 is not the sum of an number of consecutive squares.
In fact, if
a
=
3
×
m
2
or
a
=
3
×
m
2
+
1
, it is very difficult to find the solution. I have checked till
m
=
8
and i haven't found any solution. Can you tell me what value of
m
will give the solution. I don't know how did you get the right answer with a wrong assumption.
OR
I am doing a very silly mistake for which I apologize in advance. But please clarify.
What if sqrt[6a(a-1)]=594 when a=243? Then none of 243 or 242 is a multiple of 6
We wish to find x , y , z ∈ N such that x = y 2 + ( y + 1 ) 2 = ( z − 1 ) 2 + z 2 + ( z + 1 ) 2 Rewrite the second equality as ( 2 y + 1 ) 2 − 6 z 2 = 3 This is generalized Pell's equation that can be solved as follows, note the fundamental solution ( 2 y + 1 , z ) = ( 3 , 1 ) and consider the related Pell's equation a 2 − 6 b 2 = 1 with fundamental solution ( 5 , 2 ) . Note that norm N in Z [ 6 ] is multiplicative, hence N ( ( 5 + 2 6 ) n ⋅ ( 3 + 6 ) ) = 3 That means 2 y + 1 + z 6 = ( 5 + 2 6 ) n ⋅ ( 3 + 6 ) Plugging in all n ∈ N ∪ { 0 } generates infinite family of solutions (I think it's been proven that it also generates all solutions, but I am not sure), but we only care about the first few solutions, so we get ( 2 y + 1 , z ) ∈ { ( 3 , 1 ) , ( 2 7 , 1 1 ) , ( 2 6 7 , 1 0 9 ) , … } The solution ( 2 7 , 1 1 ) corresponds to x = 3 6 5 , hence consider the solution ( 2 6 7 , 1 0 9 ) , which gives us x = 3 5 6 4 5 = 1 3 3 2 + 1 3 4 2 = 1 0 8 2 + 1 0 9 2 + 1 1 0 2 and the answer is 6 4 5 .
Holy shit!!!
Dude find the solutions for x2-7y2=5 using your method
We make two observations:
Modulo 3: the sum of three consecutive squares, is always 2, and the only solution for the sum of two consecutive squares to be 2 is when they are equivalent to 1^2 and 2^2 Modulo 2: the sum of two consecutive squares is always odd, so the middle one of the triple must be odd.
So any solution can be written with integers a and b, in the form
( 2 a ) 2 + ( 2 a + 1 ) 2 + ( 2 a + 2 ) 2 = ( 3 b + 1 ) 2 + ( 3 b + 2 ) 2
This equation is equivalent to 2 a ( a + 1 ) = 3 b ( b + 1 ) The left hand side of his expression is divisible by 4, while the right hand side is divisible by 3, so a ∈ { 0 , 2 } ( m o d 3 ) and b ∈ { 0 , 3 } ( m o d 4 )
Furthermore, (mod 5) the left hand side can only take values 0, 2 or 4 while the right hand side only takes the values 0, 1 or 3. They can only be equal if the expression is a multiple of 5. Hence a , b ∈ { 0 , 4 } ( m o d 5 )
Combined a ∈ { 0 , 5 , 9 , 1 4 } ( m o d 1 5 ) b ∈ { 0 , 4 , 1 5 , 1 9 } ( m o d 2 0 )
Also, writing 2 a 2 + 2 a − 3 b ( b + 1 ) = 0 we have a = 4 − 2 ± 4 + 2 4 b ( b − 1 ) or simpler a = 2 1 + 6 b ( b + 1 ) − 1 , so 6 b ( b + 1 ) + 1 must be an (odd) square
Time to try a few values:
b = 0 , a = 0 : 1 2 + 2 2 = 0 2 + 1 2 + 2 2 . Correct, but uninteresting and too small.
b = 4 : 6 ⋅ 4 ⋅ ( 4 + 1 ) + 1 = 1 2 1 = 1 1 2 , a = 5 , n = 3 6 5 .
b = 1 5 : 1 4 4 1 is not a square, so no integer value for a satisfies this.
Also for b ∈ { 1 9 , 2 0 , 2 4 , 3 5 , 3 9 , 4 0 } , 6 b ( b + 1 ) + 1 is not a square.
But for b = 4 4 it is: b = 4 4 , 6 ⋅ 4 4 ⋅ ( 4 4 + 1 ) + 1 = 1 1 8 8 1 = 1 0 9 2 bingo! a = 5 4 , 2 a = 1 0 8 , 3 b + 1 = 1 3 3 and 1 0 8 2 + 1 0 9 2 + 1 1 0 2 = 1 3 3 2 + 1 3 4 2 = 3 5 6 4 5 .
Let m , n , m < n such that:
m 2 + ( m + 1 ) 2 + ( m + 2 ) 2 = ( n + 1 ) 2 + ( n + 2 ) 2
We get this equation:
3 m 2 + 6 m = 2 n 2 + 6 n ,
From this equation m must be even.
We have condition
n ≡ 0 ( m o d 6 ) ,
Check this condition , the first numbe after n = 1 2 satisfy this condition is n = 1 3 2 ,
where m = 1 0 8
Hence, the last three digit for next number 1 3 3 2 + 1 3 4 2 ≡ 6 4 5 ( m o d 1 0 0 0 )
Stop using computers to brute force the answer. As brilliant says, "If you need the assistance of a computer to brute force the answer, you are just not looking at the elegant side of the problem".
We need the entire number and not the last 3 digits. Do you have any method for finding other digits. Its annoying as the number can be very large.😁😁😁😁😁
Problem Loading...
Note Loading...
Set Loading...
Our solution will be of the form
n 2 + ( n + 1 ) 2 + ( n + 2 ) 2 = ( n + a ) 2 + ( n + a + 1 ) 2 , where a > 2 .
Expanded, this equals n 2 + ( 4 − 4 a ) n + ( 4 − 2 a − 2 a 2 ) , which is quadratic in n . Since we require n to be an integer, it only makes sense to put this into the quadratic formula and find when our discriminant is equal to 0 .
n = 2 − ( 4 − 4 a ) ± ( 4 − 4 a ) 2 − 4 ( 4 − 2 a − 2 a 2 )
Expanded and reduced, we come to
n = 2 a − 2 ± 6 ( a − 1 ) ( a )
Thus, 6 ( a − 1 ) ( a ) is a perfect square.
When a = 3 , we have the condition given in the premise of the challenge.
Since g c d ( a − 1 , a ) = 1 , it must be that one of the factors is equal to 6 ∗ m 2 and the other is equal to n 2 .
If m = 1 , then the other number is 5 or 7 , so that doesn't work. Trying m = 2 , we find a solution in a = 2 5 .
Going back to our original equation of n 2 + ( n + 1 ) 2 + ( n + 2 ) 2 = ( n + a ) 2 + ( n + a + 1 ) 2 , we substitute a = 2 5 and expand to get n 2 − 9 6 n − 1 2 9 6 = ( n − 1 0 8 ) ( n + 1 2 ) = 0 , thus n = 1 0 8 .
Our desired number is 1 3 3 2 + 1 3 4 2 = 3 5 6 4 5 .