Linear Permutations, Factorials, and Restricted Arrangements
In Sections 01 and 02, we counted ordered arrangements directly using the Multiplication Principle. We now formalize the concept of a linear permutation, introduce factorial, falling factorial, and rising factorial notations, develop three core strategies for constrained arrangements, and learn how to find the dictionary (lexicographical) rank of a word with distinct letters.
Permutations of Distinct Objects and Factorial Notation§
Look back at three counting results we already obtained in Sections 01 and 02 using the Multiplication Principle:
- Choosing a captain and a monitor from students: .
- Forming a -digit number from without repetition: .
- Forming a -letter password with no repeated letters from letters: .
Every one of these problems shares the exact same underlying structure: we have distinct objects and distinct positions in a row (), and we arrange of those objects into the positions without repetition.
Such an ordered arrangement is called an -permutation of distinct objects, and the total number of such arrangements is denoted by (or ).
To derive a single general formula for , fill the distinct positions one by one from left to right. Because repetition is not allowed, each filled position reduces the pool of remaining objects by , while keeping the count of remaining choices independent of which particular objects were placed earlier:
- The -st position can be filled in ways.
- The -nd position can be filled in ways.
- The -rd position can be filled in ways.
- Following this pattern, the -th position can be filled in ways, so the -th (last) position can be filled in ways.
By the Multiplication Principle:

Factorial Notation§
For any natural number , the product of all natural numbers from to is called the factorial of , denoted :
Multiplying and dividing our expression for by compresses it into a compact fraction:
Let us test this formula on boundary values of :
- For : . This makes immediate sense—there are ways to place one of objects into a single spot.
- For : .
- For : . Though unusual at first glance, this says there is exactly one way to arrange objects in zero places—namely, do nothing (the empty arrangement).
Why Zero Factorial Equals One§
Now test in our formula:
Here we hit a snag: our original definition of applies only to natural numbers , and is not a natural number! Does that mean is meaningless? Not at all. Physically, simply means arranging distinct objects in distinct places: choices for the first place, for the second, ..., down to choice for the last place. Directly from the Multiplication Principle:
For the general formula to hold seamlessly at , we require . Therefore, by mathematical definition:
When all distinct objects are arranged in distinct places, we simply call it a permutation of distinct objects, and its count is .
Example 1 (Students and Chairs — Including ): Find the number of ways students can be seated on: (a) chairs, (b) chairs, (c) chairs, (d) chairs.
Solution:
(a) chairs: Both students and chairs are distinct, and :
(In every arrangement, students remain standing.)
(b) chairs: .
(c) chairs: .
Pause and ask: Why are the answers to parts (b) and (c) identical? When students sit on chairs, exactly student is always left standing—you can imagine that standing student as occupying an "invisible" -th chair! In general:
(d) chairs: Now there are more chairs than students. Can we write ? No—the factorial of a negative integer is undefined! Yet seating students on chairs is obviously possible; chairs simply stay empty.
Think from the students' perspective instead of the chairs' perspective: the first student can sit on any of the chairs ( ways); independently, the second student has remaining chairs; the third has ; ..., and the tenth student has choices:
Symmetric Insight:
Seating students on chairs gives ways (with students standing). Seating students on chairs also gives ways (with chairs empty). Always put the larger pool of distinct items in the superscript of !
Falling Factorials and Rising Factorials§
In the product , each factor drops by from the previous factor. For this reason, is also called the falling factorial, denoted .
There is a natural dual concept where each successive factor increases by : the rising factorial, denoted . Let us discover it through two concrete problems.
Example 2 (Rings on Fingers): Find the number of ways distinct rings can be worn on distinct fingers (assuming a finger can hold any number of rings, and the vertical order of rings on a finger matters).
Solution: Place the rings one by one:
- Ring : Can go on any of the fingers ( ways).
- Ring : Surprisingly, Ring has ways—not ! Why? It can go on any of the empty fingers, or above Ring on its finger, or below Ring on its finger ( positions).

- Ring : Notice that placing Ring eliminated empty slot and created new slots (above and below Ring ), increasing the total number of available slots by —so Ring has ways!
- Continuing inductively, Ring has ways.
By the Multiplication Principle, the total number of ways is:
Example 3 (Queues at Bank Cash Counters): A bank has distinct cash counters, each able to form a queue. In how many ways can distinct people arrange themselves in queues at these counters?
Solution: Person has counters to choose from ( ways). Person can pick any of the empty counters, or stand in front of or behind Person ( ways). Person has positions, and so on until the -th person has positions:
Summary of Falling and Rising Factorial Notation§
Three Core Strategies for Restricted Permutations§
When linear permutations come with extra conditions—objects that must stay together, objects that must stay apart, or objects with positional preferences—three foundational strategies handle them cleanly. (Once we introduce combinations in Section 04, we will add a fourth strategy, Select-and-Arrange, for drawing objects from multiple pools before arranging them.)
1. Tie-and-Arrange (Bundle Method)§
When to use: particular objects out of distinct objects must always appear together as a contiguous block.
Tie the objects together into a single indivisible bundle. Together with the remaining free objects, we now have units to arrange, which can be done in ways. For each arrangement of the units, the distinct objects inside the bundle can be permuted among themselves in ways.

