Sneaky Sum of Squares

Given that 1 2 + 2 2 + 3 2 + + k 2 = k ( k + 1 ) ( 2 k + 1 ) 6 1^2 + 2^2 + 3^2 + \ldots + k^2 = \frac{k(k+1)(2k+1)}{6} , what is the smallest integer k k such that 1 2 + 2 2 + 3 2 + + k 2 1^2 + 2^2 + 3^2 + \ldots + k^2 is divisible by 100 100 ?


The answer is 24.

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.

23 solutions

Parth Chopra
Dec 8, 2013

We want to find an integer k k such that the expression is divisible by 100 100 .

We can say the following: k ( k + 1 ) ( 2 k + 1 ) 6 = 100 n \frac{k(k+1)(2k+1)}{6} = 100n , where n n is a positive integer.

Simplifying the above equation, we get: k ( k + 1 ) ( 2 k + 1 ) = 600 n k(k+1)(2k+1) = 600n . This means that the product needs to be divisible by 600 times an integer, n n .

It might be helpful to prime factorize 600 600 , which can be written as 2 3 3 5 2 2^{3} * 3 * 5^{2} . We can see that k k must contain at least 3 powers of 2, since both k + 1 k+1 and 2 k + 1 2k+1 will be odd if k k is even. Trying out the value k = 24 k = 24 works, since k k contains 3 powers of 2, and 1 power of three. k + 1 k+1 contains 2 powers of 5. This meets our constraints, so the least possible value for k k is 24 \boxed{24} .

Really similar to the way I did it, nicely done!

Ivan Sekovanić - 7 years, 6 months ago

What a beautiful solution!

Linus Setiabrata - 7 years, 6 months ago

This is the method I used too. But I've got no way to proof that there is no smaller value in k, since I used all the factors in k and k+1. Is there any way to make such proof?

Emptii de Zharim - 7 years, 6 months ago
Vincent Tjeng
May 20, 2014

The question is equivalent to finding the smallest integer k k such that k ( k + 1 ) ( 2 k + 1 ) k(k+1)(2k+1) is divisible by 600 = 2 3 × 3 1 × 5 2 600=2^{3} \times 3^{1} \times 5^{2} .

We note that the integers k , ( k + 1 ) , ( 2 k + 1 ) k, (k+1), (2k+1) are coprime. Therefore, exactly one of these integers must be divisible by 25 25 since they do not share any common factors.

The smallest possible value of k k such that one of the three integers is divisible by 25 25 is k = 12 k=12 , where 2 k + 1 = 25 2k+1=25 . However, we find that the product k ( k + 1 ) ( 2 k + 1 ) = 12 × 13 × 25 = 3900 k(k+1)(2k+1)=12 \times 13 \times 25=3900 is not divisible by 600 600 .

The next smallest possible value of k k is k = 24 k=24 , where k + 1 = 25 k+1=25 . In this case, we find that k ( k + 1 ) ( 2 k + 1 ) = 24 × 25 × 49 = 29400 k(k+1)(2k+1)=24 \times 25 \times 49=29400 is in fact divisible by 600 600 .

Thus, the smallest integer k = 24 k=24 .

Edward showed that we must have k 0 k \equiv 0 or 7 ( m o d 8 ) 7 \pmod{8} and k 0 , 12 k \equiv 0, 12 or 24 ( m o d 25 ) 24 \pmod{25} , which leads to the 6 solutions k 0 , 24 , 87 , 112 , 175 k \equiv 0, 24, 87, 112, 175 or 199 ( m o d 200 ) 199 \pmod{200} .

Students who are unfamiliar with the sum or squares formula i = 1 k i 2 = k ( k + 1 ) ( 2 k + 1 ) \sum_{i=1}^k i^2 = k(k+1)(2k+1) should learn why this is true.

