RobinHankin / partitions

R package for integer partitions
9 stars 5 forks source link

allriffles() bug #30

Closed RobinHankin closed 2 years ago

RobinHankin commented 2 years ago

Function allriffles() gives repeats:

> allriffles(3,3)

[1,] 1 1 3 2 2 1 3 1 2 2 3 3 1 3 2 2 2 2
[2,] 2 3 1 1 3 3 1 3 1 3 1 2 3 1 1 3 1 3
[3,] 3 2 2 3 1 2 2 2 3 1 2 1 2 2 3 1 3 1
> 

Above, see how column "132" appears in the second and sixth column.

There is a general confusion about whether an "r riffle shuffle" can contain fewer than "r" rising sequences