To all of those of you who lie awake at night wondering about the factorial function...
1 = 0!
Why?
Because of the following:
n! can be defined as (n-1)! * n =n!
which can be expressed as n! * (n+1) = (n+1)!
which, through dividing both sides of the equation by (n+1) becomes n! = (n+1)!/(n+1)
Thus, when we plug in n when n = 0, we get
0! = (0+1)!/(0+1)
and, since 1! is equal to 1, we get
0! = 1/1 = 1
NOTE: the factorial function n! is primarily defined as the multiplication of all numbers from 1 to n.
Log in to comment