login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A048377 Append d digits d after each digit d in decimal expansion of n. 5
0, 11, 222, 3333, 44444, 555555, 6666666, 77777777, 888888888, 9999999999, 110, 1111, 11222, 113333, 1144444, 11555555, 116666666, 1177777777, 11888888888, 119999999999, 2220, 22211, 222222, 2223333, 22244444, 222555555, 2226666666 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
a(10^n) = 11 * 10^n; A007953(a(n)) = A003132(n) + A007953(n). [Reinhard Zumkeller, Jul 10 2011]
LINKS
EXAMPLE
12 becomes 1 1 2 22 = 11222.
MATHEMATICA
den[n_]:=Module[{idn=IntegerDigits[n]}, FromDigits[Flatten[Table[ Table[ idn[[i]], {idn[[i]]+1}], {i, Length[idn]}]]]]; Array[den, 30, 0] (* Harvey P. Dale, Sep 04 2013 *)
PROG
(Haskell)
import Data.Char (digitToInt)
a048377 :: Integer -> Integer
a048377 n =
read $ concat $ zipWith replicate (map ((+ 1) . digitToInt) ns) ns
where ns = show n
-- Reinhard Zumkeller, Jul 10 2011
CROSSREFS
Cf. A048376.
Sequence in context: A341491 A064093 A087402 * A192686 A323416 A308438
KEYWORD
nonn,easy,base,nice,look
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 04:14 EDT 2024. Contains 371918 sequences. (Running on oeis4.)