Determine the number of digits of
Details and Assumptions
If you want to do more problem like this one, try How many digits do I really have?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We can use Stirling's Approximation: 2 π n ( e n ) n ≤ n ! ≤ e n ( e n ) n Now take the log (base 10) of all these expressions: 2 1 lo g ( 2 π ) + 2 1 lo g n + n ( lo g n − lo g e ) ≤ lo g n ! ≤ lo g e + 2 1 lo g n + n ( lo g n − lo g e ) Now if we substitute n = 2 0 1 5 and the values given, we get the following: 1 3 3 2 0 . 1 2 ≤ lo g n ! ≤ 1 3 3 2 0 . 5 9 1 3 3 2 1 ≤ ⌊ lo g n ! ⌋ + 1 ≤ 1 3 3 2 1 Now the formula for the number of digits in n ! is exactly ⌊ lo g n ! ⌋ + 1 . Therefore, the number of digits in 2 0 1 5 ! is 1 3 3 2 1 .