OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is log_10(3/2) = 0.176091... (see A154580) (Kunoff, 1987). - Amiram Eldar, Jul 17 2020
10^10 and 10^1000 are both in this sequence: the first 10 digits of (10^10)! and (10^1000)! are '2325796205' and '2101826996', respectively. This can be computed from the fractional part of (log(2 Pi)/2 - N)/log(10), as follows from Stirling's approximation. - M. F. Hasler, Apr 03 2026
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
Sharon Kunoff, N! has the first digit property, The Fibonacci Quarterly, Vol. 25, No. 4 (1987), pp. 365-367.
FORMULA
A008905(a(n)) = 2. - Amiram Eldar, Jul 17 2020
EXAMPLE
4 is a term since 4! = 24 has the initial digit 2.
MATHEMATICA
Select[ Range[ 310 ], IntegerDigits[ #! ] [ [ 1 ] ] == 2 & ]
PROG
(PARI) isok(n) = digits(n!)[1] == 2; \\ Michel Marcus, Feb 07 2017
(PARI) select( {is_A045521(n)=Vec(Str(factorial(n)))[1]=="2"}, [0..399]) \\ Maybe not suitable for very large n >> 10^10. - M. F. Hasler, Apr 03 2026
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Offset changed to 1 by Chai Wah Wu, Feb 07 2017
STATUS
approved
