A338767 a(0) = 0; a(n) is obtained by incrementing each digit of a(n-1) by n.
0, 1, 3, 6, 10, 65, 1211, 8988, 16171616, 1015101610151015, 11101115111011161110111511101115, 1212121112121216121212111212121712121211121212161212121112121216
Offset: 0
Examples
a(5) = {1+5, 0+5} = 65, where {x, y} is the concatenation of x and y. a(6) = {6+6, 5+6} = 1211.
Programs
-
Maple
a:= proc(n) option remember; `if`(n=0, 0, (l-> parse(cat( seq(n+l[-i], i=1..nops(l)))))(convert(a(n-1), base, 10))) end: seq(a(n), n=0..12); # Alois P. Heinz, Nov 15 2020
-
Mathematica
Nest[Append[#1, FromDigits@ Apply[Join, Map[IntegerDigits, IntegerDigits[#1[[-1]] ] + #2]]] & @@ {#, Length@ #} &, {0}, 11] (* Michael De Vlieger, Nov 13 2020 *)
Comments