Question about permutations when n = k

  • Context: Undergrad 
  • Thread starter Thread starter CuriousBanker
  • Start date Start date
  • Tags Tags
    Permutations
Click For Summary

Discussion Overview

The discussion revolves around the concept of permutations, specifically addressing the case when n equals k. Participants explore the implications of the formula for permutations, n!/(n-k)!, when both values are equal, and the definition of 0! in this context.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant questions the validity of the formula n!/(n-k)! when n equals k, suggesting it leads to an undefined expression.
  • Another participant clarifies that (n-k)! becomes 0! which is defined as 1, thus resolving the initial confusion.
  • Several participants discuss the reasoning behind the definition of 0! = 1, with some expressing uncertainty about its intuitive sense.
  • Some participants provide recursive definitions of factorials to illustrate how 0! is derived and its implications for calculating other factorials.
  • There is a discussion on the concept of arranging 0 objects, with participants agreeing that there is one way to do so, reinforcing the definition of 0!.
  • Questions arise regarding the relationship between different factorials and the potential for infinite loops in their definitions, which some participants attempt to clarify.
  • One participant emphasizes that the formula for factorials is a generalization rather than a strict formula, leading to further exploration of its implications.
  • Another participant introduces the concepts of "empty sum" and "empty product" to provide a broader context for understanding the definitions involved.

Areas of Agreement / Disagreement

Participants generally agree on the definition of 0! = 1 and its implications for permutations, but there remains some uncertainty and debate regarding the intuitive understanding of this definition and its mathematical justification.

Contextual Notes

Some participants express confusion about how the formula for factorials leads to the definition of 0! and its implications, indicating a need for further clarification on the recursive nature of factorials and their definitions.

CuriousBanker
Messages
190
Reaction score
24
So the general formula for permutations as I understand it is n!/(n-k)!

but what if n=k?

so let's say you want to see how many ways you can seat 5 people in 5 chairs.

then the answer would be 5!/(5-5)! which would be undefined...but logically it should be defined

what did I misunderstand here?
 
Physics news on Phys.org
(5-5)! = 0! = 1 (by definition), so the term is well-defined and gives you 5! = 120.
 
The number of ways to seat 5 people in 5 chairs is 5!.
There are 5 choices of a seat for the first person, 4 for the second, 3 for the third...

This follows the convention that ##0! = 1##.
 
Oh, I did not realize that 0! = 1. I'm not really sure how 0! = 1 makes any sense, but yeah, logically I assumed the answer was just 5!, I was just confused by plugging numbers into the actual formula, how to divide by 0!
 
CuriousBanker said:
I'm not really sure how 0! = 1 makes any sense

It's just a definition. You define the factorial recursively by [itex]0! = 1[/itex] and [itex]n! = n (n-1)![/itex] for all natural numbers. With this definition, you can compute all the factorials, for example:
[itex]3! = 3 \cdot 2! = 3 \cdot 2 \cdot 1! = 3 \cdot 2 \cdot 1 \cdot 0! = 3 \cdot 2 \cdot 1 \cdot 1 = 6[/itex]
 
CuriousBanker said:
I'm not really sure how 0! = 1 makes any sense

How many ways are there to arrange 0 objects? There is 1 way.

##3! = \frac{4!}{4} = \frac{24}{4} = 6##

##2! = \frac{3!}{3} = \frac{6}{3} = 2##

##1! = \frac{2!}{2} = \frac{2}{2} = 1##

##0! = \frac{1!}{1} = \frac{1}{1} = 1##
 
Last edited:
MathJakob said:
How many ways are there to arrange 0 objects? There is 1 way.

##3! = \frac{4!}{4} = \frac{24}{4} = 6##

##2! = \frac{3!}{3} = \frac{6}{3} = 2##

##1! = \frac{2!}{2} = \frac{2}{2} = 1##

##0! = \frac{1!}{1} = \frac{1}{1} = 1##

The intuition behind there only being 1 way to arrange 0 objects makes sense...but what about the formula? Why is 4! equal to 5!/4? Also wouldn't that be an infinite loop, like 4!=5!/4=6!/5...etc?
 
CuriousBanker said:
The intuition behind there only being 1 way to arrange 0 objects makes sense...but what about the formula? Why is 4! equal to 5!/4? Also wouldn't that be an infinite loop, like 4!=5!/4=6!/5...etc?

Nope. ##4!=\frac{5!}{5}=\frac{120}{5}=24## This is not a formula it's a generalisation.

The actual formula is:

##n!=n\times(n-1)\times(n-2)\times(n-3)\times...(n-n)!##

##4!=4\times(4-1)\times(4-2)\times(4-3)\times(4-4)! = 24## and remember ##(4-4)! = 1##
 
Last edited:
MathJakob said:
Nope. ##4!=\frac{5!}{5}=\frac{120}{5}=24## This is not a formula it's a generalisation.

The actual formula is:

##n!=n\times(n-1)\times(n-2)\times(n-3)\times...(n-n)!##

##4!=4\times(4-1)\times(4-2)\times(4-3)\times(4-4)! = 24## and remember ##(4-4)! = 1##

Right, it's just that using that actual formula I don't see how 0! = 1, but I see how it makes sense intuitively
 
  • #10
CuriousBanker said:
Right, it's just that using that actual formula I don't see how 0! = 1, but I see how it makes sense intuitively


Remember we have established that there is ##1## way to arrange ##0## objects. So ##0!## really just means ##1## and if that is true then ##0!=1\times(1-1)!=1##
 
  • #11
Got it, so it's just a definition. Makes sense, thanks!
 
  • #12
Yes, just a definition. But somewhat more general than you might expect.

If you add up a list of numbers with no entries, the sum is taken as zero. Zero is the additive identity. This is sometimes called an "empty sum".

If you multiply a list of numbers with no entries, the product is taken as one. One is the multiplicative identity. This can be called an "empty product".

A list that starts at entry number 1 and ends at entry number 0 is empty. That is a convention that is adhered to in programming languages such as Ada.

So the list of all the numbers from 1 on up to 0 is empty. If you multiply all the entries in that list together you get an empty product. An empty product is equal to 1.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 31 ·
2
Replies
31
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K