Browse · MathNet
PrintSouth African Mathematics Olympiad Second Round
South Africa number theory
Problem
What is the remainder when is divided by ?
Solution
(We do this by inspection, by trying out some values until we can see the pattern.) Draw up a list of the remainders left by the powers of after division by :
We see that the remainders repeat every terms, since .
Now, with remainder , so .
Therefore,
So the remainder is .
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 4 | 8 | 3 | 6 | 12 | 11 | 9 | 5 | 10 | 7 | 1 |
Now, with remainder , so .
Therefore,
So the remainder is .
Final answer
1
Techniques
Fermat / Euler / Wilson theoremsMultiplicative order