Combinatorics & Probability · Combinatorics
Permutations with and without Repetition
Explanation
Intuition: The Importance of Order
After learning how to select items using the counting principles, the next question is: in how many ways can we arrange them? In permutations, the guiding rule is that order matters. For example, the safe code 123 is fundamentally different from 321, even though they contain exactly the same digits.
Factorial and Permutations of All Items
Definition: The number of ways to arrange distinct objects in a row is denoted by (read as " factorial").
Intuitive Explanation (via Rule of Product): For the first position, we have choices. After choosing one item, there are choices for the second position, for the third, and so on, until only 1 item is left for the last position.
Edge Cases:
It is defined that and . Mathematically, there is exactly one way to "arrange" an empty set of items – by doing nothing.
Partial Permutations (Without Repetition) -
What if we don't arrange all items, but only choose and arrange out of available items?
Theorem: The number of ways to choose and arrange objects from a set of distinct objects (without replacement) is denoted by or .
Formal Formula:
This formula essentially "cancels out" the arrangements of the items that were not selected by dividing by the factorial of their count (i.e., dividing by ).
Permutations with Indistinguishable Objects (Multiset)
Sometimes not all objects are distinct. If we have two 'A' letters in a word and swap them, the resulting word doesn't change. We must compensate for this "overcounting".
Theorem: The number of ways to arrange objects in a row, where are identical of the first type, are identical of the second type, and so forth (such that ), is:
Circular Permutations (Another Edge Case)
When arranging distinct objects around a circular table (with no defined starting point), arrangements that can be obtained from each other by rotation are considered identical. Since every linear arrangement can be rotated times, we divide the standard result by .
Theorem: The number of circular permutations of distinct objects is:
Visual UI Concept (Idea)
- Permutations without repetition: Display empty "slots" and a pool of draggable items. Dragging an item to a slot reduces the pool (Visualizing Sampling without Replacement). Below each slot, show the number of remaining options.- Permutations with indistinguishable objects: An animation swapping the positions of two objects of the same color/shape (e.g., two letters 'A'), showing that the overall array remains unchanged, to illustrate the need to divide by .
Interactive Visualization
Loading visualization
Worked Examples
Practice
Exercise 1 of 5
1
What is the meaning of the expression for ?
★Quiz
Test your knowledge from this lesson
A mix of questions from the lesson — each attempt varies slightly
Answer at least 4 out of 5 questions correctly to pass (70%)