OFFSET
0,3
COMMENTS
a(100)=1 is the first value that differs from the variant "... rounded to the nearest integer". - M. F. Hasler, May 10 2015
LINKS
FORMULA
From Reinhard Zumkeller, May 27 2010: (Start)
MATHEMATICA
Ceiling[Mean[IntegerDigits[#]]]&/@Range[0, 110] (* Harvey P. Dale, Aug 29 2014 *)
PROG
(PARI) A004427(n)=ceil(sum(i=1, #n=digits(n), n[i])/#n) \\ ...Vecsmall(Str(n))...-48 is a little faster. \\ M. F. Hasler, May 10 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved