OFFSET
1,2
COMMENTS
A variable cycle function based on powers of ten.
MATHEMATICA
digits=200 f[n_]=10+Sum[Mod[Floor[n/10^m], 10], {m, 1, 10}] a=Table[Mod[n, f[n]], {n, 1, digits}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jan 19 2004
STATUS
approved