Combinatorics.jl
Combinatorics.jl copied to clipboard
`integer_partitions(0)` should return `[[]]` instead of `[]`
By convention, there is a single partition of 0: the empty partition. However, integer_partitions(0) returns []. It should instead return [[]] so that length(integer_partitions(0)) == 1 in accordance with https://oeis.org/A000041 .