How many decimal digits does 2 7 8 1 ! have?
For example, 5 ! = 1 2 0 has 3 decimal digits.
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.
@Ishtiaque Ahmed Sayef , it is unnecessary to enter everything is LaTex. It is both difficult and not the standard used in Brilliant.org hence does not look professional. I have amended it for you.
Log in to reply
Thank you very much. I will try to follow your advice.
Log in to reply
Master Yoda, "Do. Or do not. There is no try." Please just do it, no try.
Do we even need Stirling's formula? The final formula follows from the scientific notation of numbers.
Log in to reply
Of course we don't need Stirling's formula if we evaluate lo g 1 0 2 7 8 1 ! by software. We need to evaluate n = 1 ∑ 2 7 8 1 lo g 1 0 n . But this is not a Computer Science problem so I would not use numerical method and Stirling's formula provides a convenient way to solve such problem.
Problem Loading...
Note Loading...
Set Loading...
The number of decimal digits of 2 7 8 1 ! is given by ⌊ lo g 1 0 2 7 8 1 ! ⌋ + 1 . To estimate lo g 1 0 2 7 8 1 ! , we can use Stirling's formula as follows:
2 7 8 1 ! lo g 1 0 2 7 8 1 ! ∼ 2 π ⋅ 2 7 8 1 ( e 2 7 8 1 ) 2 7 8 1 ≈ 2 1 ( lo g 1 0 π + lo g 1 0 5 5 6 2 ) + 2 7 8 1 ( lo g 1 0 2 7 8 1 − lo g 1 0 e ) ≈ 8 3 7 2 . 6 7 1 1 8 6
Therefore 2 7 8 1 ! has ⌊ lo g 1 0 2 7 8 1 ! ⌋ + 1 = 8 3 7 3 decimal digits.