What is going on here? (Stirling's approximation of n!)
Inquiring minds want to know.... what is the rest of this question?
Ok, there Stirling's approximation of the factorial \(\large \displaystyle n! {\LARGE\text{ ~}} ~\sqrt{2\pi n}\cdot \left(\frac{n}{e}\right)^n\) and I take two limits to test how reasonable it is, and this is what I get: \(\large \displaystyle \lim_{n \rightarrow \infty}\left[ \sqrt{2\pi n}\cdot \left(\frac{n}{e}\right)^n~-~n! \right]=-\infty\) \(\large \displaystyle \lim_{n \rightarrow \infty}\left[ \frac{\sqrt{2\pi n}\cdot \left(\frac{n}{e}\right)^n~}{~n!} \right]=1\)
I can see Stirling's is smaller from the first limit, but why is then 2nd limit =1? (btw, the source is wolfram)
i'm not sure you're first limit is correct.
wolfram said so
And if you subtract Stirling's approximation from factorial: n! - Stirling's approximation , then the limit as n-> infinity , = infinity.
so basically n! is increasing faster than (n)^{n+1/2} :)
@ganeshie8 check this
Yes, basically plain factorial is increasing faster than stirlings. I guess for limits as n-> infinity, I can only use stirling in a denominator if I want to shjow convergence.
show*
whats the question
My question is why this limit is (- infinity) \(\large \displaystyle \lim_{n \rightarrow \infty}\left[ \sqrt{2\pi n}\cdot \left(\frac{n}{e}\right)^n~-~n! \right]=-\infty\) and this limit is 1 for some reason \(\large \displaystyle \lim_{n \rightarrow \infty}\left[ \frac{\sqrt{2\pi n}\cdot \left(\frac{n}{e}\right)^n~}{~n!} \right]=1\)
let me ask you a question
\(\lim\limits_{n\to\infty} (2n-n) = ?\) \(\lim\limits_{n\to\infty} \dfrac{2n}{n} = ?\)
Yes, yes I think I found why 1000-100 10000-1000 100000-10000 1×10^(n+1)-1×10^n = ∞ but if you divide it is just 10 for every one of them
right, good question to spend time on !
\(\large \displaystyle \sqrt{2\pi n}\cdot \left(\frac{n}{e}\right)^n~~~?~~~~n! \) \(\large \displaystyle \sqrt{2\pi n}\cdot n^n~~~?~~~~e^nn! \) I guess like this. \(\large \displaystyle \sqrt{2\pi}\cdot n^{n+0.5}~~~?~~~~e^nn! \) we can disregard coefficient 2pi for this, perhaps. \(\large \displaystyle n^{n+0.5}~~~?~~~~e^nn! \)
so two growths verses one, but still kind of strange I thought that n^n is the boss
well in the long time no one can beats factorial :3
No, we do know that n^n>n!
what about e^n ?
yes, so with e^n together factorial is greater, and my logic of n^n being the boss doesn't apply
Well, \[\frac{e}{n}\times\frac{2e}{n}\times\frac{3e}{n}\times\frac{4e}{n}\times...\frac{(n-1)e^{n-1}}{n}\times\frac{e^nn}{n}\] so that e^n * n! can be in a sense intuitively larger if you think about it...
oh, my bad
wait, I am mixinging something up
\[\frac{n!~e^n}{n^n}=\frac{e}{n}\times\frac{2e}{n}\times\frac{3e}{n}\times\frac{4e}{n}\times...\frac{(n-1)e}{n}\times\frac{en}{n}\] just this.
i don't know intuitively n^n still rules, but it will take me a while to digest that and actually think about the truth and make some sense of it. Thanks guys!
|dw:1440615166212:dw|
well, that is very beginning tho...... and the difference will grow infinitely...
in any case.... I guess will just take the fact and some reasoning without complete comprehension. THere are times when we humans have to do that.
Tnx for your input ganeshie and ikram
Join our real-time social learning platform and learn together with your friends!