OFFSET
1,4
COMMENTS
Steven Taschuk and Phil Carmody posted to sci.math (http://www.mathforum.com/epigone/sci.math/sazhazhi ) that a(k) = 97 for k >= 398.
Apart from the initial term, this is the first differences of A073117. - Rémy Sigrist, Mar 22 2017
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..501
EXAMPLE
a(7) = (1 + 0 + 1 + 2 + 0 + 4) (mod 6) = 8 (mod 6) = 2.
MATHEMATICA
Fold[Append[#1, Mod[Total@#1, #2]] &, {1}, Range@78] (* Ivan Neretin, Nov 22 2015 *)
PROG
(PARI) first(m)=my(v=vector(m)); v[1]=1; for(i=2, m, v[i]=sum(k=1, i-1, v[k])%(i-1)); v \\ Anders Hellström, Nov 22 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Jan 22 2002
STATUS
approved