login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A267327 a(n) = decimal expansion of (n-1) prepended n times to the decimal expansion of n (n > 0). 1
1, 112, 2223, 33334, 444445, 5555556, 66666667, 777777778, 8888888889, 999999999910, 101010101010101010101011, 11111111111111111111111112, 1212121212121212121212121213, 131313131313131313131313131314, 14141414141414141414141414141415, 1515151515151515151515151515151516 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

These terms are primes: a(7), a(19), a(989), a(1187), a(4183); see A267237.

LINKS

Table of n, a(n) for n=1..16.

FORMULA

a(n) = (10^(n+1)*(n-1) - n + 10) / 9 (n <= 9).

a(n) = Sum_{i=0...n+1} (n*10^(i*(floor(log(10, n+1)) + 1))) + 1  (n <> 10^k, k > 0), i.e. doesn't give correctly the terms ending with 0.

EXAMPLE

a(3) = 2223 ('3-1' prepended 3 times to '3').

MATHEMATICA

Table[ FromDigits[ StringJoin@@ ToString/@ PadLeft[{n}, n+1, n-1]], {n, 50}](* Or *)

FromDigits/@ Table[ Nest[ ToString[n] <> #&, ToString[n+1], n+1], {n, 0, 50}]

CROSSREFS

Cf. A000461, A158849, A158859, A267237.

Sequence in context: A246895 A188153 A163194 * A008361 A271671 A172129

Adjacent sequences:  A267324 A267325 A267326 * A267328 A267329 A267330

KEYWORD

nonn,easy,base

AUTHOR

Mikk Heidemaa, Jan 13 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 17 19:16 EDT 2019. Contains 327137 sequences. (Running on oeis4.)