- There are
Numguys - The sum of their ages is
Tot - The
Ageof every one of them isMin <= Age <= Max
I want to create a formula for a program to calculate the total number of possibilities
Any ideas/links that point me to the right direction are appreciated
Tot - Num*Minwith at mostNumsummands and no summand greater thanMax - Min. Formulas for this kind of thing can be pretty hard to program, but setting up a loop to run through all of the possibilities and count them is pretty straightforward. See Henry Bottomley's online partition calculators for some ideas. – hardmath Apr 23 '12 at 18:22