But I'm going to stick with my answer.Why does 0 factorial equal 1?

  • Context: High School 
  • Thread starter Thread starter Math Is Hard
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
16 replies · 4K views
Messages
4,663
Reaction score
36
Why is it that zero factorial is equal to 1?

This came up in class tonight (just sort of as a side-note) and nobody knew.

Thanks,

M.I.H.
 
Mathematics news on Phys.org
It's just a definition, to simplify certain mathematical procedures.
 
3!=6
2!=2
1!=1
let x=0!

note that 3!/2!=3
note that 2!/1!=2
then 1!/0!=1 to keep the same pattern.

therefore, 1!/x=1. if you solve for x, you get x=1.

therefore, 0!=1.
 
THe gamma function isn't analytic at 0, and by pheonixthoth's reasoning the factorial of all negative numbers is 1, and that doesn't hold. (It would in particular create issues with Pascal's triangle etc).

Think of it this way, if you have 0 objects, there is exactly 1 way to arrange them - the empty ordering.
 
Aha! I never said anything about it! Doesn't count in my mistakes today!

And wouldn't you have to evaluate the Gamma Function at 1 in order to find 0! ?

cookiemonster
 
"by pheonixthoth's reasoning the factorial of all negative numbers is 1, and that doesn't hold. "

I don't see that. pheonixthoth's "reasoning" is that 4!/3!= 4,
3!/2!= 3, 2!/1!= 2 (and in general (n+1)!/n!= n+1 for n any positive integer) so we should have 1!/0!= 1 and therefore 0!= 1!= 1. Extending that one more time, we would have 0!/(-1)!= 0 or 1= 0(-1)! which tells us that (-1)! does not exist.
 
If 0! =1 we can say
nCr = n!/((n-r)!*r!)

if 0! was something else we would have to say
nCr = n!/((n-r)!*r!)
except for nCn = nC0=1.

I know what I would rather say.


Also can't you use the rule that
[tex]n! = \Gamma(n+1)[/tex]

to get
[tex]0! = \Gamma(1)=1[/tex]

As far as I can tell [tex]\Gamma(x)[/tex] goes straight to hell
at x= 0 but [tex]\Gamma(1) =1[/tex] since
[tex]\int_0^{\infty} e^{-t} dt = 1[/tex]
 
Last edited:
That link just reiterates what Phoenixthoth (and others) said (and what I misunderstood) and contains some frankly dubious claims: to say that because the gamma function has poles at negative integers, factorials do not exist for negative integers is slightly misleading. The square root is defined (naively) only for positive numbers, that doesn't stop us saying i = sqrt(-1). You'd need to show there was no analytic function that agreed with the gamma function on the integers, and always had poles at the negative integers. Remember this is just a generalization - another function wouldn't satisfy all of the functional equations the gamma function does. If you can 'define' "i!" why can't you 'define' "-1!"?
 
Last edited:
If we define n! as the product of all numbers from 1 to n, then n! is only defined for integral values of n such that n > 0. We observe that for all n > 0 we have:
(n+1)! = n! (n+1)

If we are to extend the definition of factorial to include 0!, we would like the above to apply. Substituting we have:
1! = 0! (0+1) = 0!
This allows us to (re)define factorial thus:

0! = 1
n! = (n-1)! n for n>0
 
ooh! this was a topic in one of my math classes... i thought simply it was because of the formulas for log's... w/ 0, it would result in a divide by zero, thus they just threw an exception for log(0) to = 1..., anyone?
 
Actually log(0) is undefined, Hessam...