Placement AptitudeVery hardCognizant · Capgemini pattern

How many non-negative integer solutions does x + y + z + w = 10 have if each variable is at most 4?

  1. A. 68
  2. B. 74
  3. C. 56
  4. D. 80

Correct answer: A. 68

Unrestricted: C(13,3)=286. One variable >=5: 4xC(8,3)=4x56=224. Two variables >=5 together (forced to exactly 5 each): C(4,2)x1=6. By inclusion-exclusion: 286-224+6=68.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic