A275338 Smallest prime p where a base b with 1 < b < p exists such that b^(p-1) == 1 (mod p^n).
3, 11, 113
Offset: 1
Examples
For n = 3: p = 113 satisfies 68^(p-1) == 1 (mod p^3) and there is no smaller prime p such that p satisfies b^(p-1) == 1 (mod p^3) for some b with 1 < b < p, so a(3) = 113.
Links
- R. Fischer, Thema: Fermatquotient B^(P-1) == 1 (mod P^3).
Programs
-
PARI
a(n) = forprime(p=1, , for(b=2, p-1, if(Mod(b, p^n)^(p-1)==1, return(p))))
Comments