OFFSET
0,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
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
KEYWORD
AUTHOR
Patrick De Geest, Mar 15 1999
STATUS
approved