Eulerian
The Eulerian number , the number of permutations of with exactly descents (equally, ascents).
Eulerian(n, k)the number of permutations of with exactly descentsCombinatorica
Eulerian[n, k]SageMathenumeratio_eulerian(n, k)Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer) -> integer | compute-engine | always |
Details
- Counts from : is the identity, and for (except ). Combinatorica's
Eulerian[n, k]has the same convention; the Function Repository'sResourceFunction["EulerianNumber"][n, k]counts from , so it equalsEulerian(n, k - 1). Wolfram 15 has no coreEulerian. - Satisfies and the symmetry , which is why descents and ascents agree.
- Equals , and the number of permutations with ; compute-engine's native, exact in bigints.
- A negative argument is left unevaluated (as is MahonianNumber); Combinatorica answers for a negative .
Plot
Examples
2 more kept as data, checked against the oraclesAbout
| Examples | 8 |
|---|---|
| Checked against | Combinatorica 7 agreeSageMath 5 agree |
| Crosswalk | WikipediaMathWorldOEISCombinatoricaSageMath |
Implementation
mapped
combinatoricapackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.ts See also: Descents, Ascents, KDescentPermutations, MahonianNumber