OFFSET

1,1

EXAMPLE

a(4) = 15937, 5 = 1+4, 9 = 5+4, 9+4 = 13 gives the next digit 3, 3+4 = 7 is the least significant digit.

PROG

(PARI) a(n) = sum(i = 0, n, (1 + i*n)%10*10^(n - i)) \\ David Wasserman, Feb 14 2005

CROSSREFS

KEYWORD

base,easy,nonn

AUTHOR

Jason Earls and Amarnath Murthy, Jul 14 2003

EXTENSIONS

More terms from David Wasserman, Feb 14 2005

Offset changed to 1 by Georg Fischer, Jan 29 2022

STATUS

approved