OFFSET
0,3
COMMENTS
a(n) is the sum of n(n+1)/2 such strings. a(n) has roughly 2^(n-1) decimal digits. - R. J. Mathar, Jul 26 2007
EXAMPLE
a(0) = 1 hence a(1) = 1, a(2) = (1)+(1)+ (11) = 13, a(3) = (1) +(1) +(13) + (11) + (113) + (1113) = 1252.
MAPLE
A055642 := proc(n) if n <= 1 then 1 ; else ilog10(n)+ 1; fi ; end: Lcat := proc(L, i, j) local resul, k ; resul := 0 ; for k in op(i..j, L) do resul := resul*10^A055642(k)+k ; od ; RETURN(resul) ; end: A091781 := proc(nmax) local a, anxt, n, i, j; a := [1] ; for n from 1 to nmax do anxt := 0 ; for i from 1 to nops(a) do for j from i to nops(a) do anxt := anxt+Lcat(a, i, j) : od ; od ; a := [op(a), anxt] ; od; RETURN(a) ; end: A091781(9) ; # R. J. Mathar, Jul 26 2007
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Feb 17 2004
EXTENSIONS
a(4) and a(5) from Donald Sampson (marsquo(AT)hotmail.com), Sep 17 2004
More terms from R. J. Mathar, Jul 26 2007
STATUS
approved