Open rben01 opened 1 year ago
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 .
integer_partitions(0)
[]
[[]]
length(integer_partitions(0)) == 1
By convention, there is a single partition of 0: the empty partition. However,
integer_partitions(0)
returns[]
. It should instead return[[]]
so thatlength(integer_partitions(0)) == 1
in accordance with https://oeis.org/A000041 .