soandos
- 166
- 0
is there a way to determine (does not need to be exact) the number of digits in x! ?
sorry if this is kind of pointless
sorry if this is kind of pointless
soandos said:is there a way to determine (does not need to be exact) the number of digits in x! ?
Gib Z said:Don't forget to then apply
[tex]D = 1 + \lfloor \log_{10} \lfloor n! \rfloor \rfloor[/tex]
after that for the number of digits.
Jarle said:If [tex]n![/tex] is hard to calculate, the series
[tex]D = 1 + \lfloor \sum^n_{i=1} \log_{10}i \rfloor[/tex]
should be easier to calculate - for integer [tex]n[/tex].