OFFSET
1,1
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..372 (terms 1..163 from Felix Fröhlich)
MATHEMATICA
Select[Range[10^4], Mod[3^(# - 3), #] == 1 &] (* Alonso del Arte, May 27 2014 *)
PROG
(PARI) for(n=3, 10^6, if(Mod(3, n)^(n-3)==1, print1(n, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, May 24 2014
STATUS
approved