Find the remainder when 1 4 + 2 4 + 3 4 + ⋯ + 2 5 4 7 4 is divided by 4.
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.
Nice one
gud
What is the TMO? Thailand mathematics Olympiad is my guess...
Nice solution. +1
Python code:
s=0
for i in range(2547):
k=i+1
for j in range (4):
k=k%4
if j==3:
k=k
else:
k=k*(i+1)
s=s+k
print s%4
The purpose of problem solving is not to simply come to the final answer;that is of little consequence. In my view, it is the process that really matters. Brute force computation can be done by anyone who just knows a programming language.
I agree that such programs can be used to verify the final answer, however I think it defeats the purpose of the problem if we employ such approaches.
Note that even square numbers are 0 (mod 4) and odd square numbers are 1 (mod 4).
So in our series, we just count the number of odd numbers, which is 1274 and calculate 1274 (mod 4), which is 2.
a 4 ≡ ( a m o d 4 ) 4 ( m o d 4 )
Now the numbers can be grouped
6 3 6 ( 1 4 + 2 4 + 3 4 + 4 4 ) + 1 4 + 2 4 + 3 4
Taking modulo 4, the answer is 2.
Just group the numbers in pairs from start and the end ..all the pairs which are of the form a^4 + b^4 will be divisible by 4...in the end the central no. (2547+1)/2 = (1274)^4 will be left..which when divided by 4 leaves a remainder of 2. Hence 2 is the answer.
1^{4}mod4=1
2^{4}mod4=1 i.e (even)^{4}mod4=0 and (odd)^{4}mod4=1
the no. of terms in 1^{4}+2^{4}+.....2547^{4} is 2547
therefore toal no. of one or odd is 2547/2 +1=1274 and the last 2 digit is 74
when we divide 74 by 4 then remainder is 2
therefore answer will be 2
Problem Loading...
Note Loading...
Set Loading...
a 4 ≡ 0 ( m o d 4 ) , when a is an even positive integer.
a 4 ≡ 1 ( m o d 4 ) , when a is an odd positive integer.
(The two identities above can be proved by representing all positive integers in form of 2 k and 2 k + 1 )
1 4 + 2 4 + 3 4 + . . . + 2 5 4 7 4 ≡ 1 2 7 8 ( m o d 4 )
1 4 + 2 4 + 3 4 + . . . + 2 5 4 7 4 ≡ 2 ( m o d 4 )