By the Multiplication Principle:
Example 4: In how many ways can distinct mathematics books and distinct physics books be arranged on a shelf so that (a) all physics books stay together, (b) not all physics books stay together?
Solution:
(a) All physics books together: Bundle the physics books into unit. We arrange units in ways, and permute the physics books inside the bundle in ways:
(b) Not all physics books together: By the Subtraction Principle, subtract part (a) from all unrestricted arrangements:
2. The Gap Method (No Two Adjacent)§
When to use: No two objects from a restricted group of size may stand next to each other.
First arrange the unrestricted objects in a row in ways. Observe that these objects create exactly gaps— interior gaps between consecutive objects, plus outer positions at the very front and very end of the row:

Now place the restricted objects () into of these distinct gaps in ways. Because at least one unrestricted object sits between any two distinct gaps, no two restricted objects can ever be adjacent. By the Multiplication Principle:
Example 5: In how many ways can boys and girls stand in a queue so that no two girls are next to each other?
Solution: Arrange the boys in ways, creating interior gaps plus end positions gaps. Place the distinct girls into these gaps in ways:
Critical Warning — "Not All Together" vs. "No Two Together":
For restricted objects, "not all together" (Example 4b, solved by subtracting the bundle from the total) is completely different from "no two together" (Example 5, solved by the Gap Method). Subtracting "all girls together" still leaves arrangements where , , or girls stand side by side!
3. Positional Preferences (Fulfill Preferences First)§
When to use: Specific objects restrict themselves to specific subsets of positions. Just as in Section 01, fulfill the preferences first so the remaining counts stay independent!
Example 6: A classroom has a front row and a back row, each containing distinct chairs. Eight students enter: particular students insist on sitting in the front row, particular students are shy and prefer the back row, and the remaining students have no preference. In how many ways can they sit?
Solution: Fulfill the strict preferences before seating the unrestricted students:
- Seat the front-row students on the front-row chairs: ways.
- Seat the back-row students on the back-row chairs: ways (completely independent of Step 1).
- Seat the remaining unrestricted students on the remaining chairs: ways.
By the Multiplication Principle:
(Notice: if you had tried to seat the unrestricted students first, the number of chairs left in the front and back rows would depend on where they sat, destroying independence!)
Lexicographical (Dictionary) Rank of a Word§
If all distinct permutations of the letters of a word are listed in alphabetical order (exactly as in a dictionary), the position of a given word in that list is called its dictionary rank.
Computing Dictionary Rank for Distinct Letters§
To find the rank of an -letter word with all letters distinct, count how many words come strictly before it by locking letters one by one from left to right:
- Write the letters in alphabetical order.
- At position (), count how many unused letters appear strictly before the -th letter of the target word in the alphabet. Placing any one of those smaller letters at position allows the remaining letters to permute freely in ways—every such word precedes our target word!
- Sum these counts over all positions , and add for the target word itself.
Example 7: Find the dictionary rank of the word MOTHER.
Solution: Sort the distinct letters alphabetically: E, H, M, O, R, T.
- Position 1 (
M): Unused letters beforeMareE, H( letters) preceding words. LockM. - Position 2 (
O): Unused letters areE, H, O, R, T. Letters beforeOareE, H( letters) . LockO. - Position 3 (
T): Unused letters areE, H, R, T. Letters beforeTareE, H, R( letters) . LockT. - Position 4 (
H): Unused letters areE, H, R. Letter beforeHisE( letter) . LockH. - Position 5 (
E): Unused letters areE, R. Letters beforeE: . LockE. - Position 6 (
R): .
Adding for MOTHER itself:
Example 8: Find the dictionary rank of the word RANDOM.
Solution: Sort the distinct letters alphabetically: A, D, M, N, O, R.
- Position 1 (
R): Letters beforeRareA, D, M, N, O() . LockR. - Position 2 (
A): RemainingA, D, M, N, O. Letters beforeA: . LockA. - Position 3 (
N): RemainingD, M, N, O. Letters beforeNareD, M() . LockN. - Position 4 (
D): RemainingD, M, O. Letters beforeD: . LockD. - Position 5 (
O): RemainingM, O. Letter beforeOisM() . LockO. - Position 6 (
M): .
Adding for RANDOM itself:
(In Section 06, once we derive permutations of multisets, we will extend this exact algorithm to words containing repeated letters.)
Summary Table§
| Concept / Strategy | Formula | When to Apply |
|---|---|---|
| -Permutation (Falling Factorial) | Arranging of distinct objects in distinct slots without repetition () | |
| Rising Factorial | Ordered placements where each placed object creates new slot | |
| Tie-and-Arrange ( together) | specific objects must form one contiguous block | |
| Gap Method (No two together) | restricted objects separated by unrestricted objects () | |
| Positional Preferences | Satisfy strictest preferences first | Keeps subsequent counts independent |
| Dictionary Rank (distinct letters) | Prefix-by-prefix counting in alphabetical order |
Mark this section complete when you have worked through its proofs.