OFFSET
1,4
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
N:= 100: # to get a(1)..a(N)
A:= Vector(N):
A[1]:= 0: A[2]:= 1:
for n from 3 to N do
A[n]:= A[n-1] + A[n-2] mod n
od:
convert(A, list); # Robert Israel, Nov 13 2017
MATHEMATICA
l = {0, 1}; For[i = 3, i <= 100, i++, len = Length[l]; l = Append[l, Mod[l[[len]] + l[[len - 1]], i]]]; l
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Franklin T. Adams-Watters, Jun 23 2004
STATUS
approved