OFFSET
0,3
COMMENTS
The underlying sequence to calculate the sums of the pairs of adjacent digits is A007908 = (0, 1, 12, 123, 1234, 12345, 123456, 1234567, 12345678, 123456789, 12345678910, 1234567891011, ...).
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..292
EXAMPLE
MATHEMATICA
Table[FromDigits[Flatten[IntegerDigits/@Total/@Partition[Flatten[ IntegerDigits/@ Range[n]], 2, 1]]], {n, 0, 20}] (* Harvey P. Dale, Dec 18 2019 *)
PROG
(PARI) b(n)=my(s=""); for(k=1, n, s=Str(s, k)); eval(s);
a(n) = {my(x = b(n)); if (x==0, d = [0], d = digits(x)); my(s=""); for (k=1, #d-1, s = concat(s, d[k] + d[k+1]); ); if (!#s, 0, eval(s)); } \\ Michel Marcus, Jul 30 2015
CROSSREFS
KEYWORD
easy,base,nonn,less
AUTHOR
Marco Ripà, Jul 29 2015
STATUS
approved