Main content

# Zero factorial or 0!

Learn all about factorials! Factorials are a quick way to represent multiplying a number by all the smaller positive integers down to one. This video also shows why mathematicians have defined zero factorial as one, instead of zero, to make the formula for permutations work in all cases.

## Want to join the conversation?

- Is there any proof that 0 factorial equals 1?(41 votes)
- well i am in seventh grade so don't expect a great ans but i found that:

3!=4!/4

so 1!=2!/2 and

0!=1!/1

hope it helps(95 votes)

- Is it possible to have 2 factorial signs -- like 5!! ? Would that be 5! x 5! ?(14 votes)
- That would be something called a "multifactorial", which, for the case of two factorials is called a double factorial. For a number
`n`

, this is defined as:`n!! = n * (n-2) * (n-4) * ....`

Basically, instead of subtracting 1 each time, we subtract 2 (or if we had n!!! we'd subtract 3, and so forth). If we have`k`

factorial signs (and hence subtract`k`

each time), the sequence of multiplication ends when we can't subtract`k`

without getting a negative number.(40 votes)

- Can you give an example where 0! can actually be used? Like for example the chair arrangement? Thanks(4 votes)
- Yes. How many ways can 0 chairs be arranged in a row? Only 1 way – that is to do nothing at all!(42 votes)

- I think its also worth noting there is only one permutation of a set of zero items.

Here's an example:(16 votes) - Guys I have an alternate way....

well we know,

n! = n(n-1)! as per defination of factorial.

so if we substitute n=1,we get,

1!=1(1-1)!

=> 1!=1x(0!)

hence, 0!=1 [as 1!=1]

Please tell me if this method could also be acceptable or not and do share your views...I was playing with formulae and accidentally came up with this...

have a good day(8 votes) - if 0! is 1 and 1! is 1 by obvious logic 1 should be equal to 0. What are the terms and conditions for such a scenario when x! is equal to y!(0 votes)
- If x!=y!, it doesn't follow that x-y. I know that because otherwise 0 would equal 1 and it doesn't.

I would conclude that if x!=y! it follows that x=y unless x or y is 0 or 1.

I have never seen an equation where x! = y! so it doesn't come up much.(3 votes)

- Can we define n! = (n+1)!/(n+1), if we substitute 0 in the above formula we can get 0! = 1.(5 votes)
- Yes

You see (n+1)! = (n+1)x(n)x(n-1) ... , i.e. , (n+1)!= (n+1) x n!

Therefore (n+1)!/ (n+1) = (n+1) x n!/ (n+1) = (n+1) cancels out = n!(5 votes)

- Is this a correct reasoning:

Suppose you have n people and 0 chairs, there is only one combination possible that no one sits. so 0!=1(5 votes) - Cant we do this concepts with rational number ? I ma thinking why cant N go down below zero ?(2 votes)
- The only formulas you have at your disposal at the moment is (n+1)! = (n+1) n! and 1! = 1. Using this with n=0, we would get 1! = (1)(0!) or 0! = 1!/1, so there's nothing too unnatural about declaring from that that 0! = 1 (and the more time you spend learning math, the more it will seem to be the correct choice intuitively). Now let's try the same trick to define (-1)!. Setting n = -1 in our formula above, we get 0! = (0) (-1)! or (-1)! = 0!/0. But now we're in undefined land, because you can't divide by zero, so the factorial function cannot be extended to negative integers.

Can you extend the factorial function to rational numbers (aside from the negative integers)? In theory, yes, but we don't have the tools in precalculus to talk about them. For instance, we could say that 1.5! = (1.5) 0.5!, but since we don't have any good ideas about what either of those factorials should be, we can't define any of them. When you get through calculus, you'll be able to understand a very awesome and weird function called the gamma function that actually accomplishes this task, but that's a conversation for another day. ^_^

https://en.wikipedia.org/wiki/Gamma_function(5 votes)

- What if n was infinity?(2 votes)
- Since infinity is not a number, we cannot plug it into the factorial function. The limit of n! as n approaches infinity does not exist either.(4 votes)

## Video transcript

- If you've been paying
particularly close attention to our use of the factorial
operator in the videos on permutations and
combinations, you may or may not have noticed something
that might be interesting. So let's just review
factorial a little bit. So if I were to say n
factorial, that of course is going to be n times n
minus one times n minus two, and I would just keep going
down until I go to times one. So I would keep decrementing
n until I get to one, and then I would multiply
all those things together. So, for example, and
all of this is review. If I were to say three factorial, that's going to be three
times two times one. If I were to say two factorial, that's going to be two times one. One factorial, by that logic, I just keep decrementing until I get
to one, but I don't even have to decrement here,
I'm already at one. So I just multiply one. Now what about zero factorial,
this is interesting. Zero factorial. So one logical thing is to say, maybe zero factorial is zero. I'm just starting with itself,
it's already below one. Maybe it is zero. Now what we will see is
that this is not the case that mathematics,
mathematicians have decided. This is what's interesting,
the factorial operation, this is something that
humans have invented, that they think is just
an interesting thing, it's a useful notation. So they can define what it does. And mathematicians have
found it far more useful to define zero factorial
as something else. To define zero factorial as... And there's a little
bit of a drumroll here. They believe zero factorial should be one. And I know, based on the reasoning, the conceptual reasoning of this, this doesn't make any sense. But since we've already
been exposed a little bit to permutations, I'll show you
why this is a useful concept, especially in the world of
permutations and combinations. Which is, frankly, where
factorial shows up the most. Most of the cases that
I've ever seen factorial in anything has been in the situations of permutations and combinations. And in a few other things, but mainly permutations and combinations. So let's review a little bit. We've said that if we
have n things and we want to figure out the number
of ways to permute them into k spaces, it's
going to be n factorial over n minus k factorial. Now we've also said
that if we had n things that we want to permute into n places, well this really should
just be n factorial. Let's just do this. This is the first place,
this is the second place, this is the third place. All the way, you get to the nth place. There would be n possibilities for who's in the first position, or which object is in the first position. And then for each of those possibilities, there would be n minus one possibilities for which object you choose
to put in the second position, because you've already put
one into that position. Now for each of these n times
n minus one possibilities, where you've placed two
things, there would be n minus two possibilities of what goes in the third position,
and then you would just go all the way down to one. And this thing right over here is exactly what we wrote over here. This is equal to n factorial. But if we directly applied this formula, this would need to be n factorial over n minus n factorial. Then you might see why
this is interesting. Because this is going to be n
factorial over zero factorial. So in order for this formula to apply, even in the case where k is equal to n, which is this one right over here, and for that to be consistent
with just plain old logic, zero factorial needs to be equal to one. And so the mathematics
community has decided, this thing we've constructed
called factorial, we said you put an exclamation
mark behind something, in all of our heads, we say you kind of count down that number all the way to one and you keep multiplying them for zero, we're just going to define this. We're just going to define, make a mathematical definition. We're just going to say zero
factorial is equal to one. And it's actually quite useful.