OFFSET
1,2
COMMENTS
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 1..717
EXAMPLE
MATHEMATICA
nmax=10000; periods=Table[m=Rest[NestList[Mod[#^2+1, n]&, 0, nmax]]; period=0; j=1; While[j<=Length[m]&&period==0, If[m[[Length[m]-j]]==m[[Length[m]]], period=j]; j++]; period, {n, 1, nmax}]; Select[Range[nmax], periods[[#]]==1&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Vaclav Kotesovec, Oct 04 2014
STATUS
approved