Number Theory or Algebra? Part 5

Find the remainder when 1 4 + 2 4 + 3 4 + + 254 7 4 1^{4} + 2^{4} + 3^{4} +\cdots + 2547^{4} is divided by 4.


This problem came from the TMO.


The answer is 2.

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.

6 solutions

a 4 0 ( m o d 4 ) a^{4} \equiv 0 (mod 4) , when a a is an even positive integer.

a 4 1 ( m o d 4 ) a^{4} \equiv 1 (mod 4) , when a a is an odd positive integer.

(The two identities above can be proved by representing all positive integers in form of 2 k 2k and 2 k + 1 2k + 1 )

1 4 + 2 4 + 3 4 + . . . + 254 7 4 1278 ( m o d 4 ) 1^{4} + 2^{4} + 3^{4} + ... + 2547^{4} \equiv 1278 (mod 4)

1 4 + 2 4 + 3 4 + . . . + 254 7 4 2 ( m o d 4 ) \boxed{1^{4} + 2^{4} + 3^{4} + ... + 2547^{4} \equiv \boxed{2} (mod 4)}

Nice one

Amr Saber - 7 years, 1 month ago

gud

Anik Mandal - 7 years, 1 month ago

What is the TMO? Thailand mathematics Olympiad is my guess...

Ayush Garg - 6 years, 2 months ago

Nice solution. +1

Rishabh Tiwari - 5 years, 1 month ago
Masba Islam
May 4, 2014

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.

Daksh A Agarwal - 4 years, 7 months ago
Sabih Hasan
Dec 25, 2016

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.

Arulx Z
May 12, 2016

a 4 ( a m o d 4 ) 4 ( m o d 4 ) { a }^{ 4 }\equiv { \left( a\quad \bmod \text{ 4} \right) }^{ 4 }\quad \left( \bmod \text{ 4} \right)

Now the numbers can be grouped

636 ( 1 4 + 2 4 + 3 4 + 4 4 ) + 1 4 + 2 4 + 3 4 636\left( { 1 }^{ 4 }+{ 2 }^{ 4 }+{ 3 }^{ 4 }+{ 4 }^{ 4 } \right) +{ 1 }^{ 4 }+{ 2 }^{ 4 }+{ 3 }^{ 4 }

Taking modulo 4, the answer is 2.

Rishabh Tiwari
May 12, 2016

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.

Basant K Jha
May 2, 2014

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

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...