--- from: http://rosettacode.org/wiki/McNuggets_problem