OFFSET
0,6
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
a(5) = 2 because 5! = 120 has three digits, 5 has only one digit, and 3 - 1 = 2.
a(6) = 2 because 6! = 720 has three digits, 6 has only one digit, and 3 - 1 = 2.
a(7) = 3 because 7! = 5040 has four digits, 7 has only one digit, and 4 - 1 = 3.
MAPLE
seq(nops(convert(n!, base, 10)) - nops(convert(n, base, 10)), n=0..50); # Peter Luschny, Apr 28 2014
MATHEMATICA
Table[Length[IntegerDigits[n!]] - Length[IntegerDigits[n]], {n, 0, 79}]
PROG
(PARI) a(n)=lngamma(n+1)\log(10)-#Str(n)+1 \\ Charles R Greathouse IV, Apr 28 2014
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Alonso del Arte, Apr 27 2014
STATUS
approved