Sum Of Squares

Find the smallest positive integer k k such that 1 2 + 2 2 + 3 2 + + k 2 1^2+2^2+3^2+\ldots+k^2 is a multiple of 200.


The answer is 112.

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.

1 solution

Patrick Corn
Apr 27, 2015

We get that k ( k + 1 ) ( 2 k + 1 ) k(k+1)(2k+1) is a multiple of 1200 = 2 4 3 5 2 1200 = 2^4 \cdot 3 \cdot 5^2 . It's a multiple of 3 3 for free. To be a multiple of 16 16 we need k 0 , 15 k \equiv 0,15 mod 16 16 . To be a multiple of 25 25 we need k 0 , 12 , 24 k \equiv 0,12,24 mod 25 25 . This leads to six solutions mod 400 400 : 0 , 112 , 175 , 224 , 287 , 399 0,112,175,224,287,399 . The smallest positive integer in these congruence classes is 112 \fbox{112} .

Why are you using k ( k + 1 ) ( 2 k + 1 ) k(k+1)(2k+1) ?

E Tyson Ewing III - 5 years ago

Log in to reply

Because 1 2 + 2 2 + + k 2 = k ( k + 1 ) ( 2 k + 1 ) 6 . 1^2+2^2+\cdots+k^2 = \dfrac{k(k+1)(2k+1)}6.

Patrick Corn - 5 years ago

Log in to reply

THAT'S what I was forgetting!

E Tyson Ewing III - 5 years ago

General formula for sum of squares...

Anubhav Mahapatra - 3 years, 8 months ago

Sum(k²)=n(n+1)(2n+1)/6=200q n(n+1)(2n+1)=1200q 2n³+3n²+n-1200q=0/ 4,2n=m m³+3m²+2m-4800q=0,m=t-1 t³-t-4800q=0 (t-1)t(t+1)=25 3 2 32q So one of numbers t-1,t,t+1 is divided by 25,other by 32 So 25a-32b=1 So a=1 (mod 8) a=8c+1 200c+24-32b=0 25c=4b-3, c=1 (mod 4) c=4d+1 100d+28=4b b=25d+7 a=32d+9 Smallest solution is for d=0 a=9,b=7 So one number is 9 25=225 Other is 7 32=224 t=2n+1 is odd number so t=225 n=112 is such smallest number Other case 25a-32b=2 , a,b are integers So a=2c, 25c-16b=1 c=1 (mod 8), c=8d+1 200d+24-16b=0 2b=25d+3,d=2e+1 b=25e+14,a=32e+18 So min. Is for e=-1 b=-11,a=-14 32 11-25 14=2 t+1=352, 2n+2=352 n=175, so min. Is min(112,175)=112

Nikola Djuric - 4 years, 7 months ago

wolframalpha code

{mod(sum(n^2,n=1 to k),200)=0, k>0}

choose least as n=0 in k=16(75n+7)

=112

Harout G. Vartanian - 4 years, 4 months ago

Can you explain why k=15 mod 16, k=12,24 mod 25 satisfies the condition? I don't quite get it.

Phoenix Liu - 4 years, 2 months ago

Log in to reply

@Patrick Corn

Phoenix Liu - 4 years, 2 months ago

Log in to reply

@Patrick Corn Thank you so much!

Phoenix Liu - 4 years, 2 months ago

The factors k , k, k + 1 , k+1, and 2 k + 1 2k+1 are relatively prime, so if the product is a multiple of 16 16 then one of the factors is. So either 16 16 divides k k or 16 16 divides k + 1 k+1 ( 16 16 can't divide 2 k + 1 , 2k+1, which is odd).

Similarly, the three cases 0 , 12 , 24 0,12,24 mod 25 25 arise from setting k , 2 k + 1 , k + 1 k,2k+1,k+1 congruent to 0 0 mod 25 25 respectively.

Does that make sense?

Patrick Corn - 4 years, 2 months ago

You also need to notice that k , k + 1 , 2 k + 1 k,\:k+1,\:2k+1 are pairwise relatively prime - that's why you cannot distribute e.g. 2 4 2^4 into different factors, leaving you with the six possibilities Patrick Corn lists.

Carsten Meyer - 1 year, 1 month ago

Log in to reply

Would you please explain why he said "This leads to six solutions mod 400: 0,112,175,224,287,3990,112,175,224,287,399." Did he do it using chinese remainder theorem?

Log in to reply

Yes, that's right.

Patrick Corn - 1 year ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...