from Peter Imburg at elfster: His friend figures the algorithm for determining gifts given of a type (for example total number of Turtle Doves given) in the song Twelves Days of Christmas (in two minutes).  Here is the initial thinking as represented by scratch on the Dessert Menu at Mua.  Can you crack it? Answer here