login
Number of 8's in n!.
14

%I #16 Nov 02 2022 10:29:24

%S 0,0,0,0,0,0,0,0,0,2,2,1,0,1,2,1,4,2,1,2,1,0,1,4,1,2,1,6,4,2,5,6,2,8,

%T 2,1,3,2,0,7,4,2,4,2,9,3,7,4,4,7,5,5,9,8,9,4,11,7,10,9,4,11,7,7,12,7,

%U 9,9,7,8,14,18,15,9,9,10,8,18,12,14,13,8,10,8,12,5,8,8,18,10,14,9,11,12,16

%N Number of 8's in n!.

%H Seiichi Manyama, <a href="/A079693/b079693.txt">Table of n, a(n) for n = 0..10000</a>

%H <a href="/index/Fa#factorial">Index entries for sequences related to factorial numbers</a>.

%F a(n) = A034886(n) - (A027869(n) + A079680(n) + A079714(n) + A079684(n) + A079688(n) + A079690(n) + A079691(n) + A079692(n) + A079694(n)). - _Reinhard Zumkeller_, Jan 27 2008

%t Table[DigitCount[n!,10,8],{n,0,100}] (* _Harvey P. Dale_, May 06 2016 *)

%Y Cf. A079714.

%Y Cf. A000142, A137579, A137580.

%K nonn,base,easy

%O 0,10

%A _Cino Hilliard_, Jan 31 2003