Modular Arithmetic (AIME / USAJMO / AMO)
Proof-style AIME / USAJMO / AMO statements — develop a full argument; type only the final answer.
Proof track: treat each problem as a full olympiad writeup on paper. Here you only enter the final answer (integer or short expression).
Modular Arithmetic: core idea
Example problem: hint and answer
**(Proof track.)** Prove Fermat’s little theorem for prime and then compute . Enter the remainder.
Hint: since . Answer: 1.
Practice (9 problems — type your answers)
No proof submission required — answers only.
1. **(Proof track.)** Prove the Chinese Remainder Theorem for pairwise coprime moduli, then find the unique with , , . Enter .
2. **(Proof track.)** Prove that the order of modulo (when ) divides . Enter the order of modulo .
3. **(Proof track.)** Using Wilson’s theorem, prove for prime . Enter .
4. **(Proof track.)** Prove a formula for the number of solutions to for odd prime . For , (mod ), how many solutions in ?
5. **(Proof track.)** Prove Euler’s criterion or use successive squaring: enter .
6. **(Proof track.)** Show that if is an odd prime, then or compute the concrete case: enter .
7. **(Proof track.)** Prove the lifting-the-exponent lemma (LTE) for in the standard case, then enter .
8. **(Proof track.)** Prove that there are infinitely many primes (Euclid-style). As a computational check related to the construction, enter the smallest prime with .
9. **(Proof track.)** Prove is multiplicative and compute . Enter the value.