--- from: http://rosettacode.org/wiki/Ordered_partitions note: Discrete math