OFFSET
0,4
COMMENTS
Indices of zeros:
0, 57, 123, 1975, 2551, 5473, 5537, 7271, 39480, 132993, 153539, 224581, 5925390, 10243877, 123259126, 284753964, 2520364708, 2985427716, 5115049972, 11066575675, 13451039887, 33557189081, 242574973569, 5212220671625, 10346718074797
Conjecture: a(n) contains infinitely many zeros.
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..10000
MATHEMATICA
Nest[Append[#, Mod[#[[-1]]*#[[-2]] + 1, Length[#] + 1]] &, {1, 1}, 71] (* Ivan Neretin, May 14 2015 *)
PROG
(Python)
prpr = 0
prev = 1
for n in range(2, 77):
. current = ( prev*prpr + 1 ) % n
. print prpr,
. prpr = prev
. prev = current
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Apr 30 2012
STATUS
approved