OFFSET
1,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
a(9) = 7 = 11200444 (mod 9).
MATHEMATICA
f[l_List] := Append[l, Mod[FromDigits[Join @@ IntegerDigits[l]], Length[l] + 1]]; Nest[f, {1}, 80] (* Ray Chandler, Feb 05 2007 *)
PROG
(PARI) p=0; for (n=1, 80, print1 (v=if (n==1, 1, p%n)", "); p=p*10^max(1, #digits(v))+v) \\ Rémy Sigrist, Dec 21 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Apr 28 2004
EXTENSIONS
Extended by Ray Chandler, Feb 05 2007
STATUS
approved