Common mistakes

  1. Since we are looking for the smallest possible number, you have to justify why it is indeed the smallest possible.

  2. Solutions that proceed by trial and error have to explain their process properly, instead of merely saying "Try k = 12 k = 12 doesn't work, try k = 24 k = 24 , it works)". It's better to show that all possible cases from 1 to 23 doesn't work.

  3. Be careful with your notation. k ( k + 1 ) ( 2 k + 1 ) 600 k(k+1)(2k+1) \mid 600 is very different from 600 k ( k + 1 ) ( 2 k + 1 ) 600 \mid k (k+1) (2k+1) .

  4. Some forgot the multiple of 2 in the denominator. [Pop quiz: Why isn't the multiple of 3 in the denominator that important? ]

Calvin Lin Staff - 7 years ago
Edward Chen
May 20, 2014

k(k+1)(2k+1)= 600N = 8 25 3*an integer

k(k+1)(2k+1) is always divisible by 3. This can be proved by method of exhaustion. If k = 0 mod(3), it is obviously true. If k = 1 mod(3), then 2k +1 = 0 mod(3). If k = 2 mod(3), then k+1 = 0 mod(3).

2k +1 is odd and 8 = 2^3. Hence k(k+1)(2k+1) is divisible by 8 iff k(k+1) is. Hence, k = 0 mod(8) or k = -1 mod(8) = 7 mod(8).

It is not possible for k(k+1)(2k+1) to be divisible by 25 by having any two the three factors divisible by 5. This can be shown again by method of exhaustion. If k = 0 mod(5) , then k+1= 1 mod(5) and 2k+1 = 1 mod (5). If k +1 = 0 mod(5), then k = -1 mod(5) and 2k +1= -1 mod(5). If 2k +1 = 0 mod(5), then 2k = -1 mod(5) = 4 mod(5). Hence, k = 2 mod(5) and k+1 = 3 mod(5).

Hence, k(k+1)(2k+1) is divisible by 25 if k = 0 mod(25) or 24 mod(25) or 12 mod(25).

Solving by using the Chinese remainder theorem, the simultaneous solutions are 0, 24, 87, 112, 175, or 199 modulo 200. The smallest positive integer is 24.

Qi Huan Tan
May 20, 2014

Solution 1 Let T n = 1 2 + 2 2 + 3 2 + . . . + n 2 T_n=1^2+2^2+3^2+...+n^2 . When 1 n 23 1\leq{n}\leq23 , T n T_n are not divisible by 100 100 . When n = 24 n=24 , T n = 4900 T_n=4900 , which is divisible by 100. Therefore, 24 24 is the smallest integer required.

Solution 2 Since 25 100 25|100 and g c d ( 25 , 6 ) = 1 gcd(25,6)=1 , divide into 2 cases:
Case 1 : At least two of k , k + 1 , 2 k + 1 k,k+1,2k+1 are divisible by 5 5 . If k 0 ( m o d 5 ) , k + 1 1 ( m o d 5 ) , 2 k + 1 1 ( m o d 5 ) k\equiv0\pmod{5}, k+1\equiv1\pmod{5}, 2k+1\equiv1\pmod{5} . If k 1 ( m o d 5 ) , k + 1 2 ( m o d 5 ) , 2 k + 1 3 ( m o d 5 ) k\equiv1\pmod{5}, k+1\equiv2\pmod{5}, 2k+1\equiv3\pmod{5} . If k 2 ( m o d 5 ) , k + 1 3 ( m o d 5 ) , 2 k + 1 0 ( m o d 5 ) k\equiv2\pmod{5}, k+1\equiv3\pmod{5}, 2k+1\equiv0\pmod{5} . If k 3 ( m o d 5 ) , k + 1 4 ( m o d 5 ) , 2 k + 1 2 ( m o d 5 ) k\equiv3\pmod{5}, k+1\equiv4\pmod{5}, 2k+1\equiv2\pmod{5} . If k 4 ( m o d 5 ) , k + 1 0 ( m o d 5 ) , 2 k + 1 4 ( m o d 5 ) k\equiv4\pmod{5}, k+1\equiv0\pmod{5}, 2k+1\equiv4\pmod{5} . Therefore, there are no solution for Case 1.
Case 2 : At least one of k , k + 1 , 2 k + 1 k,k+1,2k+1 are divisible by 25 25 . If 25 k + 1 25|k+1 , 25 a = k + 1 25a=k+1 for some positive integer a a , k = 25 a 1 k=25a-1 , when a = 1 , k = 24 a=1, k=24 and this is indeed a solution, when a > 1 , k > 24 a>1, k>24 and contradicts the minimal of k k . If 25 k 25|k , 25 b = k 25b=k for some positive integer b b and for all positive integer b b , k > 24 k>24 , again, contradicts the minimal of k k . If 25 2 k + 1 25|2k+1 , 25 c = 2 k + 1 25c=2k+1 for some positive integer c c , k = 25 c 1 2 k=\frac{25c-1}{2} , when c = 1 , k = 12 c=1, k=12 (does not satisfy the conditions of the problem), when c 2 c\geq2 , k > 24 k>24 , again, contradicts the minimal of k k . Therefore, 24 24 is the required minimum.

Wei Liang Gan
May 20, 2014

100 k ( k + 1 ) ( 2 k + 1 ) 6 25 k ( k + 1 ) ( 2 k + 1 ) 100 \mid \frac{k(k+1)(2k+1)}{6} \Rightarrow 25 \mid k(k+1)(2k+1) which is a product of 3 factors.

Assume all 3 factors are not divisible by 25. At least 2 of the factors must then be divisible by 5.

Case 1: 5 k 5 \mid k . Clearly 5 k + 1 5 \nmid k+1 and 5 2 k + 1 5 \nmid 2k+1 which fails.

Case 2: 5 k 5 \nmid k so 5 k + 1 5 \mid k+1 and 5 2 k + 1 5 \mid 2k+1 but this means that 5 ( 2 k + 1 ) ( k + 1 ) = k 5 \mid (2k+1)-(k+1)=k which is a contradiction.

Therefore, our initial assumption is wrong and at least 1 factor is divisible by 25.

Case 1: 25 k + 1 25 \mid k+1 Therefore, k + 1 25 k 24 k+1 \geq 25 \Rightarrow k \geq 24 . For k = 24 k=24 , k ( k + 1 ) ( 2 k + 1 ) 6 = 4900 \frac{k(k+1)(2k+1)}{6} = 4900 which is divisible by 100.

Case 2: 25 k 25 \mid k Therefore, k 25 k \geq 25 which will not give a smaller integer than in Case 1.

Case 3: 25 2 k + 1 25 \mid 2k+1 Therefore, 2 k + 1 25 k 12 2k+1 \geq 25 \Rightarrow k \geq 12 For k = 12 k=12 , k ( k + 1 ) ( 2 k + 1 ) 6 = 650 \frac{k(k+1)(2k+1)}{6} = 650 which is not divisible by 100. Any other number smaller than 24 will not satisfy 25 2 k + 1 25 \mid 2k+1 .

Therefore, the required answer is 24.

Clarence Chew
May 20, 2014

Note that k k , k + 1 k+1 and 2 k + 1 2k+1 are pairwise coprime.

For 100 1 2 + 2 2 + 3 3 + . . . + k 2 = k ( k + 1 ) ( 2 k + 1 ) 6 100|1^2+2^2+3^3+...+k^2=\frac{k(k+1)(2k+1)}{6} , one of k k , k + 1 k+1 and 2 k + 1 2k+1 have to be a multiple of 25.

The three smallest numbers k k that have that property are 12, 24, and 25, which are easily found by letting k , k + 1 , 2 k + 1 = 25 k, k+1, 2k+1=25 .

Testing these numbers, we see that k = 24 k=24 is the smallest possible, letting 1 2 + 2 2 + 3 2 + . . . + 2 4 2 = 24 × 25 × 49 6 = 4900 1^2+2^2+3^2+...+24^2=\frac{24\times 25\times 49}{6}=4900

Dhani Pannacasey
May 20, 2014

First, concentrate on the value of k to be put so k(k+1)(2k+1) can be divided by 5. This can be achieved when either k, k+1 , or 2k+1 can be divided by 5. Checking the modulo 5 of k, k+1, and 2k+1 when k = 5m, (k+1)mod5 = 1 ,(2k+1)mod5 = 1 and k = 5m+4 , (k+1)mod5 = 0 ,(2k+1)mod5 = 4 => proof that we need either k or k+1 or 2k+1 to be divisible by 25

from that, the smallest k will be 12, making 2k+1 = 25. But this way, 1^2+2^2+...+12^2 = 650 which is not divisible by 100.

so, we move to the next smallest k, which is 24, giving k+1 a value of 25. 1^2+2^2+...+24^2 = 4900 which is divisible by 100.

In conclusion, the smallest k is 24.

Rohit Sarathy
May 20, 2014

For the sum of squares to be divisible by 100, the term k ( k + 1 ) ( 2 k + 1 ) k(k+1)(2k+1) must be divisible by 8 and 25.

Only one of k, k+1, or 2k+1 can be even, and only one can be divisible by 5.

The smallest k that would work is k = 12 such that 2k + 1 is divisible by 25. However, no term is divisible by 8.

The next choice, k = 24, works because k is divisible by 8 and k + 1 is divisible by 25, so that is our answer.

Mateus Lucas
May 20, 2014

Lets say that k ( k + 1 ) ( 2 k + 1 ) 6 = 100 m \dfrac{k(k+1)(2k+1)}{6}=100m for some positive integer m m .

So:

k ( k + 1 ) ( 2 k + 1 ) = 600 m k(k+1)(2k+1)=600m k ( k + 1 ) ( 2 k + 1 ) = 2 3 3 5 2 m k(k+1)(2k+1)=2^3\cdot 3\cdot 5^2m

If k k is odd, k + 1 k+1 is even and 2 k + 1 2k+1 is odd. If k k is even, k + 1 k+1 and 2 k + 1 2k+1 are odd

So, only k k or k + 1 k+1 will be even. Then, one and only one of the three numbers willl be a multiple of 2 3 = 8 2^3=8 .

  1. If k k is multiple of 8 8 , lets say that k = 8 p k=8p for some positive integer p p . Then:

k ( k + 1 ) ( 2 k + 1 ) = 8 p ( 8 p + 1 ) ( 16 p + 1 ) k(k+1)(2k+1)=8p(8p+1)(16p+1) 8 p ( 8 p + 1 ) ( 16 p + 1 ) = 2 3 3 5 2 m 8p(8p+1)(16p+1)=2^3\cdot3\cdot5^2\cdot m p ( 8 p + 1 ) ( 16 p + 1 ) = 3 5 2 m p(8p+1)(16p+1)=3\cdot5^2\cdot m

  • For p = 1 p=1 :

p ( 8 p + 1 ) ( 16 p + 1 ) = 3 2 17 p(8p+1)(16p+1)=3^2\cdot17 3 2 17 = 3 5 2 m 3^2\cdot 17=3\cdot5^2\cdot m

And m m will not be integer.

  • For p = 2 p=2 :

p ( 8 p + 1 ) ( 16 p + 1 ) = 2 17 33 = 2 3 11 17 p(8p+1)(16p+1)=2\cdot17\cdot33=2\cdot3\cdot11\cdot17 2 3 11 17 = 3 5 2 m 2\cdot3\cdot11\cdot17=3\cdot5^2\cdot m

And m m will not be integer.

  • For p = 3 p=3 :

p ( 8 p + 1 ) ( 16 p + 1 ) = 3 25 49 = 3 5 2 7 2 p(8p+1)(16p+1)=3\cdot25\cdot49=3\cdot5^2\cdot7^2 3 5 2 7 2 = 3 5 2 m m = 7 2 3\cdot5^2\cdot7^2=3\cdot5^2\cdot m\implies m=7^2

So, for k k even, the smallest value of k k such 1 2 + 2 2 + + k 2 1^2+2^2+\cdots+k^2 is divisible by 100 is 8 3 = 24 8\cdot3=24 .

  1. If k + 1 k+1 is multiple of 8 8 , lets say that k + 1 = 8 q k+1=8q for some positive integer q q . Then:

k ( k + 1 ) ( 2 k + 1 ) = ( 8 q 1 ) 8 q ( 2 ( 8 q 1 ) + 1 ) k(k+1)(2k+1)=(8q-1)8q(2(8q-1)+1) k ( k + 1 ) ( 2 k + 1 ) = ( 8 q 1 ) 8 q ( 16 q 1 ) k(k+1)(2k+1)=(8q-1)8q(16q-1) ( 8 q 1 ) 8 q ( 16 q 1 ) = 2 3 3 5 2 m (8q-1)8q(16q-1)=2^3\cdot3\cdot5^2\cdot m q ( 8 q 1 ) ( 16 q 1 ) = 3 5 2 m q(8q-1)(16q-1)=3\cdot5^2\cdot m

  • For q = 1 q=1 :

q ( 8 q 1 ) ( 16 q 1 ) = 7 15 = 3 5 7 q(8q-1)(16q-1)=7\cdot15=3\cdot5\cdot7 3 5 7 = 3 5 2 m 3\cdot5\cdot7=3\cdot5^2\cdot m

And m m will not be integer.

  • For q = 2 q=2 :

q ( 8 q 1 ) ( 16 q 1 ) = 2 15 31 = 2 3 5 31 q(8q-1)(16q-1)=2\cdot15\cdot31=2\cdot3\cdot5\cdot31 2 3 5 31 = 3 5 2 m 2\cdot3\cdot5\cdot31=3\cdot5^2\cdot m

And m m will not be integer.

  • For q = 3 q=3 :

q ( 8 q 1 ) ( 16 q 1 ) = 3 23 47 q(8q-1)(16q-1)=3\cdot23\cdot47 3 23 47 = 3 5 2 m 3\cdot23\cdot47=3\cdot5^2\cdot m

And m m will not be integer.

  • For q 4 q\ge 4 , we will have k = 8 q 1 31 k=8q-1\ge31

So, the smallest value of k k such 1 2 + 2 2 + + k 2 1^2+2^2+\cdots+k^2 is when k = 24 k=24 .

Sed Holaysan
May 20, 2014

k(k+1)(2k+1)/6 must be divisible by 100. Therefore, k(k+1)(2k+1) must be divisible by 600 = (2^3)(3)(5^2) = (8)(3)(25). Consider the factor 25, and the possibility that there are two factors each divisible by 5: either (k, k+1), (k, 2k+1), (k+1, 2k+1). If k is congruent to 0 mod 5, k+1 and 2k+1 are congruent to 1 mod 5, so the first two pairs cannot consist of two numbers divisible by 5. For the third pair, if k+1 is congruent to 0 mod 5, then k is congruent to 4 mod 5, and 2k+1 is congruent to 4 mod 5 as well. Therefore, if no two factors can both be divisible by 5, there must be one factor divisible by 25. To achieve the smallest value of k, let the greatest factor 2k+1=25. This yields k=12. However, (12)(12+1)(2 12+1) = 3900, which is not divisible by 600. The next possibility is to let the second greatest factor k+1=25. This leads to k=24, and since (24)(24+1)(2 24+1) = (24)(25)(49) = (600)(49), the expression is divisible by 600. Therefore, k=24.

Shaurya Gupta
Dec 10, 2013

Let S = k ( k + 1 ) ( 2 k + 1 ) S = k(k+1)(2k+1) . Since ( 1 2 + 2 2 + 3 2 + + k 2 ) (1^2 + 2^2 + 3^2 + \ldots + k^2) is a natural number, therefore S 6 \frac{S}{6} is a natural number and 6 S 6|S . ( 2 3 ) S \Rightarrow (2*3)|S

3 can divide any of k , k + 1 k, k+1 and 2 k + 1 2k+1 . 2 cannot divide 2 k + 1 2k+1 . So 2 can divide either of k k or k + 1 k+1 . We want k such that 100 divides S. So ( 5 2 2 2 ) S (5^2*2^2)|S . 8 S . \Rightarrow 8|S. We have two cases:

Case 1: 8 k 8|k

We put in multiples of 8 in S. By trial we see 24 is the smallest value that satisfies 100|S.

Case 2: 8 k + 1 8|k+1

The possible values of k are 7 , 15 , 23 , 7, 15, 23, \ldots . None of these values satisfy 100|S.

Therefore, the smallest possible value of k is 24 \boxed{24} .

Jacob Gurev
May 20, 2014

Obviously the condition is equivalent to k(k+1)(2k+1)|600. Only one of the three things we are multiplying can be 0 mod 5, so whichever one it is must be 0 mod 25. Checking k where one of these is divisible by 25, we find that k=24 gives 24(25)(49)=600*49.

Elijah Tan
May 20, 2014

k(k+1)(2k+1) = 6 x 100 x n = 2^3 x 3 x 5^2 x n 2k + 1 is an odd number. As seen, there is 2^3 x 3 = 24 and 5^2 = 25 which fits k and k+1, therefore, k = 24. Also, to double confirm the answer, 15 and 25 is tried on 2k+1 which is odd and it would not work. Therefore, 24 is the smallest integer for k.

For 1^2 +2^2 + 3^2 + ....... + K^2 to be divisible by 100, k(k+1)(2k+1)should be divisible by 600. therefore k(k+1)(2k+1) should be divisible by 2^2,5^2 and 3.

C S
May 20, 2014

First, I showed that the given equation is divisible by 100.

\frac {k(k+1)(2k+1)}{6}=100n

I then simplified the numerator:

\frac {k(k+1)(2k+1)}{6} = \frac {(k^2+k)(2k+1)}{6} = \frac {2k^3+3k^2+k}{6} = 100n

Next, I multiplied both sides by six to get rid of the denominator:

2k^3+3k^2+k=600n

From this equation, I deduced that k must have at least two digits, and most likely would be a factor of 600. I tried 12 in the equation to see if it was divisible by 600. It did not, but the answer was 6.5:

2k^3+3k^2+k \rightarrow 2{12}^3+3{12}^2+{12} = 3900 \frac{3900}{600} =6.5

Because of this, I realized that 24 should be the answer:

2k^3+3k^2+k \rightarrow 2{24}^3+3{24}^2+{24} = 3900 \frac{29400}{600} =49

Meghal Gupta
May 20, 2014

At most one of the factors in the top is a multiple of 5, so it must be a multiple of 25. Also, the numerator has 3 factors of 2. Thus we try: 12 => numerator has 2 factors of 2; 24 => numerator has 3 factors of 2, so answer is 24. (note this gives us 4900 as a check)

Whatever 21
Dec 9, 2013

* k(k+1)(2k+1)=600x *

For smallest integer let,

k(k+1)=600
or
k(2k+1)=600
or
(k+1)(2k+1)=600



Only k(k+1)=600 has a positive integer solution, where k=24.

When k=24,

k(k+1)(2k+1)=29400, divisible by 600.

Can you explain your thinking step by step? Why must we have those 3 equations? Why can't we have ( k + 1 ) ( 2 k + 1 ) = 1200 (k+1)(2k+1) = 1200 or k ( k + 1 ) ( 2 k + 1 ) = 1200 k(k+1)(2k+1) = 1200 ?

Calvin Lin Staff - 7 years, 6 months ago
Anuj Mishra
Jul 6, 2015

Here is my simple approach :-

Let sum of squares of first 'n' natural numbers = N N

We want smallest k for which N is divisible by 100. Now since square of any

two digit no. is 100 \geq 100

\Rightarrow only the digits in unit place of each number will govern the very last two digits N.

Now we know that,

1 2 = 1 1^2 = 1

2 2 = 4 2^2 = 4

3 2 = 9 3^2 = 9

4 2 = 16 4^2 = 16

5 2 = 25 5^2 = 25

6 2 = 36 6^2 = 36

7 2 = 49 7^2 = 49

8 2 = 64 8^2 = 64

9 2 = 81 9^2 = 81

1 0 2 = 100 10^2 = 100

Now if k = 10 k=10 then N = 385 N=385 . We will start from here.

Now to make N divisible by 100, We have to keep on adding these numbers in sequence untill we get a number divisible by 100. For Example- 400 is not possible since 385 + ( 1 + 4 + 9 ) < 400 < 385 + ( 1 + 4 + 9 + 16 ) 385 + (1 + 4 +9 ) < 400 < 385 + (1 + 4 +9 + 16) .

Proceeding in this way we can clearly see it is not possible for 500, 600 and 700.

But if k = 20 k=20 then N = 770 N=770 to start with.

And we can clearly see that 770 + ( 1 + 4 + 9 + 16 ) = 800 770 + (1 +4 +9 +16) =800

Thus, Required smallest value of k = 24. k=24.

Omkar Krishna
May 20, 2014

From the question, k(k+1)(2k+1)=600n(where n is any integer). Let us suppose k(k+1)=600 and n=2k+1.(Other two combinations are k(2k+1)=600 and k+1=n & (k+1)(2k+1)=600 &k=n which doesnot yield an integer value for k) Hence on solving the above equation k(k+1)=600, acceptable solution is k=24 and n=49

Rohit M
Dec 12, 2013

k(k+1)(2k+1)/6 so k/k+1 or 2k+1 should be divisble by 25 and rest of the two numbers should have 24 as a factor so that after division by 6 we get 100's factor Here first I tried to make 2k+1 as a factor of 25 wherein I got K =12 but then this came to be afctor of 50 but not 100 so then tried to make k+1 as a factor of 25 so k =24 and rest fit

Patrick Chen
Dec 11, 2013

Note that k ( k + 1 ) ( 2 k + 1 ) 6 = 2 k ( 2 k + 1 ) ( 2 k + 2 ) 24 \frac{k(k+1)(2k+1)}{6}=\frac{2k(2k+1)(2k+2)}{24} .

This means that the numerator, the product of 3 consecutive numbers, the first and last even and the middle odd, must be a multiple of 100 24=48 50.

This gives us one solution of 2k(2k+1)(2k+2) = 48 49 50, k = 24.

To prove that this solution is the smallest, note that in 3 consecutive numbers only 1 can be a multiple of 5, so exactly 1 term must be a multiple of 25. The solution found is the smallest one that uses 50 (compared to 49 50 51 and 50 51 52), and so a smaller solution would have to use 25 instead of 50. Since 25 is odd, the only such triple of consecutive numbers is 24 25 26, and this is clearly not a multiple of 2400.

Thus, the answer is k = 24 k=\boxed{24} .

Whoops, forgot about * doing bold.

Should be 100x24=48x50, 48x49x50, etc.

Patrick Chen - 7 years, 6 months ago
Balaji Nakkella
Dec 10, 2013

//bruteforce approach

include<stdio.h>

int main() { int k; k=1; while(1) { if(((k (k+1) (2*k+1))/6)%100==0) { break; } k++; } printf("%d",k); return 0;
}

Trial and error may prove correct but its wrong. The elimination method would do. Firstly, any of those 3 above terms must be a multiple of 25. So, the answers will be 12, 24, etc... Now this luckily proved to be easier. Can someone tell me the perfect method??

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...