What is the remainder when
1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 2 0 1 6 2 0 1 6
is divided by 2016?
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 solution, Comrade @Pi Han Goh
I wonder whether we can summarize your work as follows:
Modulo 32 , we have k 2 0 1 6 ≡ 0 for even k and k 2 0 1 6 = ( k ϕ ( 3 2 ) ) 1 2 6 ≡ 1 for odd k , by Euler, so that the sum is 1 0 0 8 ≡ 1 6 .
Likewise, modulo 7 , we have k 2 0 1 6 ≡ 0 for 7 ∣ k , and k 2 0 1 6 = ( k ϕ ( 7 ) ) 3 3 6 ≡ 1 otherwise, so that the sum is 2 0 1 6 − 2 0 1 6 / 7 = 1 7 2 8 ≡ 6 .
Finally, modulo 9 , we have k 2 0 1 6 ≡ 0 for 3 ∣ k , and k 2 0 1 6 = ( k ϕ ( 9 ) ) 3 3 6 ≡ 1 otherwise, so that the sum is 2 0 1 6 − 2 0 1 6 / 3 = 1 3 4 4 ≡ 3 .
We can then use the Chinese Remainder Theorem to finish the job, as you did.
Log in to reply
Sir,could you please refer a book so that I can improve my skills in Number Theory.
Log in to reply
I mostly learned from Russian and German texts, so, I don't really know first hand. I hear that good undergraduate texts in English are by Apostol, Niven&Zuckerman and Ireland&Rosen. I love Serre's "Course in Arithmetic", but it's a bit more advanced; maybe suitable as a second text. Enjoy... it's a wonderful subject!
Log in to reply
@Otto Bretscher – Thanks for your help,sir.I will definitely buy these books.
Log in to reply
@Ahmed K – I would not buy all of them at once... read some reviews online and see which seems best suited for your needs.
Log in to reply
@Otto Bretscher – Well,I am a beginner in Number theory and have started practising it only a few months back.So,I shall buy a book that will strengthen my basic concepts.Thanks again sir.
Log in to reply
@Ahmed K – Maybe Niven/Zuckerman/Montgomery's "Introduction to the Theory of Numbers", published by Wiley (India), will be best as a first text in English
Log in to reply
@Otto Bretscher – Thanks sir.Then I shall buy the book you mentioned above.
@Pi Han Goh can' t this question be done in this manner... if we divide 2015^2016 the remainder will be -1^2016..,, if we divide 2014^2016 then the remainder will be -2^2016 and so on which continues so forth and so on ..this is cancelling the terms from the starting.. so we now have only 1008^2016 which is well divisible by 2016 so shouldn"t be the answer 0... please correct..
Log in to reply
if we divide 2015^2016 the remainder will be -1^2016..,, if we divide 2014^2016 then the remainder will be -2^2016 and so on which continues so forth and so on ..this is cancelling the terms from the starting
I don't understand your logic and that doesn't work.
Pay attention that -1^2016 = 1^2016 because the exponent is even ... Thus no cancellation.
Nice work! My question is: a b ( m o d c ) ≡ a b m o d ϕ ( c ) ( m o d c ) ?
Log in to reply
This is only true when g cd ( a , c ) = 1 . What's your question exactly?
Log in to reply
Ok. Thank you! My question is where can I use this function?
Log in to reply
@A Former Brilliant Member – If you wanna compute the remainder of some large exponentiation, you can use this property. For example,
3 1 0 0 0 m o d 1 4 = 3 1 0 0 0 m o d ϕ ( 1 4 ) m o d 1 4 = 3 1 0 0 0 m o d 6 m o d 1 4 = 3 4 m o d 1 4 = 1 1
Problem Loading...
Note Loading...
Set Loading...
Let Z denote the value of the sum, 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 2 0 1 6 2 0 1 6 . So we want to find the remainder of when Z is divided by 2016.
Since 2016 is not a prime number, let's start breaking 2016 into product of pairwise coprime positive integers to get 2 0 1 6 = 3 2 × 7 × 9 .
This suggests that we want to find Z modulo 3 2 , 7 and 9 separately so that we can apply chinese remainder theorem .
Let us start by finding Z m o d 3 2 , and we partition the terms of Z as such
1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 2 0 1 6 2 0 1 6 = ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 3 2 2 0 1 6 ) + ( 3 3 2 0 1 6 + 3 4 2 0 1 6 + ⋯ + 6 4 2 0 1 6 ) + ( 6 5 2 0 1 6 + 3 6 2 0 1 6 + ⋯ + 9 6 2 0 1 6 ) + ⋯ + ( 1 9 8 5 2 0 1 6 + 1 9 8 6 2 0 1 6 + ⋯ + 2 0 1 6 2 0 1 6 )
Taking modulo 32, we have
≡ ≡ ≡ ≡ ≡ 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 2 0 1 6 2 0 1 6 ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 3 1 2 0 1 6 ) + ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 3 1 2 0 1 6 ) + ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 3 1 2 0 1 6 ) + ⋯ + ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 3 1 2 0 1 6 ) 3 2 2 0 1 6 × ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 3 1 2 0 1 6 ) 6 3 ( 1 2 0 1 6 + 3 2 0 1 6 + 5 2 0 1 6 + ⋯ + 2 9 2 0 1 6 + 3 1 2 0 1 6 ) , all the even powers are divisible by 32 6 3 ( 1 2 0 1 6 m o d ϕ ( 3 2 ) + 3 2 0 1 6 m o d ϕ ( 3 2 ) + 5 2 0 1 6 m o d ϕ ( 3 2 ) + ⋯ + 3 1 2 0 1 6 m o d ϕ ( 3 2 ) ) , by Euler totient function 6 3 ( 1 × 1 6 ) ≡ 1 6
Thus we have Z m o d 3 2 = 1 6 .
Analogously, let us find Z m o d 7 and Z m o d 9 .
For Z m o d 7 , partitioning the terms gives
= ≡ ≡ ≡ ≡ ≡ 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 2 0 1 6 2 0 1 6 ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯ + 7 2 0 1 6 ) + ( 8 2 0 1 6 + 9 2 0 1 6 + ⋯ + 1 4 2 0 1 6 ) + ( 1 5 2 0 1 6 + 1 6 2 0 1 6 + ⋯ + 2 1 2 0 1 6 ) + ⋯ + ( 2 0 1 0 2 0 1 6 + 1 9 8 6 2 0 1 6 + ⋯ + 2 0 1 6 2 0 1 6 ) ( 1 2 0 1 6 + 2 2 0 1 6 + ⋯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 1 6 m o d ϕ ( 9 ) + 2 2 0 1 6 m o d ϕ ( 9 ) + 4 2 0 1 6 m o d ϕ ( 9 ) + 5 2 0 1 6 m o d ϕ ( 9 ) + 7 2 0 1 6 m o d ϕ ( 9 ) + 8 2 0 1 6 m o d ϕ ( 9 ) ) 2 2 4 × 6 ≡ 3
Writing these three linear congruences together, we have Z m o d 3 2 = 1 6 , Z m o d 7 = 6 , Z m o d 9 = 3 , or equivalently we want to find the smallest positive integer x satisfying the following linear congruences:
x x x ≡ ≡ ≡ 1 6 ( m o d 3 2 ) 6 ( m o d 7 ) 3 ( m o d 9 )
We can of course solve these linear congruences systematically by Chinese Remainder Theorem, but that isn't necessary because it's slightly tedious, notice that from these congruences, we have
x x x ≡ ≡ ≡ 1 6 , 4 8 , 8 0 , 1 1 2 , 1 4 4 , … 6 , 1 3 , 2 0 , 2 7 , 3 4 , 4 1 , 4 8 , … 3 , 1 2 , 2 1 , 3 0 , 3 9 , 4 8 , …
And the smallest integer that appears in all these three rows is 48. Thus the smallest positive integer x is 48, and so the answer to this question is 4 8 as well.
Footnote : We can only apply euler's totient function for coprime a , n such that a m m o d n = a m m o d ϕ ( n ) m o d n can be true.