OFFSET
1,1
LINKS
Felix Fröhlich, Table of n, a(n) for n = 1..8769 (all terms up to k=10^4)
FORMULA
MATHEMATICA
sbb[n_]:=Module[{b=2}, While[PowerMod[b, n-1, n]!=1, b++]; b]; sbb/@Select[ Range[ 100], CompositeQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 29 2018 *)
PROG
(PARI) forcomposite(k=2, 1e2, for(b=2, 1e9, if(Mod(b, k)^(k-1)==1, print1(b, ", "); next({2}))); print1(">1e9, "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Aug 16 2014
STATUS
approved