Stirling's Approximation

DOWNLOAD Mathematica Notebook Contribute to this entry

Stirling's approximation gives an approximate value for the factorial function n! or the gamma function Gamma(n) for n>>1. The approximation can most simply be derived for n an integer by approximating the sum over the terms of the factorial with anintegral, so that

lnn!=ln1+ln2+...+lnn
(1)
=sum_(k=1)^(n)lnk
(2)
 approx int_1^nlnxdx
(3)
=[xlnx-x]_1^n
(4)
=nlnn-n+1
(5)
 approx nlnn-n.


source :http://mathworld.wolfram.com/StirlingsApproximation.html


'MeGuro > mathe' 카테고리의 다른 글

The product of n consecutive integer is divisible by n!  (0) 2013.07.21
There , and

The product of n consecutive integer is divisible by n!


Proof 1

let n consecutive numbers are m+1, ... , m+n

then, the product is (m+1) * (m+2) * ... * (m+n) = (m+n)!/m! = (m+n) C m

we know binomial coefficient is integer. hence the proof is done.


Proof 2

You could argue by induction on n. The result is obvious if n=1.

For the inductive step, assume that (n1)! divides any product of n1 consecutive integers. Now consider products of n consecutive integers.

Say your product is P(k)=(k+1)(k+2)(k+n). First, you may assume k0: If one of the factors k+j is 0, then P(k)=0 and obviously n! divides it. If k+n=t1<0, this is the same as

(1)n(t+1)(t+2)(t+n)=(1)nP(t),

and t0.

Now argue by induction on k. The result clearly holds if k=0, since P(0)=n!.

Suppose n!|P(k). Then P(k+1)=(k+2)(k+3)(k+n+1). Split the last factor as (k+1)+n. We have

P(k+1)=[(k+2)(k+n)](k+1)+[(k+2)(k+n)]n.

The first summand is P(k), which is divisible by n! by the inductive assumption on k. The second summand is n times a product of n1 consecutive integers, thus n times a multiple of (n1)!, by the inductive assumption on n. Clearly, n times a multiple of (n1)! is a multiple of n!, and the sum of two multiples of n! is a multiple of n!, so n!|P(k+1).

We are done by induction.

source : http://math.stackexchange.com/questions/12067/the-product-of-n-consecutive-integers-is-divisible-by-n-without-using-the-prop

'MeGuro > mathe' 카테고리의 다른 글

Stirling's Approximation  (0) 2013.07.21
There , and

I heard it first from friend's blog when i was freshmen.




'MeGuro > misc.' 카테고리의 다른 글

Sherlock  (2) 2013.08.11
OMG  (1) 2013.07.16
There , and