On this page
Sort the permutations of 1 to n by how many descents they have and you get a symmetric triangle named after Euler. Here it is built by hand, then used for sums of powers and for an infinite series of fractions that adds up to a whole number.
What is a descent in a permutation?
Write a permutation as a list, such as 35247816. A descent is a pair of neighbours where the first number is larger than the second. The NIST Digital Library of Mathematical Functions, §26.14 uses this example and finds two descents, 52 and 81.
The Eulerian number A(n, k) is the number of permutations of 1, 2, ..., n with exactly k descents, as defined in DLMF §26.14.
Try n = 3. The six permutations are 123, 132, 213, 231, 312 and 321.
0 descents: 123, so A(3, 0) = 1.
1 descent: 132, 213, 231 and 312, so A(3, 1) = 4.
2 descents: 321, so A(3, 2) = 1.
Wikipedia's Eulerian number page counts ascents instead, but by symmetry the numbers are the same. It notes that Leonhard Euler investigated them and their polynomials in his 1755 book Institutiones calculi differentialis.
What does the Eulerian triangle look like up to n = 5?
These rows come from DLMF Table 26.14.1, with k running from 0 to n − 1:
n = 1: 1
n = 2: 1, 1
n = 3: 1, 4, 1
n = 4: 1, 11, 11, 1
n = 5: 1, 26, 66, 26, 1
Each row is symmetric, because reading a permutation backwards turns every descent into an ascent, so k descents become n − 1 − k. And each row adds up to n!, as OEIS A008292 records: 1 + 26 + 66 + 26 + 1 = 120 = 5!. A row just sorts all n! permutations into piles.
How do you build the next row from the last?
You do not need to list 120 permutations to get row 5. Wikipedia, citing Comtet, gives the recurrence:
A(n, k) = (n − k) · A(n − 1, k − 1) + (k + 1) · A(n − 1, k)
Why it works: take a permutation of 1 to n − 1 with j descents and insert n into one of its n gaps. Putting n at the end, or inside a descent, keeps j descents; there are j + 1 such gaps. Putting n at the front, or inside an ascent, adds one; there are n − 1 − j such gaps. Set j = k for the first case and j = k − 1 for the second.
Row 4 (1, 11, 11, 1) to row 5:
A(5, 1) = 4 · 1 + 2 · 11 = 26
A(5, 2) = 3 · 11 + 3 · 11 = 66
A(5, 3) = 2 · 11 + 4 · 1 = 26
A(5, 0) = A(5, 4) = 1, since only 12345 has no descent and only 54321 has four.
If this kind of counting is new, revise the permutations and combinations formulas for Class 11 first.
What is Worpitzky's identity?
Worpitzky's identity writes a power using Eulerian numbers and binomial coefficients: xⁿ = Σ A(n, k) · C(x + k, n), with k from 0 to n − 1, as given on Wikipedia and in OEIS A008292. It is named after Julius Worpitzky, whose paper appeared in 1883; Wikipedia notes that Li Shanlan found it earlier, in an 1867 work.
Check n = 3 and x = 3 with the row 1, 4, 1:
1 · C(3, 3) + 4 · C(4, 3) + 1 · C(5, 3) = 1 + 16 + 10 = 27 = 3³
Wikipedia also derives a formula for sums of powers: 1ⁿ + 2ⁿ + ... + mⁿ = Σ A(n, k) · C(m + k + 1, n + 1). So the sum of cubes comes from one row of the triangle.
Why does the sum of kⁿ/2^k come out to a whole number?
Add k⁵/2^k for k = 1, 2, 3 and on forever: 1/2 + 32/4 + 243/8 + ... Most terms are fractions, yet the total is exactly 1082. OEIS A000629 lists a(n) = Σ kⁿ/2^k as 1, 2, 6, 26, 150, 1082, ... and gives a(n) = Σ A(n, k) · 2^(k+1) (OEIS counts k from 1 and writes 2^k).
For n = 5: 1 · 2 + 26 · 4 + 66 · 8 + 26 · 16 + 1 · 32 = 1082.
The reason is the Eulerian polynomial, whose coefficients are one row of the triangle. The same OEIS entry gives a(n) = 2ⁿ times that polynomial at x = 1/2. Each term A(n, k)(1/2)ᵏ is multiplied by 2ⁿ, and since k is at most n − 1 every denominator cancels, so the answer is an integer.
How should you practise Eulerian numbers?
List the 24 permutations of 1234, sort them by descents and confirm 1, 11, 11, 1.
Use the recurrence to get row 6 from row 5. Check it against DLMF's 1, 57, 302, 302, 57, 1 and the row sum 720 = 6!.
Verify Worpitzky's identity for n = 4 and x = 2. You should get 16.
Compare with Stirling numbers of the second kind, whose recurrence has a similar shape.
For the ideas behind each step, the Fermi Concept Library has a lesson for every concept in mathematics. If your recurrence gives the wrong row and you cannot see why, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



