Given that 1 2 + 2 2 + 3 2 + … + k 2 = 6 k ( k + 1 ) ( 2 k + 1 ) , what is the smallest integer k such that 1 2 + 2 2 + 3 2 + … + k 2 is divisible by 1 0 0 ?
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.
Really similar to the way I did it, nicely done!
What a beautiful solution!
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?
The question is equivalent to finding the smallest integer k such that k ( k + 1 ) ( 2 k + 1 ) is divisible by 6 0 0 = 2 3 × 3 1 × 5 2 .
We note that the integers k , ( k + 1 ) , ( 2 k + 1 ) are coprime. Therefore, exactly one of these integers must be divisible by 2 5 since they do not share any common factors.
The smallest possible value of k such that one of the three integers is divisible by 2 5 is k = 1 2 , where 2 k + 1 = 2 5 . However, we find that the product k ( k + 1 ) ( 2 k + 1 ) = 1 2 × 1 3 × 2 5 = 3 9 0 0 is not divisible by 6 0 0 .
The next smallest possible value of k is k = 2 4 , where k + 1 = 2 5 . In this case, we find that k ( k + 1 ) ( 2 k + 1 ) = 2 4 × 2 5 × 4 9 = 2 9 4 0 0 is in fact divisible by 6 0 0 .
Thus, the smallest integer k = 2 4 .
Edward showed that we must have k ≡ 0 or 7 ( m o d 8 ) and k ≡ 0 , 1 2 or 2 4 ( m o d 2 5 ) , which leads to the 6 solutions k ≡ 0 , 2 4 , 8 7 , 1 1 2 , 1 7 5 or 1 9 9 ( m o d 2 0 0 ) .
Students who are unfamiliar with the sum or squares formula ∑ i = 1 k i 2 = k ( k + 1 ) ( 2 k + 1 ) should learn why this is true.
Common mistakes
Since we are looking for the smallest possible number, you have to justify why it is indeed the smallest possible.
Solutions that proceed by trial and error have to explain their process properly, instead of merely saying "Try k = 1 2 doesn't work, try k = 2 4 , it works)". It's better to show that all possible cases from 1 to 23 doesn't work.
Be careful with your notation. k ( k + 1 ) ( 2 k + 1 ) ∣ 6 0 0 is very different from 6 0 0 ∣ k ( k + 1 ) ( 2 k + 1 ) .
Some forgot the multiple of 2 in the denominator. [Pop quiz: Why isn't the multiple of 3 in the denominator that important? ]
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.
Solution 1 Let T n = 1 2 + 2 2 + 3 2 + . . . + n 2 . When 1 ≤ n ≤ 2 3 , T n are not divisible by 1 0 0 . When n = 2 4 , T n = 4 9 0 0 , which is divisible by 100. Therefore, 2 4 is the smallest integer required.
Solution 2
Since
2
5
∣
1
0
0
and
g
c
d
(
2
5
,
6
)
=
1
, divide into 2 cases:
Case 1
: At least two of
k
,
k
+
1
,
2
k
+
1
are divisible by
5
.
If
k
≡
0
(
m
o
d
5
)
,
k
+
1
≡
1
(
m
o
d
5
)
,
2
k
+
1
≡
1
(
m
o
d
5
)
.
If
k
≡
1
(
m
o
d
5
)
,
k
+
1
≡
2
(
m
o
d
5
)
,
2
k
+
1
≡
3
(
m
o
d
5
)
.
If
k
≡
2
(
m
o
d
5
)
,
k
+
1
≡
3
(
m
o
d
5
)
,
2
k
+
1
≡
0
(
m
o
d
5
)
.
If
k
≡
3
(
m
o
d
5
)
,
k
+
1
≡
4
(
m
o
d
5
)
,
2
k
+
1
≡
2
(
m
o
d
5
)
.
If
k
≡
4
(
m
o
d
5
)
,
k
+
1
≡
0
(
m
o
d
5
)
,
2
k
+
1
≡
4
(
m
o
d
5
)
.
Therefore, there are no solution for Case 1.
Case 2
: At least one of
k
,
k
+
1
,
2
k
+
1
are divisible by
2
5
.
If
2
5
∣
k
+
1
,
2
5
a
=
k
+
1
for some positive integer
a
,
k
=
2
5
a
−
1
, when
a
=
1
,
k
=
2
4
and this is indeed a solution, when
a
>
1
,
k
>
2
4
and contradicts the minimal of
k
. If
2
5
∣
k
,
2
5
b
=
k
for some positive integer
b
and for all positive integer
b
,
k
>
2
4
, again, contradicts the minimal of
k
. If
2
5
∣
2
k
+
1
,
2
5
c
=
2
k
+
1
for some positive integer
c
,
k
=
2
2
5
c
−
1
, when
c
=
1
,
k
=
1
2
(does not satisfy the conditions of the problem), when
c
≥
2
,
k
>
2
4
, again, contradicts the minimal of
k
.
Therefore,
2
4
is the required minimum.
1 0 0 ∣ 6 k ( k + 1 ) ( 2 k + 1 ) ⇒ 2 5 ∣ k ( k + 1 ) ( 2 k + 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 . Clearly 5 ∤ k + 1 and 5 ∤ 2 k + 1 which fails.
Case 2: 5 ∤ k so 5 ∣ k + 1 and 5 ∣ 2 k + 1 but this means that 5 ∣ ( 2 k + 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: 2 5 ∣ k + 1 Therefore, k + 1 ≥ 2 5 ⇒ k ≥ 2 4 . For k = 2 4 , 6 k ( k + 1 ) ( 2 k + 1 ) = 4 9 0 0 which is divisible by 100.
Case 2: 2 5 ∣ k Therefore, k ≥ 2 5 which will not give a smaller integer than in Case 1.
Case 3: 2 5 ∣ 2 k + 1 Therefore, 2 k + 1 ≥ 2 5 ⇒ k ≥ 1 2 For k = 1 2 , 6 k ( k + 1 ) ( 2 k + 1 ) = 6 5 0 which is not divisible by 100. Any other number smaller than 24 will not satisfy 2 5 ∣ 2 k + 1 .
Therefore, the required answer is 24.
Note that k , k + 1 and 2 k + 1 are pairwise coprime.
For 1 0 0 ∣ 1 2 + 2 2 + 3 3 + . . . + k 2 = 6 k ( k + 1 ) ( 2 k + 1 ) , one of k , k + 1 and 2 k + 1 have to be a multiple of 25.
The three smallest numbers k that have that property are 12, 24, and 25, which are easily found by letting k , k + 1 , 2 k + 1 = 2 5 .
Testing these numbers, we see that k = 2 4 is the smallest possible, letting 1 2 + 2 2 + 3 2 + . . . + 2 4 2 = 6 2 4 × 2 5 × 4 9 = 4 9 0 0
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.
For the sum of squares to be divisible by 100, the term k ( k + 1 ) ( 2 k + 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.
Lets say that 6 k ( k + 1 ) ( 2 k + 1 ) = 1 0 0 m for some positive integer m .
So:
k ( k + 1 ) ( 2 k + 1 ) = 6 0 0 m k ( k + 1 ) ( 2 k + 1 ) = 2 3 ⋅ 3 ⋅ 5 2 m
If k is odd, k + 1 is even and 2 k + 1 is odd. If k is even, k + 1 and 2 k + 1 are odd
So, only k or k + 1 will be even. Then, one and only one of the three numbers willl be a multiple of 2 3 = 8 .
k ( k + 1 ) ( 2 k + 1 ) = 8 p ( 8 p + 1 ) ( 1 6 p + 1 ) 8 p ( 8 p + 1 ) ( 1 6 p + 1 ) = 2 3 ⋅ 3 ⋅ 5 2 ⋅ m p ( 8 p + 1 ) ( 1 6 p + 1 ) = 3 ⋅ 5 2 ⋅ m
p ( 8 p + 1 ) ( 1 6 p + 1 ) = 3 2 ⋅ 1 7 3 2 ⋅ 1 7 = 3 ⋅ 5 2 ⋅ m
And m will not be integer.
p ( 8 p + 1 ) ( 1 6 p + 1 ) = 2 ⋅ 1 7 ⋅ 3 3 = 2 ⋅ 3 ⋅ 1 1 ⋅ 1 7 2 ⋅ 3 ⋅ 1 1 ⋅ 1 7 = 3 ⋅ 5 2 ⋅ m
And m will not be integer.
p ( 8 p + 1 ) ( 1 6 p + 1 ) = 3 ⋅ 2 5 ⋅ 4 9 = 3 ⋅ 5 2 ⋅ 7 2 3 ⋅ 5 2 ⋅ 7 2 = 3 ⋅ 5 2 ⋅ m ⟹ m = 7 2
So, for k even, the smallest value of k such 1 2 + 2 2 + ⋯ + k 2 is divisible by 100 is 8 ⋅ 3 = 2 4 .
k ( k + 1 ) ( 2 k + 1 ) = ( 8 q − 1 ) 8 q ( 2 ( 8 q − 1 ) + 1 ) k ( k + 1 ) ( 2 k + 1 ) = ( 8 q − 1 ) 8 q ( 1 6 q − 1 ) ( 8 q − 1 ) 8 q ( 1 6 q − 1 ) = 2 3 ⋅ 3 ⋅ 5 2 ⋅ m q ( 8 q − 1 ) ( 1 6 q − 1 ) = 3 ⋅ 5 2 ⋅ m
q ( 8 q − 1 ) ( 1 6 q − 1 ) = 7 ⋅ 1 5 = 3 ⋅ 5 ⋅ 7 3 ⋅ 5 ⋅ 7 = 3 ⋅ 5 2 ⋅ m
And m will not be integer.
q ( 8 q − 1 ) ( 1 6 q − 1 ) = 2 ⋅ 1 5 ⋅ 3 1 = 2 ⋅ 3 ⋅ 5 ⋅ 3 1 2 ⋅ 3 ⋅ 5 ⋅ 3 1 = 3 ⋅ 5 2 ⋅ m
And m will not be integer.
q ( 8 q − 1 ) ( 1 6 q − 1 ) = 3 ⋅ 2 3 ⋅ 4 7 3 ⋅ 2 3 ⋅ 4 7 = 3 ⋅ 5 2 ⋅ m
And m will not be integer.
So, the smallest value of k such 1 2 + 2 2 + ⋯ + k 2 is when k = 2 4 .
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.
Let S = k ( k + 1 ) ( 2 k + 1 ) . Since ( 1 2 + 2 2 + 3 2 + … + k 2 ) is a natural number, therefore 6 S is a natural number and 6 ∣ S . ⇒ ( 2 ∗ 3 ) ∣ S
3 can divide any of k , k + 1 and 2 k + 1 . 2 cannot divide 2 k + 1 . So 2 can divide either of k or k + 1 . We want k such that 100 divides S. So ( 5 2 ∗ 2 2 ) ∣ S . ⇒ 8 ∣ S . We have two cases:
Case 1: 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
The possible values of k are 7 , 1 5 , 2 3 , … . None of these values satisfy 100|S.
Therefore, the smallest possible value of k is 2 4 .
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.
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.
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
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)
* 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.
Here is my simple approach :-
Let sum of squares of first 'n' natural numbers = N
We want smallest k for which N is divisible by 100. Now since square of any
two digit no. is ≥ 1 0 0
⇒ only the digits in unit place of each number will govern the very last two digits N.
Now we know that,
1 2 = 1
2 2 = 4
3 2 = 9
4 2 = 1 6
5 2 = 2 5
6 2 = 3 6
7 2 = 4 9
8 2 = 6 4
9 2 = 8 1
1 0 2 = 1 0 0
Now if k = 1 0 then N = 3 8 5 . 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 3 8 5 + ( 1 + 4 + 9 ) < 4 0 0 < 3 8 5 + ( 1 + 4 + 9 + 1 6 ) .
Proceeding in this way we can clearly see it is not possible for 500, 600 and 700.
But if k = 2 0 then N = 7 7 0 to start with.
And we can clearly see that 7 7 0 + ( 1 + 4 + 9 + 1 6 ) = 8 0 0
Thus, Required smallest value of k = 2 4 .
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
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
Note that 6 k ( k + 1 ) ( 2 k + 1 ) = 2 4 2 k ( 2 k + 1 ) ( 2 k + 2 ) .
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 = 2 4 .
Whoops, forgot about * doing bold.
Should be 100x24=48x50, 48x49x50, etc.
//bruteforce approach
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??
Problem Loading...
Note Loading...
Set Loading...
We want to find an integer k such that the expression is divisible by 1 0 0 .
We can say the following: 6 k ( k + 1 ) ( 2 k + 1 ) = 1 0 0 n , where n is a positive integer.
Simplifying the above equation, we get: k ( k + 1 ) ( 2 k + 1 ) = 6 0 0 n . This means that the product needs to be divisible by 600 times an integer, n .
It might be helpful to prime factorize 6 0 0 , which can be written as 2 3 ∗ 3 ∗ 5 2 . We can see that k must contain at least 3 powers of 2, since both k + 1 and 2 k + 1 will be odd if k is even. Trying out the value k = 2 4 works, since k contains 3 powers of 2, and 1 power of three. k + 1 contains 2 powers of 5. This meets our constraints, so the least possible value for k is 2 4 .