OFFSET
1,1
FORMULA
EXAMPLE
For the prime 107 we have nearest((1+0+7)/3)=nearest(8/3)=3.
MATHEMATICA
Floor[Mean[IntegerDigits[#]]+1/2]&/@Prime[Range[120]] (* Harvey P. Dale, Nov 22 2011 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Y. Kelly Itakura (yitkr(AT)mta.ca), Aug 23 2002
EXTENSIONS
Changed offset to 1, added Cf. to A074462 and extended. - R. J. Mathar, Sep 23 2008
STATUS
approved
