365 can be written as a sum of 2 consecutive perfect squares and also 3 consecutive non-zero perfect squares: 365=142+132=122+112+102
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×m2 "
Can't one of them be 3×m2 and the other one 2×n2
Log in to reply
You're right.
Consider m odd. Then, 3m2≡3(mod4). Then either 2n2=3m2+1 or 2n2+1=3m2, with n even and odd, respectively.
In the first case, we get n=23m2+1. From this we get n=2,14,38,74,... and so n=2+6t(t−1)=6t2−6t+2. This requires 3t2−3t+1=2x2, 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=23m2−1 and so n=6t(t−1)+1=6t2−6t+1. We get an answer in n=11,m=9,a=594. 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, 3m2≡0(mod4). But, 2m2≡0,2(mod4), 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∗m2, and that the other is equal to n2. To avoid confusion, something like x2 should be used instead of n2.
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 262+272=1405<1460<1513=272+282 Hence is not the sum of 2 consecutive squares.
Also note that 212+222+232=1454<1460<1589=222+232+242 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×m2 or a=3×m2+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=y2+(y+1)2=(z−1)2+z2+(z+1)2 Rewrite the second equality as (2y+1)2−6z2=3 This is generalized Pell's equation that can be solved as follows, note the fundamental solution (2y+1,z)=(3,1) and consider the related Pell's equation a2−6b2=1 with fundamental solution (5,2). Note that norm N in Z[6] is multiplicative, hence N((5+26)n⋅(3+6))=3 That means 2y+1+z6=(5+26)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 (2y+1,z)∈{(3,1),(27,11),(267,109),…} The solution (27,11) corresponds to x=365, hence consider the solution (267,109), which gives us x=35645=1332+1342=1082+1092+1102 and the answer is 645.
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
(2a)2+(2a+1)2+(2a+2)2=(3b+1)2+(3b+2)2
This equation is equivalent to 2a(a+1)=3b(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}(mod3) and b∈{0,3}(mod4)
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}(mod5)
Combined a∈{0,5,9,14}(mod15) b∈{0,4,15,19}(mod20)
Also, writing 2a2+2a−3b(b+1)=0 we have a=4−2±4+24b(b−1) or simpler a=21+6b(b+1)−1, so 6b(b+1)+1 must be an (odd) square
Time to try a few values:
b=0,a=0:12+22=02+12+22. Correct, but uninteresting and too small.
b=4:6⋅4⋅(4+1)+1=121=112,a=5,n=365.
b=15:1441 is not a square, so no integer value for a satisfies this.
Also for b∈{19,20,24,35,39,40} , 6b(b+1)+1 is not a square.
But for b=44 it is: b=44,6⋅44⋅(44+1)+1=11881=1092 bingo! a=54,2a=108,3b+1=133 and 1082+1092+1102=1332+1342=35645.
Let m,n,m<n such that:
m2+(m+1)2+(m+2)2=(n+1)2+(n+2)2
We get this equation:
3m2+6m=2n2+6n,
From this equation m must be even.
We have condition
n≡0(mod6),
Check this condition , the first numbe after n=12 satisfy this condition is n=132,
where m=108
Hence, the last three digit for next number 1332+1342≡645(mod1000)
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
n2+(n+1)2+(n+2)2=(n+a)2+(n+a+1)2, where a>2.
Expanded, this equals n2+(4−4a)n+(4−2a−2a2), 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−4a)±(4−4a)2−4(4−2a−2a2)
Expanded and reduced, we come to
n=2a−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 gcd(a−1,a)=1, it must be that one of the factors is equal to 6∗m2 and the other is equal to n2.
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=25.
Going back to our original equation of n2+(n+1)2+(n+2)2=(n+a)2+(n+a+1)2, we substitute a=25 and expand to get n2−96n−1296=(n−108)(n+12)=0, thus n=108.
Our desired number is 1332+1342=35645.