n=(22014−1)/3 what is the remainder when it is divided by 1000. i wrote 2 as 3−1 and proceeded but that only helped me prove n is a integer but i dont know how to find the remainder on dividing it by 1000. well im guessing it involves some number theory theorom. please guide me.(i was thinking of using euler totient theorom but could not do so)
Answer
Without being clever, let's brute force our way through.
We want to understand 22014−1(mod1000). Notice that gcd(3,1000)=1, so 3 has a modular inverse (a quick check shows that it's 667).
Now, how do we find 22014−1(mod1000)? As gcd(2,1000)=2, we should worry about the 2 factor. So we think of 1000 as 23⋅53.
Clearly 22014≡0(mod23). And as φ(53)=100, we know that 22014≡214≡9(mod125). Putting these together, perhaps with the Chinese Remainder Theorem or by quick brute force (there are only 8 things to check, afterall), we see that 22014≡384(mod1000).
Thus 22014−1≡383(mod1000). And thus 22014−13≡667⋅(22014−1)≡667⋅383≡461(mod1000).
So the remainder is 461.
No comments:
Post a Comment