The Dink Network

Reply to Re: Some math

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 30th 2004, 03:07 PM
wizardb.gif
merlin
Peasant He/Him
 
Well, n! = 1 * 2 * ... * n.

One would think 0! therefore would be 0. Not so. Watch:

1! = 1
2! = 2 * 1! ; 2! = 2
3! = 3 * 2! ; 3! = 6
4! = 4 * 3! ; 4! = 24
.....

So, turn that around:

4! = 24
3! = 4!/4 ; 3! = 6
2! = 3!/3 ; 2! = 2
1! = 2!/2 ; 1! = 1
0! = 1!/1 ; 0! = 1

Now, how does that satisfy n!?

1! = 1
n! = n(n-1)! ; n[1, Infinity)

Take our answer from before and check to see that:

0! = 1
n! = n(n-1)! ; n[0, Infinity)

That's why 0! == 1.