A357915 Concatenation of the decimal digits of {n, 1..n}.
11, 212, 3123, 41234, 512345, 6123456, 71234567, 812345678, 9123456789, 1012345678910, 111234567891011, 12123456789101112, 1312345678910111213, 141234567891011121314, 15123456789101112131415, 1612345678910111213141516
Offset: 1
Examples
a(2) = 212 since it is the concatenation of the consecutive positive integers <= 2, with 2 prepended.
Links
- Winston de Greef, Table of n, a(n) for n = 1..367
- G. L. Honaker, Jr. and Chris K. Caldwell, Prime Curios! 71234567
Programs
-
Mathematica
aUpTo[n_] := Table[ FromDigits @ Flatten @ IntegerDigits @ {i, Range @ i}, {i,n}]; aUpTo[999]
-
PARI
a(n) = my(s=Str(n)); for(k=1, n, s=Str(s, k)); eval(s); \\ Michel Marcus, Jan 20 2023
-
Python
def a(n): return int(str(n)+"".join(map(str, range(1, n+1)))) print([a(n) for n in range(1, 17)]) # Michael S. Branicky, Jan 20 2023
Formula
a(n) = concat(n, A007908(n)).
Comments