Function to enumerate all possible partitions for a given n
find_all_partitions(n)
n
matrix where each line corresponds to a possible partition
n <- 6 all_partitions <- find_all_partitions(n)
Useful links