For any n > 0, let S_n(0) be the concatenation of the numbers in the range 1..n (in increasing order); for k=1..n, S_n(k) is obtained by removing the rightmost occurrence of k in S_n(k-1), if any; a(n) is the numerical value of S_n(n) (or 0 if S_n(n) is empty).

A330398

For any n > 0, let S_n(0) be the concatenation of the numbers in the range 1..n (in increasing order); for k=1..n, S_n(k) is obtained by removing the rightmost occurrence of k in S_n(k-1), if any; a(n) is the numerical value of S_n(n) (or 0 if S_n(n) is empty).

Terms

    a(0) =0a(1) =0a(2) =0a(3) =0a(4) =0a(5) =0a(6) =0a(7) =0a(8) =0a(9) =0a(10) =0a(11) =0a(12) =31a(13) =3411a(14) =345111a(15) =34561111a(16) =3456711111a(17) =345678111111

External references