OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..640
MATHEMATICA
a={1}; For[n=1, n<200000, n++, If[PowerMod[15, n, n^2]==1, AppendTo[a, n]]]; a (* Stefan Steinerberger, Jun 10 2007 *)
Join[{1}, Select[Range[167000], PowerMod[15, #, #^2]==1&]] (* Harvey P. Dale, Sep 14 2020 *)
PROG
(PARI) is(k) = Mod(15, k^2)^k == 1; \\ Amiram Eldar, May 21 2024
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Alexander Adamchuk, Mar 01 2007
EXTENSIONS
More terms from Stefan Steinerberger, Jun 10 2007
STATUS
approved