cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A008906 Number of digits in n! excluding final zeros.

This page as a plain text file.
%I A008906 #30 Nov 21 2021 07:34:55
%S A008906 1,1,1,1,2,2,2,3,4,5,5,6,7,8,9,10,11,12,13,15,15,16,18,19,20,20,21,23,
%T A008906 24,25,26,27,29,30,32,33,34,36,37,39,39,41,43,44,46,47,48,50,52,53,53,
%U A008906 55,56,58,60,61,62,64,66,68,68,70,72,74,76,76,78,80,82,84,85,86,88,90,92,92,94
%N A008906 Number of digits in n! excluding final zeros.
%C A008906 From _Bernard Schott_, Nov 19 2021: (Start)
%C A008906 a(n) < n iff 2 <= n <= 38 or n = 40;
%C A008906 a(n) = n iff n = 1, 39, 41;
%C A008906 a(n) > n iff n = 0 or n >= 42. (End)
%H A008906 T. D. Noe, <a href="/A008906/b008906.txt">Table of n, a(n) for n = 0..1000</a>
%H A008906 <a href="/index/Fi#final">Index entries for sequences related to final digits of numbers</a>
%F A008906 a(n) = A034886(n) - A027868(n). - _Michel Marcus_, Jun 24 2013
%t A008906 Array[IntegerLength[#!//.x_/;x~Mod~10==0:>x/10]&,77,0] (* _Giorgos Kalogeropoulos_, Nov 19 2021 *)
%o A008906 (Python)
%o A008906 from math import factorial
%o A008906 def A008906(n): return len(str(factorial(n)).rstrip('0')) # _Chai Wah Wu_, Oct 24 2021
%Y A008906 Cf. A027868, A034886.
%K A008906 nonn,base,easy
%O A008906 0,5
%A A008906 _Russ Cox_