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