OFFSET
1,2
COMMENTS
If n is a term and p is its odd prime divisor, then p*n is also a term. In particular, the sequence contains 2*41^k and 2*41*2297^k for all k>=1.
MATHEMATICA
Select[ Range[ 250000000], PowerMod[3, #^2, # ] +1 == # & ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Apr 02 2004
EXTENSIONS
Terms a(11) onward from Max Alekseyev, Feb 13 2012
STATUS
approved