login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Total number of 9's digits in primes less than 10^n.
10

%I #14 Jun 16 2019 14:56:51

%S 0,6,67,646,6130,58145,558956,5432190,53071838,520787464,5127052380,

%T 50599825547,500350977737,4955299345646

%N Total number of 9's digits in primes less than 10^n.

%e a(2)=6, since there are 6 9's in primes less than 100. Namely: 19, 29, 59, 79, 89, 97.

%t Table[Count[IntegerDigits[Prime[Range[PrimePi[10^n - 1]]]], 9, 2], {n, 7}] (* _Robert Price_, Jun 16 2019 *)

%Y Cf. A231411, A231590-A231598, A119290, A119291-A119300.

%K nonn,base,more

%O 1,2

%A _Robert Price_, Nov 11 2013

%E a(14) from _Giovanni Resta_, Jul 20 2015