Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

discrete math problem

This topic is 6134 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have a hw problem that i have problem solving. w + x+ y + z = 12 how many nonnegative interger solutions are there? well, using the "r-combinations w/ repitition allowed" rule u get 3 seperators so the answer would be C(12+3,12) -> C(15,12) ok, here''s what i have the problem in: w needs to be 0 <= w <= 4, meaning it can only be 0,1,2,3,or 4 0<=x<=5 0<=y<=8 0<=z<=9 having a hard time with this... please help

Share this post

Link to post
Share on other sites
nm, i got it.

and if any1 cares, this is how i did it.
total poss: C(15,12) = 455
subtract the ones outside each range for each variable
then since the subtracted #''s overlap by 4, u add 4
resulting in 225.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!