OFFSET
0,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
EXAMPLE
n=8379 --> A004427(n) = ceiling((8+3+7+9)/4) = 7
--> a(8379) = 7*10^4 + 8379 = 78379.
MATHEMATICA
Table[Ceiling[Mean[IntegerDigits[n]]]*10^IntegerLength[n]+n, {n, 0, 100}] (* Harvey P. Dale, Apr 21 2019 *)
PROG
(Haskell)
a178358 n = read $ show (a004427 n) ++ show n :: Integer
-- Reinhard Zumkeller, Mar 17 2014
CROSSREFS
KEYWORD
AUTHOR
Reinhard Zumkeller, May 27 2010
STATUS
approved