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?
- A. 68
- B. 74
- C. 56
- 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.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- How many positive integer solutions does x + y + z = 15 have if each of x, y, z is at most 10?
- In how many ways can 10 identical candies be distributed among 4 children so that each child gets at least 1 and at most 4 candies?
- In how many ways can 20 identical chocolates be distributed among 5 children so that each child gets at least 2 and at most 6 chocolates?
- In how many ways can 3 numbers be selected from 1 to 20 so that no two of them are consecutive?
- In how many ways can 16 identical balls be placed into 4 distinct boxes so that each box contains an odd number of balls?
- In how many ways can 10 be written as an ordered sum of 3 positive integers?