Hints Only for 2011 AIME I Problem 11
Let $R$ be the set of all possible remainders when a number of the form $2^n$, $n$ a nonnegative integer, is divided by $1000$. Let $S$ be the sum of all elements in $R$. Find the remainder when $S$ is divided by $1000$.
$2^1 \equiv 2, 2^2 \equiv 4, 2^3 \equiv 8, 2^4 \equiv 16, 2^5 \equiv 32, 2^6 \equiv 64, 2^7 \equiv 128, 2^8 \equiv 256, 2^9 \equiv 512$.
I tried many values of $2^x$ to notice a pattern.
$2^{10} \equiv 24 \pmod{1000}$ and $2^{11} = 48 \pmod{1000}$ and this pattern continue until some point, but then stops.
I am not sure if $2^k \pmod{1000}$ ever cycles back.
But since computing $2^k \pmod{1000}$ is pretty quick I went ahead and found:
$2^{12} \equiv 96, 2^{13} \equiv 192, 2^{14} \equiv 184, 2^{15} \equiv 368, 2^{16} \equiv 736, 2^{17} \equiv 472, 2^{18} \equiv 944, 2^{19} \equiv 888, 2^{20} \equiv 776, 2^{21} \equiv 552, 2^{22} \equiv 104, 2^{23} \equiv 208, 2^{24} \equiv 416, 2^{25} \equiv 832, 2^{26} \equiv 664$.
And I see absolutely no recurring pattern. But I do realize it has to stop somewhere since it cant be an infinite sum.
like:
$$2^{4k + n} \equiv 2^{n} \pmod{10}$$
Hints Only
- EDIT
using $a^{\phi(x)} \equiv 1 \pmod{x}$ from the hints given (as comments and answers)
$2^{100} \equiv 1 \pmod{125}$
so:
$2^{100k + n} \equiv 2^n \pmod{125}$
for $\pmod{8}$,
$2 \equiv 2, 2^2 \equiv 4, 2^3 \equiv 0, 2^4 \equiv 0.... \pmod{8}$
So I need:
$$\sum_{k=0}^{99} 2^n = 2^{100} - 1$$
$\sum \pmod{1000}$ is what I need to find:
I have the system:
$$2^{100} - 1 \equiv 0 \pmod{125}, 2^{100} - 1 \equiv 7 \pmod{8}$$
Now, I am in trouble, how to solve a congruence system? (Noob to CRT)
Edit: I am attempting to use CRT.
$125r + 8s = 1$ I need to find a $(r, s)$ ordered (integer) pair.
$r = \frac{1 - 8s}{125} \implies 1 - 8s \equiv 0 \pmod{125} \implies 8s \equiv 1 \pmod{125}$
I am not sure how to proceed.
What do you do after this layout?
– Amad27 Jul 27 '15 at 13:25$2^{102} \equiv 4 \pmod{125}, \equiv 0 \pmod{8}$ hence, $\equiv 504 \pmod{1000}$ is a solution. How do we know if $504$ has ever appeared before or not? What about the powers later on?
– Amad27 Jul 27 '15 at 14:11