# Zero Factorial

**URL:** <https://boards.straightdope.com/t/zero-factorial/8167>\
**Category:** Factual Questions\
**Created:** [March 1, 2000, 4:53am UTC](https://boards.straightdope.com/t/zero-factorial/8167 "2000-03-01T04:53:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeturgeon](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jeturgeon](https://boards.straightdope.com/u/jeturgeon)\
**Post date:** [March 1, 2000, 4:53am UTC](https://boards.straightdope.com/t/zero-factorial/8167/1 "2000-03-01T04:53:00Z")

</div>

Can someone pleeeease explain this for me. Throughout all of my math classes, mostly Algebra, I was always told that zero factorial (0!) is equal to 1. Now I understand how 3! is the same as 6, and 5! is the same as 120, and so forth, but I cannot figure out the 0! mystery. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Nu\_Vo\_Da\_Da](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Nu\_Vo\_Da\_Da](https://boards.straightdope.com/u/Nu_Vo_Da_Da)\
**Post date:** [March 1, 2000, 4:57am UTC](https://boards.straightdope.com/t/zero-factorial/8167/2 "2000-03-01T04:57:00Z")

</div>

Don’t you think this should be in GQ?  
(and sorry, can’t really help you with the math there)

---

<div class="post-metadata">

**Author:** ![Bored2001](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@Bored2001](https://boards.straightdope.com/u/Bored2001)\
**Post date:** [March 1, 2000, 4:59am UTC](https://boards.straightdope.com/t/zero-factorial/8167/3 "2000-03-01T04:59:00Z")

</div>

Well, I really have no clue, but I’ve learned something about math. If it doens’t follow the rule then…theres a special rule!! or it is by definition :D. 0!=1 is probably the latter.

---

<div class="post-metadata">

**Author:** ![Gaudere](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Gaudere](https://boards.straightdope.com/u/Gaudere)\
**Post date:** [March 1, 2000, 5:20am UTC](https://boards.straightdope.com/t/zero-factorial/8167/4 "2000-03-01T05:20:00Z")

</div>

[Moderator Hat ON]

Yeah, I think this should go to the mathematically-inclined in General Questions. Here ya go, Manny, Nickrz…

[Moderator Hat OFF]

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [March 1, 2000, 5:21am UTC](https://boards.straightdope.com/t/zero-factorial/8167/5 "2000-03-01T05:21:00Z")

</div>

The most natural way is to think of it as an “empty product”. n! is defined to be the product of all positive integers less than or equal to n. That’s an empty set when n=0, so you’re multiplying over an empty product (there’s nothing left to be multiplied). Empty products are generally defined to be equal to 1, because that’s the multiplicative identity (the multiplicative “nothingness”, I guess you could say). Similarly, empty sums are generally defined to be 0, since that’s the additive identity.

---

<div class="post-metadata">

**Author:** ![Luckie](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@Luckie](https://boards.straightdope.com/u/Luckie)\
**Post date:** [March 1, 2000, 6:27am UTC](https://boards.straightdope.com/t/zero-factorial/8167/6 "2000-03-01T06:27:00Z")

</div>

no, no, no.  
0! is defined as 1 because that follows the pattern. if you go backward

you can accept that 4! = 24  
then the pattern is this:  
3! = (4!)/4 = 6  
2! = (3!)/3 = 2  
1! = (2!)/2 = 1  
0! = (1!)/1 = 1  
(-1)! = 0!/0 = undefined

in fact you can define a “factorial” for non-integers by the same basic relation.  
that is to say, define a function such that  
f(x) == x\*f(x-1)  
f(1) == 1.  
this is basicly how the gamma function is defined ( the gamma function is actually defined slighly differently so that gamma(n-1)=n! if i remember correctly).  
good luck with your math.  
-Luckie

---

<div class="post-metadata">

**Author:** ![C\_K\_Dexter\_Haven](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@C\_K\_Dexter\_Haven](https://boards.straightdope.com/u/C_K_Dexter_Haven)\
**Post date:** [March 1, 2000, 12:44pm UTC](https://boards.straightdope.com/t/zero-factorial/8167/7 "2000-03-01T12:44:00Z")

</div>

Yes, I agree with Luckie. There are several functions, similar to the factorial function, that are actually defined as a similar build-up.

Factorial or gamma function is defined by:  
f(1) = 1 and  
f(n) = n \* f(n-1)  
Similarly, the Fibonnacci sequence is defined as:  
f(1) = 1 and  
f(n) = n + f(n-1)

The concept of iterative functions is a complicated one, and leads to interesting stuff in chaos theory, where functions are defined as cumulating:  
f(n) = f (f(n-1) )

---

<div class="post-metadata">

**Author:** ![JonF](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@JonF](https://boards.straightdope.com/u/JonF)\
**Post date:** [March 1, 2000, 1:27pm UTC](https://boards.straightdope.com/t/zero-factorial/8167/8 "2000-03-01T13:27:00Z")

</div>

My understanding is similar to that which has been posted already. The factorial function is defined only for the natural numbers, and 0 is nto a natural number. But, the factorial function is a special case of the gamma function, and gamma(1) is defined. Since gamma(n) = (n-1)! for the natural numbers, it is reasonable to decide that 0! = gamma(1) just to kep the correspondence between the two functions. See [X Factorial and the Gamma Function](http://shttp://forum.swarthmore.edu/dr.math/problems/basham5.29.98.html) (which includes another reason for deciding that 0! = 1) and [What is the Gamma Function?](http://forum.swarthmore.edu/dr.math/problems/masdeo5.28.98.html).

* * *

jrf

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [March 1, 2000, 2:44pm UTC](https://boards.straightdope.com/t/zero-factorial/8167/9 "2000-03-01T14:44:00Z")

</div>

> [@](#):
>
> Originally posted by Luckie:  
> \*\*no, no, no.  
> 0! is defined as 1 because that follows the pattern. if you go backward  
> \*\*

It’s also defined that way to make the formulas work.

What is the formula for the number of ways that you can choose M objects from N objects? Now, plug in M=3 and N=3. Obviously, the answer is 1, but the formula reduces to 1/(3-3)! (I’m not excited about this, that’s a factoral sign) or 1/0!

In order for that to give the appropriate answer of 1, we are limited in our choice of definitions for 0!

* * *

rocks

---

<div class="post-metadata">

**Author:** ![Keeves](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@Keeves](https://boards.straightdope.com/u/Keeves)\
**Post date:** [March 1, 2000, 3:06pm UTC](https://boards.straightdope.com/t/zero-factorial/8167/10 "2000-03-01T15:06:00Z")

</div>

(First of all, am I correct that “natural numbers” = “positive integers” ? If I’m wrong, the following won’t make sense, so please correct me.)

Jonf wrote

> [@](#):
>
> The factorial function is defined only for the natural numbers

That makes sense, but is it really true? Intuitively, exponents should also be limited to natural numbers: You can square a number, or cube a number, or raise it to any other integral power, but how do you multiply a number by itself two **and a half** times? or a negative number of times? Yet, we know that any real number can be used as an exponent. Maybe any real number can have a factorial too?

---

<div class="post-metadata">

**Author:** ![RTFirefly](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@RTFirefly](https://boards.straightdope.com/u/RTFirefly)\
**Post date:** [March 1, 2000, 4:02pm UTC](https://boards.straightdope.com/t/zero-factorial/8167/11 "2000-03-01T16:02:00Z")

</div>

Actually, any nonnegative number **x** _does_ in effect have a factorial, and that factorial is gamma(x+1). (Check out Jon’s links.) The factorial function n!, as we generally know it, is a restriction of the gamma function to integer inputs.

That allows us to replace the definition in terms of integrals with the more common (and easier to use) definition in terms of multiplication. But it makes the definition of 0! look arbitrary when, actually, it’s not.

* * *

“Living in this complex world of the future is not unlike having bees live inside your head.” - F. Scott Firesign

---

<div class="post-metadata">

**Author:** ![JonF](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@JonF](https://boards.straightdope.com/u/JonF)\
**Post date:** [March 1, 2000, 5:06pm UTC](https://boards.straightdope.com/t/zero-factorial/8167/12 "2000-03-01T17:06:00Z")

</div>

> [@](#):
>
> am I correct that “natural numbers” = “positive integers” ?

Actually, there’s some disagreement whether or not zero is a natural number. See [Do Natural Numbers Start with Zero or One](http://mathforum.com/dr.math/problems/uli.7.4.96.html). There are some links at the end to several discussions.

> [@](#):
>
> Intuitively, exponents should also be limited to natural numbers

One might say that, but there’s a parallel to the factorial and gamma functions. If you define exponentiation as multiplying a number by itself the number of times that is specified by the exponent, then only integer exponents make sense. However, it you define exponentiation more generally as:

F(x) = antilog(log(x)\*exponent) (x\>=0)

F(x) = antilog(log(x)/exponent) (x\<0)

then you get a much more useful and general function, that reduces to the other function for integer exponents.

* * *

jrf

---

<div class="post-metadata">

**Author:** ![AWB](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AWB](https://boards.straightdope.com/u/AWB)\
**Post date:** [March 2, 2000, 6:06am UTC](https://boards.straightdope.com/t/zero-factorial/8167/13 "2000-03-02T06:06:00Z")

</div>

_ **JonF:** Actually, there’s some disagreement whether or not zero is a natural number. See Do Natural Numbers Start with Zero or One. There are some links at the end to several discussions._

That Dr. Derwood 🙂 is flipped! Natural numbers are 1, 2, 3, 4… _Whole_ numbers are 0, 1, 2, 3, 4… These fit his description:

_When I first learned about natural numbers, I was told to think of them as anything you could use to fill in the blank of the following sentence: I have \_\_\_\_ bowls of ice cream (or pieces of cake, or piles of dirt, etc.)._

substituting “natural” for “whole”, the above paragraph works.

* * *

Wrong thinking is punished, right thinking is just as swiftly rewarded. You’ll find it an effective combination.

---

<div class="post-metadata">

**Author:** ![John\_Kentzel-Griffin](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@John\_Kentzel-Griffin](https://boards.straightdope.com/u/John_Kentzel-Griffin)\
**Post date:** [March 6, 2000, 2:43pm UTC](https://boards.straightdope.com/t/zero-factorial/8167/14 "2000-03-06T14:43:00Z")

</div>

Just a small correction on what CKDextHavn said:

Factorial is defined as  
0! = 1  
n! = (n-1)! \* n

Fibonnacci sequence is defined as  
f(1) = 1  
f(2) = 1  
f(n) = f(n-1) + f(n-2)

* * *

Virtually yours,

DrMatrix  
These words are mine and they are true - Chief Meninock
