Lah Number Calculator

C(n-1,k-1) · n!/k!

CalculatorsFreeNo Signup
4.6(271 reviews)
All Tools

Loading tool...

About Lah Number Calculator

A Lah number calculator computing L(n,k) = C(n-1,k-1)·n!/k!. Lah numbers count the number of ways to partition {1,...,n} into k non-empty linearly ordered subsets. They connect rising and falling factorials. L(n,1)=n!, L(n,n)=1. Client-side.

Lah Number Calculator Features

  • L(n,k) value
  • Triangle
  • Factorial link
  • Rising/falling
  • Row sums
Lah numbers L(n,k) = C(n-1,k-1)·n!/k! = n!/(k!)·C(n-1,k-1). They count partitions of [n] into k ordered lists. L(3,2)=6: {(1),(2,3)}, {(1),(3,2)}, {(2),(1,3)}, {(2),(3,1)}, {(3),(1,2)}, {(3),(2,1)}.

How to Use

Enter n and k:

  • L(n,k): Value
  • Triangle: All values
  • Row sum: Fubini connection

Factorial Connection

x^{(n)} = Σ L(n,k)·(x)_k converts rising factorial to falling factorial. L(n,k) is the 'change of basis' matrix between these two polynomial bases. This is why Lah numbers are also called 'transition coefficients'.

Stirling Relation

L(n,k) = Σ_j s(n,j)·S(j,k) where s=Stirling first kind, S=Stirling second kind. Equivalently, the Lah matrix = (unsigned Stirling 1st)×(Stirling 2nd). Beautiful matrix factorization!

Step-by-Step Instructions

  1. 1Enter n, k.
  2. 2Compute L(n,k).
  3. 3View triangle.
  4. 4See factorial link.
  5. 5Check row sum.

Lah Number Calculator — Frequently Asked Questions

How do Lah numbers relate to Stirling numbers?+

Stirling 2nd S(n,k): unordered partitions into k non-empty subsets. Lah L(n,k): ordered partitions into k non-empty lists. Relationship: L(n,k) = S(n,k)·k! would overcount, but the correct formula accounts for internal ordering within each subset.

What are the row sums?+

Σ_k L(n,k) counts all ways to partition [n] into any number of ordered lists. These are the Fubini numbers (ordered Bell numbers). For n=3: L(3,1)+L(3,2)+L(3,3)=6+6+1=13.

Why are they called 'transition coefficients'?+

They convert between rising and falling factorial polynomial bases: x^(n)=Σ L(n,k)(x)_k. In the theory of special functions, this basis change is fundamental. Ivo Lah introduced them in 1954 for this purpose.

Share this tool: