Possible Duplicate:
Prove $0! = 1$ from first principles
Why does 0! = 1?
If I'm right, factorial $!$ means:
$$n!=1 \cdot 2 \cdot 3 \cdot 4 \cdots n $$
so:
$$ \begin{align} 5!&=1\cdot2\cdot3\cdot4\cdot5=120\\ 4!&=1\cdot2\cdot3\cdot4=24\\ 3!&=1\cdot2\cdot3=6\\ 2!&=1\cdot2=2\\ 1!&=1 \end{align} $$
But what is $n!$ when $n=0$?
It can't be undefined and it can't be $n!=0$, since those are illegal in known equations like:
$$e^x = \sum_{n=0}^\infty \frac{x^n}{n!}$$
So what is it?
$0! = 1$ is consistent with, and for reasons related to, how we define the empty product. See this entry on empty product.
Some of the most common examples are the following:
Just as ${n^0 = 1}$ for any $n$, we define, as a convention, $0!$ to be $1$.
Added observation:
$$e^x = 1 + \frac {x} {1!} + \frac {x^2} {2!} + \frac {x^3} {3!} + ... = 1 + \sum_{n=1}^\infty \frac{x^n}{n!} \tag{1}$$
But the following is a more concise definition: $$e^x = \frac {x^0} {0!} + \frac {x^1} {1!} + \frac {x^2} {2!} + \frac {x^3} {3!} + ... = \sum_{n=0}^\infty \frac{x^n}{n!}\tag{2}$$
$(1)$ and $(2)$ are equal if and only if $$\;\;\displaystyle e^0 = \frac{x^0}{0!} = \frac {1}{0!} = 1 \iff 0! = 1.$$