2-4-partition Algorithm

In number theory and combinatorics, a partition of a positive integer N, also named an integer partition, is a manner of write N as a sum of positive integers. They happen in a number of branches of mathematics and physics, including the survey of symmetric polynomials and of the symmetric group and in group representation theory in general.

2-4-partition source code, pseudocode and analysis