Number Systemshard
0:00.0

Using Fermat's little theorem: if pp is prime and gcd(a,p)=1\gcd(a,p)=1, then ap1  ?(modp)a^{p-1} \equiv \;?\pmod{p}.