The permutations of the
multiset \{1, 1, 2, 2, \ldots, n, n\} which have the property that for each
k, all the numbers appearing between the two occurrences of
k in the permutation are greater than
k are counted by the
double factorial number (2n-1)!!. These are called
Stirling permutations. The Eulerian number of the second order, denoted \left\langle \! \left\langle {n \atop m} \right\rangle \! \right\rangle , counts the number of all such Stirling permutations that have exactly
m ascents. For instance, for
n = 3 there are 15 such permutations, 1 with no ascents, 8 with a single ascent, and 6 with two ascents: : 332211, : 221133, 221331, 223311, 233211, 113322, 133221, 331122, 331221, : 112233, 122133, 112332, 123321, 133122, 122331. The Eulerian numbers of the second order satisfy the recurrence relation, that follows directly from the above definition: : \left\langle \!\! \left\langle {n \atop k} \right\rangle \!\! \right\rangle = (2n-k-1) \left\langle \!\! \left\langle {n-1 \atop k-1} \right\rangle \!\! \right\rangle + (k+1) \left\langle \!\! \left\langle {n-1 \atop k} \right\rangle \!\! \right\rangle, with
initial condition for
n = 0, expressed in
Iverson bracket notation: : \left\langle \!\! \left\langle {0 \atop k} \right\rangle \!\! \right\rangle = [k=0]. Correspondingly, the Eulerian polynomial of second order, here denoted
Pn (no standard notation exists for them) are :P_n(x) := \sum_{k=0}^n \left\langle \!\! \left\langle {n \atop k} \right\rangle \!\! \right\rangle x^k and the above recurrence relations are translated into a recurrence relation for the sequence
Pn(
x): : P_{n+1}(x) = (2nx+1) P_n(x) - x(x-1) P_n^\prime(x) with initial condition P_0(x) = 1 . The latter recurrence may be written in a somewhat more compact form by means of an
integrating factor: : (x-1)^{-2n-2} P_{n+1}(x) = \left( x\,(1-x)^{-2n-1} P_n(x) \right)^\prime so that the
rational function : u_n(x) := (x-1)^{-2n} P_{n}(x) satisfies a simple autonomous recurrence: : u_{n+1} = \left( \frac{x}{1-x} u_n \right)^\prime, \quad u_0=1 Whence one obtains the Eulerian polynomials of second order as P_n(x) = (1-x)^{2n} u_n(x), and the Eulerian numbers of second order as their coefficients. The Eulerian polynomials of the second order satisfy an identity analogous to the identity :\sum_{i=1}^\infty i^n x^i = \frac{xA_n(x)}{(1-x)^{n+1}} satisfied by the usual Eulerian polynomials. Specifically, as proved by Gessel and Stanley, they satisfy the identity :\sum_{m=0}^{\infty}\left\{ {n+m \atop m} \right\}x^m = \frac{xP_n(x)}{(1-x)^{2n+1}} where again the \left\{ {n \atop k} \right\} denote the
Stirling numbers of the second kind. (This appearance of the Stirling numbers explains the terminology "
Stirling permutations.") The following table displays the first few second-order Eulerian numbers: : The sum of the
n-th row, which is also the value P_n(1), is (2n-1)!!. Indexing the second-order Eulerian numbers comes in three flavors: • following Riordan and Comtet, • following Graham, Knuth, and Patashnik, • , extending the definition of Gessel and Stanley. ==References==