OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
58 is a member of the sequence since 7^58 (mod 58) == 49.
MATHEMATICA
Select[Range@ 335, (p = PowerMod[7, #, #]) > 1 && IntegerQ@ Log[7, p] && CompositeQ[#] &] (* corrected by Amiram Eldar, Jul 24 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Apr 17 2007
EXTENSIONS
Corrected and edited by R. J. Mathar, May 16 2008
STATUS
approved