Mental remainder

n = 1 4035 n 2017 \large \sum_{n=1}^{4035} n^{2017}

Find the remainder when the expression above is divided by 2017.


The answer is 1.

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.

2 solutions

ϕ ( 2017 ) = 2016 \phi(2017) = 2016 where ϕ \phi is the Euler's Totient function.
a ϕ ( n ) + 1 a ( m o d n ) a^{\phi(n)+1} \equiv a \pmod{n} S = k = 1 4035 k 2017 k = 1 4035 k 4035 4036 2 4035 2018 1 ( m o d 2017 ) S = \displaystyle \sum_{k=1}^{4035} k^{2017} \equiv \sum_{k=1}^{4035} k \equiv \dfrac{4035\cdot4036}{2} \equiv 4035 \cdot 2018 \equiv 1 \pmod{2017}

Wow, that was insanely fast! Wonderful solution too ^^

Ville Karlsson - 5 years, 2 months ago

Log in to reply

Thanks! @Otto Bretscher sir, why did you delete your solution?

A Former Brilliant Member - 5 years, 2 months ago

Log in to reply

Our solutions were essentially the same ;)

Otto Bretscher - 5 years, 2 months ago

Yes, this is my same approach :)

Alex Spagnoletti - 5 years, 2 months ago

Same way ! Ya this was very fast .

Chirayu Bhardwaj - 5 years, 2 months ago

Ya even i did the same

Aditya Kumar - 5 years, 1 month ago
Ville Karlsson
Apr 10, 2016

Modular arithmetic rules:

a 1 b 1 ( m o d n ) a_1 \equiv b_1 \pmod n and a 2 b 2 ( m o d n ) a_2 \equiv b_2 \pmod n then 1. a 1 + a 2 b 1 + b 2 ( m o d n ) a_1 + a_2 \equiv b_1 + b_2 \pmod n\ and 2. a 1 a 2 b 1 b 2 ( m o d n ) a_1 a_2 \equiv b_1 b_2 \pmod n

Now note that a 2017 + ( 4034 a ) 2017 0 ( m o d 2017 ) a^{2017}+(4034-a)^{2017}\equiv 0 \pmod {2017}\ (when a is a positive natural number less than 2017). To see this take a b ( m o d 2017 ) a \equiv b \pmod {2017}\ and by 2. we have a 2017 b 2017 ( m o d 2017 ) a^{2017} \equiv b^{2017} \pmod {2017}\ now ( 4034 a ) b ( m o d 2017 ) (4034-a) \equiv -b \pmod {2017}\ as is readily seen by noting that 2017 divides 4034 and again by 2. we get that ( 4034 a ) 2017 b 2017 ( m o d 2017 ) (4034-a)^{2017} \equiv -b^{2017} \pmod {2017}\ and by 1. the result follows. Now by pairing the summands as described above we easily see that [and the middle term 201 7 2017 2017^{2017} is left alone for which (mod 2017) is clearly zero] n = 1 4034 n 2017 0 ( m o d 2017 ) \sum_{n=1}^{4034} n^{2017}\equiv 0 \pmod {2017}\ and as is easily seen by applying 2. 403 5 2017 1 ( m o d 2017 ) 4035^{2017}\equiv 1 \pmod {2017}\ so it follows that n = 1 4035 n 2017 1 ( m o d 2017 ) \sum_{n=1}^{4035} n^{2017}\equiv 1 \pmod {2017}\ And as the name suggests this can be done mentally with little focus :). I would love to see alternative solutions!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...