A079163 Number of 9's in n# (n primorial) = 9's in A002110(n).
0, 0, 0, 0, 0, 0, 0, 0, 4, 1, 2, 1, 0, 0, 0, 2, 2, 2, 3, 2, 5, 4, 3, 4, 1, 2, 2, 4, 7, 7, 4, 6, 6, 3, 7, 4, 8, 7, 5, 11, 11, 8, 7, 14, 8, 8, 13, 10, 8, 5, 16, 6, 8, 10, 5, 14, 14, 14, 12, 15, 15, 15, 11, 7, 12, 14, 13, 18, 15, 17, 10, 17, 13, 18, 14, 13, 16, 20, 16, 14, 17, 19, 19, 18, 22, 13, 19, 17, 17, 24, 23
Offset: 0
Links
- Alois P. Heinz, Table of n, a(n) for n = 0..10000 (999 terms from Vincenzo Librandi)
Programs
-
Mathematica
DigitCount[#, 10, 9]&/@Rest[FoldList[Times, 1, Prime[Range[90]]]] (* Harvey P. Dale, Dec 07 2011 *)
-
PARI
\\ See program in A079099.
Extensions
Offset corrected by Alois P. Heinz, Jul 21 2025