NorthStepOrderingCount
The total orderings of the up steps such that the up steps after the k-th down step are never among the first k in the order.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001786via DyckPath✓NorthStepOrderingCount(path)The total orderings of the up steps such that the up steps after the k-th down step are never among the first k in the order.Typed signatures
| Type | Package | Applies |
|---|---|---|
(dyck_path) -> number | combinatorics | always |
Details
- Defined over
DyckPathas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
DyckPathand nothing else — it reads values against their positions, or walks the orbits, so it needs the bijection. Applying it to a bare list is a type error, not a wrong answer. - The coefficient of z_1^a_1 ... z_n^a_n in the product of (z_1 + ... + z_k), by Stanley's product formula: each factor is the height before a down step over the factorial of the up steps since the last one.
Definition
Epsil, as the implementation runs it.
on DyckPath, over _x
1 if Length(_x) < 4 else Apply(
(us: list<integer>) => Product(Map(
Function((us[k] -
(k -
1)) /
Apply(
(t: integer) => 1 if t == 0 else Product(Range(1, t)),
us[1] if k == 1 else us[k] -
us[k - 1],
), k),
Range(
1,
Length(_x) /
2 - 1,
),
)),
Map(
Function(Filter(
Range(1, Length(_x)),
Function(_x[i] == 0, i),
)[k] - k, k),
Range(1, Length(_x) / 2),
),
)Examples
Properties #
About
| Examples | 5 |
|---|---|
| Crosswalk | FindStat |