OFFSET
1,1
EXAMPLE
871 is a term of the sequence, since 699^870 == 1 (mod 871^2) and 699 < 871.
PROG
(PARI) forcomposite(c=2, , for(b=2, c-1, if(Mod(b, c^2)^(c-1)==1, print1(c, ", "); break({1}))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Jan 12 2016
STATUS
approved