SmirnovWordCount
The words with each letter used this many times and no letter twice in a row: the Carlitz-Scoville-Vaughan sum over the numbers of runs of each letter, taken as a binomial convolution over the parts.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001097via IntegerPartition✓SmirnovWordCount(partition)The words with each letter used this many times and no letter twice in a row: the Carlitz-Scoville-Vaughan sum over the numbers of runs of each letter, as a binomial convolution of the parts' signed compositions counts.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer_partition) -> number | combinatorics | always |
Details
- Defined over
IntegerPartitionas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
IntegerPartitionand 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. - FindStat's St001097 reads it as a coefficient of the formal group law for linear orders; its description gives the Smirnov words.
Definition
Epsil, as the implementation runs it.
on IntegerPartition, over _x
1 if Length(_x) < 1 else Max(Sum(Fold(Function(Map(
Function(Sum(Map(Function((0 if j - 1 >
i - 1 else (1 if i - 1 ==
0 else Product(Range(1, i - 1))) /
((1 if j - 1 ==
0 else Product(Range(1, j - 1))) *
(1 if i - 1 -
(j - 1) ==
0 else Product(Range(1, i - 1 -
(j - 1)))))) *
a[i - j +
1] *
(0 if j == 1 ||
j - 1 >
b else (-1) ^
(b -
(j - 1)) *
(0 if j - 2 >
b - 1 else (1 if b - 1 ==
0 else Product(Range(1, b - 1))) /
((1 if j - 2 ==
0 else Product(Range(1, j - 2))) *
(1 if b - 1 -
(j - 2) ==
0 else Product(Range(1, b - 1 -
(j - 2))))))), j), Range(1, i))), i),
Range(1, Sum(_x) + 1),
), a, b), Map(
Function(
1 if i ==
1 else 0,
i,
),
Range(
1,
Sum(_x) +
1,
),
), _x)), 0)Examples
Properties #
About
| Examples | 5 |
|---|---|
| Crosswalk | FindStat |