RobinHankin / partitions

R package for integer partitions
9 stars 5 forks source link

bug in listParts() #7

Closed RobinHankin closed 4 years ago

RobinHankin commented 5 years ago
> listParts(restrictedparts(4,2,inc=FALSE))
[[1]]
[1] (1,2,4)(3)

[[2]]
[1] (1,2,3)(4)

[[3]]
[1] (1,3,4)(2)

[[4]]
[1] (2,3,4)(1)

[[5]]
[1] (1,4)(2,3)

[[6]]
[1] (1,2)(3,4)

[[7]]
[1] (1,3)(2,4)

> listParts(restrictedparts(4,3,inc=FALSE))
[[1]]
[1] (1,4,5,6,9,11,14,16,18,19,23,24)(2,7,10,13,17,21)(3,8,12,15,20,22)

The first one makes sense and is what I'd expect. But the second one is weird, and I don't understand what is happening.