Eulerian Numbers #
This module defines the Eulerian numbers by their standard triangular recurrence
(Section 6.2 of [Concrete Mathematics][knuth1989concrete]), proves their boundary
values, and proves Worpitzky's identity (6.37): for all natural numbers x and n,
x ^ n = ∑ k ∈ Finset.range (n + 1), eulerian n k * (x + k).choose n.
The combinatorial interpretation of $\left\langle{n\atop k}\right\rangle$ — counting the permutations of $\{1,2,\ldots,n\}$ with $k$ ascents — is not formalized here.
References #
- [Concrete Mathematics][knuth1989concrete]
Eulerian number, defined by the recurrence
eulerian (n + 1) k = (k + 1) * eulerian n k + (n + 1 - k) * eulerian n (k - 1)
with boundary values eulerian n 0 = 1 and eulerian 0 k = 0 for k > 0.
Equations
- SpecialNumbers.eulerian n 0 = 1
- SpecialNumbers.eulerian 0 k = 0
- SpecialNumbers.eulerian n_2.succ k = (k + 1) * SpecialNumbers.eulerian n_2 k + (n_2 + 1 - k) * SpecialNumbers.eulerian n_2 (k - 1)
Instances For
The binomial-coefficient recurrence behind the inductive step of Worpitzky's identity:
multiplying (x + k).choose n by x re-expands it in the basis of binomial coefficients
of order n + 1. Valid over ℕ for k ≤ n.
Re-grouping step for Worpitzky's identity: the order-n + 1 Eulerian expansion arises
from the order-n one via the triangular recurrence.
Worpitzky's identity (Concrete Mathematics, identity (6.37)): the power x ^ n
expands in the binomial-coefficient basis with Eulerian-number coefficients,
x ^ n = ∑ k ∈ Finset.range (n + 1), eulerian n k * (x + k).choose n.