A008905 Leading digit of n!.
1, 1, 2, 6, 2, 1, 7, 5, 4, 3, 3, 3, 4, 6, 8, 1, 2, 3, 6, 1, 2, 5, 1, 2, 6, 1, 4, 1, 3, 8, 2, 8, 2, 8, 2, 1, 3, 1, 5, 2, 8, 3, 1, 6, 2, 1, 5, 2, 1, 6, 3, 1, 8, 4, 2, 1, 7, 4, 2, 1, 8, 5, 3, 1, 1, 8, 5, 3, 2, 1, 1, 8, 6, 4, 3, 2, 1, 1, 1, 8, 7, 5, 4, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 1
Offset: 0
Links
- Seiichi Manyama, Table of n, a(n) for n = 0..10000 (terms 0..1000 from T. D. Noe)
- Sharon Kunoff, N! has the first digit property, The Fibonacci Quarterly, Vol. 25, No. 4 (1987), pp. 365-367.
- Index entries for sequences related to factorial numbers
Programs
-
Haskell
a008905 = a000030 . a000142 -- Reinhard Zumkeller, Apr 08 2012
-
Mathematica
f[n_] := Quotient[n!, 10^Floor@ Log[10, n!]]; Array[f, 105, 0]
Formula
Extensions
Two less-efficient Mathematica codings removed by Robert G. Wilson v, Nov 05 2010
Comments