[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A231598
Total number of 9's digits in primes less than 10^n.
10
0, 6, 67, 646, 6130, 58145, 558956, 5432190, 53071838, 520787464, 5127052380, 50599825547, 500350977737, 4955299345646
OFFSET
1,2
EXAMPLE
a(2)=6, since there are 6 9's in primes less than 100. Namely: 19, 29, 59, 79, 89, 97.
MATHEMATICA
Table[Count[IntegerDigits[Prime[Range[PrimePi[10^n - 1]]]], 9, 2], {n, 7}] (* Robert Price, Jun 16 2019 *)
KEYWORD
nonn,base,more
AUTHOR
Robert Price, Nov 11 2013
EXTENSIONS
a(14) from Giovanni Resta, Jul 20 2015
STATUS
approved