On this page
Some counting problems sit between two you already know. Arranging n people in one queue gives n! ways. Splitting them into groups where order inside a group does not matter gives the Stirling numbers of the second kind. Lah numbers count the case in between: several queues. If n! and C(n, r) feel rusty, revise them with our permutations and combinations formulas for Class 11.
What are Lah numbers?
The unsigned Lah number L(n, k) counts the ways to partition a set of n labelled items into k non-empty, linearly ordered subsets, according to Wikipedia's article on Lah numbers. MathWorld gives the same definition: the order inside each block matters, but the collection of blocks is unordered.
Picture n students and k canteen queues. Every queue has at least one person and the order inside it matters, but the queues are not numbered, so swapping two whole queues gives nothing new.
The numbers are named after Ivo Lah, who described them in a 1954 paper on their use in actuarial mathematics (Wikipedia).
What is the formula for Lah numbers?
For 1 ≤ k ≤ n, L(n, k) = C(n−1, k−1)·n!/k!, as given by both Wikipedia and MathWorld. You can rebuild it in three steps:
Line up all n items in a row: n! ways.
Cut the row into k non-empty pieces by choosing k−1 of the n−1 gaps: C(n−1, k−1) ways. Each piece is an ordered list.
The lists are not numbered, so each arrangement has been produced k! times, once for each order its lists could take along the row. Divide by k!.
Worked example: all 13 arrangements for n = 3
Take the items 1, 2 and 3. Brackets show one list, read left to right.
k = 1, L(3, 1) = 6: (1 2 3), (1 3 2), (2 1 3), (2 3 1), (3 1 2), (3 2 1), the 3! orders.
k = 2, L(3, 2) = 6: (1 2)(3), (2 1)(3), (1 3)(2), (3 1)(2), (2 3)(1), (3 2)(1). Choose who stands alone (3 ways), then order the pair (2 ways).
k = 3, L(3, 3) = 1: (1)(2)(3).
The formula agrees: C(2, 1)·3!/2! = 6 for k = 2. The total, 13, matches OEIS A000262, which counts partitions of {1, …, n} into any number of ordered lists.
Ignore the order inside each group and the six k = 2 cases collapse to three: {1, 2}{3}, {1, 3}{2} and {2, 3}{1}. That count is the subject of our post on Stirling numbers of the second kind.
Lah numbers table up to n = 5
These rows match OEIS A105278 and Wikipedia. Each row lists k = 1 to n, then the total.
n = 1: 1 (total 1)
n = 2: 2, 1 (total 3)
n = 3: 6, 6, 1 (total 13)
n = 4: 24, 36, 12, 1 (total 73)
n = 5: 120, 240, 120, 20, 1 (total 501)
To build the next row, use the recurrence L(n+1, k) = (n + k)·L(n, k) + L(n, k−1) from Wikipedia. The new item either joins an arrangement of n items in k lists, standing in front of any of the n items or at the end of any of the k lists (n + k places), or starts a list of its own. Check: L(4, 2) = 5·6 + 6 = 36.
How do Lah numbers convert rising and falling factorials?
Write the rising factorial as x(x+1)…(x+n−1) and the falling factorial as x(x−1)…(x−n+1). Wikipedia gives both directions: a rising factorial is the sum over k of L(n, k) times falling factorials, and a falling factorial is the sum over k of (−1)^(n−k)·L(n, k) times rising factorials.
For n = 3, read 6, 6, 1 off the table: x(x+1)(x+2) = 6x + 6x(x−1) + x(x−1)(x−2). At x = 5 the left side is 5·6·7 = 210 and the right is 30 + 120 + 60 = 210. Going back, x(x−1)(x−2) = 6x − 6x(x+1) + x(x+1)(x+2); at x = 5 that is 30 − 180 + 210 = 60, or 5·4·3.
How should you practise Lah numbers?
Rebuild the formula from the line-and-cut argument with your notes closed.
For n = 4, k = 3, list all 12 arrangements: choose the pair, then order it.
Build row 6 with the recurrence and compare it with OEIS A105278: 720, 1800, 1200, 300, 30, 1.
Check one identity at a number, such as n = 4 at x = 4.
If a step does not click, the Fermi Concept Library covers every concept in mathematics with its own lesson and its place in the map, and the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.
Start with step 1: if you can rebuild C(n−1, k−1)·n!/k! from scratch, the rest of the table follows.



