- 3,802
- 95
Homework Statement
This is something I want to know regarding a game series I am a big fan of.
If we are given a certain amount of points that can be distributed among a certain number of different skills, with the added restriction that each skill has a maximum number of points that can be put into it which is less than the total points we are given, then find the possible combinations.
Homework Equations
[tex]P(n,r)=\frac{n!}{(n-r)!}[/tex]
[tex]C(n,r)=\frac{n!}{r!(n-r)!}[/tex]
The Attempt at a Solution
I was able to find that if we ignore the maximum limit for each skill, then if
S = number of skills
P = number of points
The number of combinations C, should be equal to
[tex]C=\frac{(S+P-1)!}{P!(S-1)!} = C(S+P-1,P)[/tex]
Now to add the limit in each skill to the mix, I'm not feeling comfortable about. Any ideas/hints?