Mathematics (JEE)Hard

How many integer solutions does x + y + z + w = 20 have if x ≥ 1, y ≥ 2, 0 ≤ z ≤ 5 and w ≥ 0?

  1. A. 1771
  2. B. 1140
  3. C. 1120
  4. D. 776

Correct answer: D. 776

Shift x' = x − 1 ≥ 0 and y' = y − 2 ≥ 0 to get x' + y' + z + w = 17 with z ≤ 5. Count without the bound on z: C(20,3) = 1140, then subtract the cases z ≥ 6 (a shift to z' = z − 6 gives sum 11 over 4 variables, C(14,3) = 364). The result is 1140 − 364 = 776 with brute force check.

More Permutations, Combinations and Probability questions

Exams that ask this topic