OFFSET
1,2
COMMENTS
Superset of the full reptend primes.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Full Reptend Prime.
MATHEMATICA
Select[ Range[270], Mod[ PowerMod[10, # - 1, # ] - 1, # ] == 0 &] (* Robert G. Wilson v, Mar 16 2005 *)
Join[{1}, Select[Range[300], PowerMod[10, #-1, #]==1&]] (* Harvey P. Dale, Oct 24 2016 *)
PROG
(PARI) isok(n) = lift(Mod(10, n)^(n-1)) == 1; \\ Michel Marcus, Sep 25 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Mar 03 2005
STATUS
approved