combinat
eulerian1
first order Eulerian numbers
Calling Sequence
Parameters
Description
Examples
References
eulerian1(n, k)
n, k
-
non-negative integers
The eulerian1(n, k) command counts the number of permutations of pi1pi2...pin of 1,2,...,n that have k ascents, namely, k places where pij<pij+1.
This function can be computed via the recurrence
eulerian1n,k=k+1eulerian1n−1,k+n−keulerian1n−1,k−1
It also satisfies the following identities:
xn=∑k=0neulerian1n,kx+kn
m!Stirling2n,m=∑k=0neulerian1n,kkn−m
eulerian1n,k = ∑m=0k−1mn+1mk+1−mn = ∑m=0n−1n−m−km!n−mkStirling2n,m
withcombinat:
Matrixseqseqeulerian1n,k,k=0..5,n=0..5
10000010000011000014100011111100126662610
R.L. Graham, D.E. Knuth, O. Patashnik, "Concrete Mathematics", Addison-Wesley, Reading, Mass., 1989.
See Also
binomial
combinat[eulerian2]
euler
Stirling2
Download Help Document