BulgarianSolitairePreimageCount
The partitions of the same size that Bulgarian solitaire (remove the first column, insert it as a row) sends to this one: the distinct part sizes of at least the number of parts less one.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001913via IntegerPartition✓BulgarianSolitairePreimageCount(partition)The partitions of the same size that Bulgarian solitaire (remove the first column, insert it as a row) sends to this one: the distinct part sizes of at least the number of parts less one.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.
Definition
Epsil, as the implementation runs it.
on IntegerPartition, over _x
1 if Length(_x) < 1 else Count(Filter(
Range(1, Length(_x)),
Function((i == Length(_x) || _x[i] > _x[i +
1]) &&
_x[i] >= Length(_x) - 1, i),
))Examples
Properties #
About
| Examples | 5 |
|---|---|
| Crosswalk | FindStat |