login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A090175
a(n) = Mod[n,10+Sum[Mod[Floor[n/10^m],10],{m,1,10}]]
0
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 12, 13, 0, 1, 2, 3, 4, 5, 6, 7, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 14, 15
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
Sequence in context: A329200 A122638 A297235 * A275010 A010880 A261424
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jan 19 2004
STATUS
approved