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 pi1⁢pi2⁢...⁢pin of 1,2,...,n that have k ascents, namely, k places where pij<pij+1.
This function can be computed via the recurrence
eulerian1⁡n,k=k+1⁢eulerian1⁡n−1,k+n−k⁢eulerian1⁡n−1,k−1
It also satisfies the following identities:
xn=∑k=0n⁡eulerian1⁡n,k⁢x+kn
m!⁢Stirling2⁡n,m=∑k=0n⁡eulerian1⁡n,k⁢kn−m
eulerian1⁡n,k = ∑m=0k⁡−1m⁢n+1m⁢k+1−mn = ∑m=0n⁡−1n−m−k⁢m!⁢n−mk⁢Stirling2⁡n,m
with⁡combinat:
Matrix⁡seq⁡seq⁡eulerian1⁡n,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