Maths Olympiad Prep

Library / /394 of 520

Number theory Difficulty 6.5 National olympiad Prove it

Fermat's Little Theorem: Let pp be a prime, and aa be any integer coprime to pp, then
ap11(modp)a^{p-1} \equiv 1(\bmod p)

Fermat's Little Theorem has a variant form, which is sometimes more applicable:
For any integer aa, apa(modp)a^{p} \equiv a(\bmod p).
(When pap \nmid a, the two propositions are equivalent; when pap \mid a, the latter is obviously true.)

Solution

It is not difficult to give a proof of Fermat's Little Theorem by induction: It is easy to see that we only need to prove the proposition for a=0a=0, 1,,p11, \cdots, p-1. When a=0a=0, the conclusion is obviously true. If we already have ap=a(modp)a^{p}=a(\bmod p), then since pCpi(i=1,2,,p1)p \mid C_{p}^{i}(i=1,2, \cdots, p-1), we have
(a+1)p=ap+Cp1ap1++Cpp1a+1ap+1a+1(modp),(a+1)^{p}=a^{p}+\mathrm{C}_{p}^{1} a^{p-1}+\cdots+\mathrm{C}_{p}^{p-1} a+1 \equiv a^{p}+1 \equiv a+1(\bmod p),

This shows that the proposition also holds when aa is replaced by a+1a+1.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.