OFFSET
1,1
COMMENTS
By definition of the sequence A087045(n)+2 and A086809(n)+1 for every n > 0 are in the sequence. There are no further terms up to 200000
No more terms < 3870000. - David Wasserman, Mar 31 2005
MATHEMATICA
a[m_] := Sum[a[j], {j, 0, Mod[a[m-1], m]}]; vv={}; Do[ a[n]=If[n==0, 1, b]; v=a[n+1]; b=v; If[v==4, vv=Insert[vv, n+1, -1]; Print[vv]], {n, 0, 200000-1}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Farideh Firoozbakht, Aug 08 2003
EXTENSIONS
More terms from David Wasserman, Mar 31 2005
a(39)-a(45) from Michael S. Branicky, Mar 23 2024
STATUS
approved