Comparing large numbers

What is the largest integer n n such that 10 0 n > n ! \large 100^{n} \gt n! \space \space ?


The answer is 268.

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.

2 solutions

Taking logarithm (base 10) of both sides, we have

2. n > t = 2 n l o g ( t ) 2.n > \sum_{t=2}^{n} log (t)

we can have an estimation for t = 2 n l o g ( t ) \sum_{t=2}^{n} log (t) , using Abel's lemma (take the sequence a n = 1 a_n=1 ) and the function f ( x ) = l o g x f(x)=logx .

t = 2 n l o g ( t ) n . l o g n ( n 1 ) \sum_{t=2}^{n} log (t) \approx n.log n -(n-1)

with this estimation, for n 1000 n \approx 1000 the inequality starts to change sign. However, as proven practically, it is far from the answer (268). what one can do is to use the logarithmic version to facilitate the numerical evaluation of the inequality.

Max Yuen
Apr 29, 2019

To solve this, we need the Stirling approximation, which is correct asymptotically.

n ! 2 π n ( n / e ) n 1 2 log 10 ( 2 π n ) + n log 10 n n log 10 e n! \approx \sqrt{2\pi n}(n/e)^n \rightarrow \frac{1}{2}\log_{10}({2\pi n})+n\log_{10}{n}-n\log_{10}{e}

Now, this is manageable, and if you just make a plot against 2 n 2n you'll see that the two functions cross between n = 268 n = 268 and n = 269 n = 269 .

Key idea: Trying to compute the factorial directly is a recipe for disaster.

269! = 24674496683959639479411192502726424547294255297332825680197106039081288901892917898390428994254364001014736124508189279001775937834782944634392375598803528916550589946813690011829690208985566315900911455090647265355232802576460150612022157794389597509558870312080150047612904606819941984627269241198574206484947062512313239769846257455041082292703331013802572428307093284564192341826933936748033736435797155358322718943252370260495773262171506529862911305849523210563459481600000000000000000000000000000000000000000000000000000000000000000

Razzi Masroor - 1 year, 4 months ago

Razzi FTW, you've done it! now I want to buy the same calculator that will do that for me.

Max Yuen - 1 year, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...