OFFSET
0,4
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..10000
MATHEMATICA
Fold[Append[#1, Mod[#1[[-1]], #2] + #1[[-2]]] &, {0, 1}, Range[2, 58]] (* Ivan Neretin, Jun 18 2018 *)
PROG
(Python)
prpr = 0
prev = 1
for i in range(2, 99):
. current = prpr + (prev % i)
. print prpr,
. prpr = prev
. prev = current
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Apr 29 2012
STATUS
approved