# Zero Factorial Mystery

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

<div class="post-metadata">

**Author:** ![psychonaut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/psychonaut/32/4655_2.png) [@psychonaut](https://boards.straightdope.com/u/psychonaut)\
**Post date:** [April 14, 2012, 8:58am UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/21 "2012-04-14T08:58:22Z")

</div>

> [@Frylock](#):
>
> **Psychonaut** , how did this zombie happen?

There are lots of perfectly good GQs posted by still-active posters which never got a response. I can only hope that one day some benevolent Doper will take an interest in one of the 0-reply questions I’ve posted and provide the information I’ve desperately been searching for for so long. 😃

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [April 14, 2012, 9:32am UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/22 "2012-04-14T09:32:14Z")

</div>

> [@psychonaut](#):
>
> There are lots of perfectly good GQs posted by still-active posters which never got a response. I can only hope that one day some benevolent Doper will take an interest in one of the 0-reply questions I’ve posted and provide the information I’ve desperately been searching for for so long. 😃

Yeah, but how did you stumble on this one?

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 9:45am UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/23 "2012-04-14T09:45:00Z")

</div>

> [@CalMeacham](#):
>
> But the biggest reason is that the factorial function follows the Gamma function. Gamma(n) is equal to (n - 1)!, and Gamma (1) = 1
> 
> [Gamma function - Wikipedia](http://en.wikipedia.org/wiki/Gamma_function)

The Gamma function, on whatever particular calculus-y construction, doesn’t really add anything to the argument. Yes, defining n! as Gamma(n + 1) yields 0! = 1, but the only reason anyone uses this definition of n! is because it, among other things, satisfies the property that 1! = 1 and n! = (n - 1)! \* n. But those properties yield 0! = 1 rather directly and simply just in themselves. Sure, this is reflected in the Gamma function, but that’s just because the Gamma function, by design, satisfies those properties as well.

There is no argument better than “1! = 0! \* 1 [in keeping with the defining n! = (n - 1)! \* n pattern]; therefore, 0! = 1!/1 = 1”. That’s all there is to it, and all there need be.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 9:51am UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/24 "2012-04-14T09:51:44Z")

</div>

I could swear I edited the wording on this line, but somehow it got clobbered by a later edit?

> [@Indistinguishable](#):
>
> Sure, this is reflected in the Gamma function, but that’s just because the Gamma function, by design, satisfies **(the appropriately shifted version of)** those properties as well.

Missing words reinstated in bold.

Also, as far as I’m concerned, we should just go ahead and feel comfortable writing x! even for non-integer x, or write \Pi(x) or what have you, all the time, rather than ever bothering with \Gamma(x - 1). The shift by one in the definition of Gamma that most people use has no great motivation and just causes needless obscuration.

---

<div class="post-metadata">

**Author:** ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)\
**Post date:** [April 14, 2012, 10:11am UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/25 "2012-04-14T10:11:56Z")

</div>

As long as we’re going to talk about mysteries of posting, why did jeturgeon post six times in 2000, where three of the posts are duplicates of each other, and then not post again till this year?

---

<div class="post-metadata">

**Author:** ![erislover](https://avatars.discourse-cdn.com/v4/letter/e/71e660/32.png) [@erislover](https://boards.straightdope.com/u/erislover)\
**Post date:** [April 14, 2012, 3:22pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/26 "2012-04-14T15:22:08Z")

</div>

> [@Indistinguishable](#):
>
> There is no argument better than “1! = 0! \* 1 [in keeping with the defining n! = (n - 1)! \* n pattern]; therefore, 0! = 1!/1 = 1”. That’s all there is to it, and all there need be.

I’ve always found the permutation motivation compelling. The number of ways to order no objects is 1, namely, having no objects.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 6:10pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/27 "2012-04-14T18:10:24Z")

</div>

> [@erislover](#):
>
> I’ve always found the permutation motivation compelling. The number of ways to order no objects is 1, namely, having no objects.

Yes, but I’ve noticed that many find “The number of ways to order no objects is 1” as confusing a concept as “0! = 1” or “the empty product is 1” or what have you.

At any rate, that again can be seen as just a consequence of the fact that the number of ways to order n objects, for finite positive n, is equal to the number of ways to order (n - 1) objects times n [as in, first ordering (n - 1) of the objects and then picking one of n positions in which to place the remaining object]. So, again, we are back to 0! = 1!/1 = 1.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 7:17pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/28 "2012-04-14T19:17:56Z")

</div>

> [@aldiboronti](#):
>
> Here’s what I find paradoxical. As the above is, as you say, the definition of the factorial function, let us put in 0 for n to find 0!.
> 
> 0! = 0 x (0 - 1) x (0 - 2) x — x 1
> 
> This simplifies to 0! = 0
> 
> What am I missing here?
> 
> Edit: Have I been whooshed?

No; you may perfectly well go ahead and take (-1)! to be 0!/0 = 1/0 = unsigned infinity. After all, the meaning of -1 x -2 -x -3 x … x 1 is far from immediately clear, and no one ever guaranteed it would come out nice. Indeed, the factorial function blows up in the same way at all negative integers, precisely because of that division by 0.

[And then the argument “0! = 0 x (-1)! = 0” fails, because while ordinarily 0 times anything is 0, once we acknowledge (-1)! as “blowing up”, we’re looking at the indeterminate form 0 x unsigned infinity, which needn’t be 0 and in this case is describing 1 instead]

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 8:06pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/29 "2012-04-14T20:06:40Z")

</div>

> [@Indistinguishable](#):
>
> Also, as far as I’m concerned, we should just go ahead and feel comfortable writing x! even for non-integer x, or write \Pi(x) or what have you, all the time, rather than ever bothering with \Gamma(x - 1).

I suppose I meant \Gamma(x + 1). But, that’s the point; having to keep track of this shift makes things needlessly difficult.

Anyway, speaking of the Gamma function, for those who’ve never seen a good account of how the factorial function extends naturally to non-integers, let me present one:

For integers a and b, let [a, b] denote b!/a! = b x (b - 1) x (b - 2) x … x (a + 1).

Note that this has the following fundamental properties:  
[a, a] = 1  
[a, c] = [a, b] x [b, c]  
(From these, we also have [a, b] = 1/[b, a])

Also,  
[a - 1, a] = a

And finally, the one perhaps trickier property to keep in mind:

If the difference between a and b is held fixed while a and b grow large, then [a, b] is asymptotically equal to a^(b - a). [This is because a^(b - a) \<= [a, b] \<= b^(b - a), but the bounds a^(b - a) and b^(b - a) are asymptotically equal to each other. (This, in turn, is because, the bounds’ ratio is (1 + (b - a)/a)^(b - a), which approaches (1 + (b - a) x 0)^(b - a) = 1 as a grows large]

Using all these properties together, we have that [a, b] = [a, a + n] x [a + n, b + n] x [b + n, b] = [a + n, b + n] x [a, a + n] / [b, b + n] = [a + n, b + n] x ((a + n) x (a + n - 1) x … x (a + 1))/((b + n) x (b + n - 1) x … x (b + 1)), no matter what integer n is. And, in the limit as n goes to infinity, [a + n, b + n] becomes asymptotically equal to a^(b - a). Thus, we have that [a, b] = the limit as the integer n goes to infinity of (a + n)^(b - a) x ((a + n) x (a + n - 1) x … x (a + 1))/((b + n) x (b + n - 1) x … x (b + 1)).

But this last definition can be interpreted even if a and b aren’t integers. And that gives the canonical extension of factorial to non-integer inputs (aka, the gamma function).

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 8:12pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/30 "2012-04-14T20:12:39Z")

</div>

> [@Indistinguishable](#):
>
> And, in the limit as n goes to infinity, [a + n, b + n] becomes asymptotically equal to **(a + n)**^(b - a).

Typo corrected in bold.

And, although I didn’t say so explicitly, I should: I spoke above in terms of the general product [a, b] = b x (b - 1) x … x (a + 1), but the way to recover ordinary factorial from this is of course to interpret n! as [0, n].

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [April 14, 2012, 8:18pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/31 "2012-04-14T20:18:28Z")

</div>

> [@Trinopus](#):
>
> In practical terms, n! is the number of ways of arranging n items in a row.
> 
> You can arrange 3 items in a row six different ways. Two items in two ways. One item in only one way.
> 
> And zero items? Only one way!

This is really the best explanation. All the rest of the explanations just say that you want 0! to equal 1 in order to make a formula work that is really only meaningful for n\>1, and that is not a very compelling reason.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 8:35pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/32 "2012-04-14T20:35:24Z")

</div>

> [@nivlac](#):
>
> This is really the best explanation. All the rest of the explanations just say that you want 0! to equal 1 in order to make a formula work that is really only meaningful for n\>1, and that is not a very compelling reason.

Why say the formula is only meaningful for n \> 1? The formula is meaningful for all n, including 0, negative integers, and even non-integers. It’s just that the factorial function hits unsigned infinity on negative integers, and is more complicated to understand on non-integers. But the defining pattern captured by the formula is valid everywhere.

[If one fundamentally thinks of n! as “The number of ways to arrange n objects”, then of course the answer to questions such as the OP’s must be “The number of ways to arrange 0 objects is 1”, with some further explanation necessary for those who have difficulty thinking about “The number of ways to arrange 0 objects”. But I think most people asking questions such as the OP’s don’t fundamentally think of n! as “The number of ways to arrange n objects” at all, but rather, as simply “The function which keeps multiplying by the next number as you go on”. And this is perfectly fine; after all, it’s this latter pattern which we use to fruitfully generalize the factorial function quite far, while the definition in terms of numbers of orderings is limited to making sense only for cardinal numbers]

---

<div class="post-metadata">

**Author:** ![leahcim](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leahcim](https://boards.straightdope.com/u/leahcim)\
**Post date:** [April 14, 2012, 9:30pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/33 "2012-04-14T21:30:17Z")

</div>

> [@nivlac](#):
>
> All the rest of the explanations just say that you want 0! to equal 1 in order to make a formula work that is really only meaningful for n\>1, and that is not a very compelling reason.

Why wouldn’t that be compelling? After all, math, and especially the way we define functions, is for our convenience.

The function Factorial(n) = n! the way it is usually defined shows up in a lot of useful situations. The function Schmactorial(n) = n! for n \>= 1 and something else for n = 0 doesn’t show up in many places at all. So if we defined our series in terms of Schmactorial() instead of Factorial() we’d have to pull out a lot of special cases, and write a lot of equations less compactly, &c, and it would get tedious.

That’s the reason I cite for 1 not being a prime. If 1 was a prime, then a lot of useful theorems that now start with “let p be a prime” would then say “let p be a prime that is not one”, and that would suck.

---

<div class="post-metadata">

**Author:** ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)\
**Post date:** [April 14, 2012, 9:38pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/34 "2012-04-14T21:38:38Z")

</div>

> [@nivlac](#):
>
> This is really the best explanation. All the rest of the explanations just say that you want 0! to equal 1 in order to make a formula work that is really only meaningful for n\>1, and that is not a very compelling reason.

No, the Gamma Function comparison doesn’t rely on "making a formula work that is only meaningful for n \> 1.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [April 14, 2012, 9:46pm UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/35 "2012-04-14T21:46:02Z")

</div>

> [@CalMeacham](#):
>
> No, the Gamma Function comparison doesn’t rely on "making a formula work that is only meaningful for n \> 1.

Oh, I don’t know about that. Good luck trying to convince anyone that n! ought mean, say, “The integral from 0 to infinity of t^n/e^t dt” without resort to exhibiting the recurrence relation formula [though I agree that formula is not only meaningful for n \> 1].

---

<div class="post-metadata">

**Author:** ![Autolycus](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Autolycus](https://boards.straightdope.com/u/Autolycus)\
**Post date:** [April 16, 2012, 2:30am UTC](https://boards.straightdope.com/t/zero-factorial-mystery/7908/36 "2012-04-16T02:30:19Z")

</div>

Damn, math zombie, you scary!

[Previous page](https://boards.straightdope.com/t/zero-factorial-mystery/7908.md?page=1)
