OFFSET
0,3
FORMULA
a(0)=0, a(1)=1, a(n) = a(n-1) + (a(0)+...+a(n-1)) mod n.
PROG
(Python)
a = [0]*77
a[1]=1
sum = a[0]+a[1]
for n in range(2, 77):
print(a[n-2], end=', ')
a[n] = a[n-1] + sum % n
sum += a[n]
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Alex Ratushnyak, Aug 10 2012
STATUS
approved