From: Thomas Preymesser Date: 2010-02-25T18:12:33+09:00 Subject: Re: Help on algorithm to calculate combinations --00032555316a91ad610480692db3 Content-Type: text/plain; charset=ISO-8859-1 On 25 February 2010 09:40, Alexander Antonakakis wrote: > Hello all > I would like to find an algorithm to caclulate all options on the > following problem. > Lets suppose we have a room of max capacity of 4 persons. > Which are the combinations of man - child in this room? > 0 children / 0 men 0 children / 1 men 0 children / 2 men 0 children / 3 men 0 children / 4 men 1 children / 0 men 1 children / 1 men 1 children / 2 men 1 children / 3 men 2 children / 0 men 2 children / 1 men 2 children / 2 men 3 children / 0 men 3 children / 1 men 4 children / 0 men -- Thomas Preymesser thopre@gmail.com http://thopre.googlepages.com/ http://thopre.wordpress.com/ --00032555316a91ad610480692db3--