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!)
A074462 Average digit (rounded up) in the decimal expansion of prime(n). 3
2, 3, 5, 7, 1, 2, 4, 5, 3, 6, 2, 5, 3, 4, 6, 4, 7, 4, 7, 4, 5, 8, 6, 9, 8, 1, 2, 3, 4, 2, 4, 2, 4, 5, 5, 3, 5, 4, 5, 4, 6, 4, 4, 5, 6, 7, 2, 3, 4, 5, 3, 5, 3, 3, 5, 4, 6, 4, 6, 4, 5, 5, 4, 2, 3, 4, 3, 5, 5, 6, 4, 6, 6, 5, 7, 5, 7, 7, 2, 5, 5, 3, 3, 4, 6, 4, 6, 6, 4, 5, 6, 7, 7, 5, 8, 3, 5, 3, 4, 4, 6, 6, 5, 7, 5, 7, 7, 6, 8, 3, 5, 4, 5, 6, 4, 4, 5, 6, 5, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = ceiling(A007605(n)/A097944(n)). - R. J. Mathar, Sep 23 2008
a(n) = A004427(A000040(n)). - Reinhard Zumkeller, May 27 2010
EXAMPLE
The prime numbers begin with 2,3,5,7,11,13,17,19,23,... so the average digits rounded up are 2, 3, 5, 7, (1+1)/2=1, (1+3)/2=2, (1+7)/2=4, (1+9)/2=5, ceiling((2+3)/2)=3, ...
MATHEMATICA
Table[Ceiling[Mean[IntegerDigits[p]]], {p, Prime[Range[120]]}] (* Harvey P. Dale, Nov 06 2022 *)
PROG
(PARI) a(n) = my(d=digits(prime(n))); ceil(vecsum(d)/#d); \\ Michel Marcus, Apr 23 2022
CROSSREFS
Sequence in context: A074461 A285095 A073342 * A113656 A007652 A060418
KEYWORD
easy,nonn,base
AUTHOR
Y. Kelly Itakura (yitkr(AT)mta.ca), Aug 23 2002
EXTENSIONS
Offset changed to 1, cf. to A073342 added, and extended by R. J. Mathar, Sep 23 2008
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 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)