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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A048376 Replace each 1 in decimal expansion of n with 1 1's, each 2 with 2 2's, etc. (0 vanishes). 10
1, 22, 333, 4444, 55555, 666666, 7777777, 88888888, 999999999, 1, 11, 122, 1333, 14444, 155555, 1666666, 17777777, 188888888, 1999999999, 22, 221, 2222, 22333, 224444, 2255555, 22666666, 227777777, 2288888888, 22999999999, 333, 3331 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

EXAMPLE

12 -> 122, 123->122333.

MATHEMATICA

With[{rules=Table[n->Table[n, {n}], {n, 0, 9}]}, Table[FromDigits[ Flatten[ IntegerDigits[x]/.rules]], {x, 40}]] (* Harvey P. Dale, Oct 09 2011 *)

PROG

(PARI) A048376(n)={sum(i=1, #n=concat( apply( t->vector(t, i, t), digits(n) )), n[i]*10^(#n-i))} \\ M. F. Hasler, Jan 23 2013

CROSSREFS

Cf. A048377, A057628, A057630.

Sequence in context: A019854 A025936 A158849 * A053422 A000461 A216730

Adjacent sequences:  A048373 A048374 A048375 * A048377 A048378 A048379

KEYWORD

nonn,easy,base,nice

AUTHOR

Patrick De Geest, Mar 15 1999

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 February 21 23:44 EST 2019. Contains 320381 sequences. (Running on oeis4.)