Placement AptitudeModerateTCS NQT · Accenture
How many ordered pairs (x, y) of positive integers satisfy x + y ≤ 10?
- A. 55
- B. 45
- C. 36
- D. 100
Correct answer: B. 45
Add a slack s ≥ 0: x + y + s = 10 with x, y ≥ 1 is the same as x' + y' + s = 8 with all ≥ 0: C(10, 2) = 45. (Or 1 + 2 + … + 9 = 45.)
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 solutions in non-negative integers does x + y + z = 10 have with x ≤ y ≤ z?
- A, B and C take turns tossing a fair coin in that order (A, B, C, A, …). The first to toss a head wins. What is the probability that B wins?
- A fair die is thrown 4 times. What is the probability of getting at least one six?
- A fair coin is tossed 3 times and X is the number of heads. What is the expected value of X²?
- Two fair dice are thrown. What is the variance of the sum of the two numbers?
- Two fair dice are thrown and the total is at least 9. What is the probability that at least one die shows a 6?