Placement AptitudeHardCAT · TCS NQT Advanced
In how many ways can 10 be written as an ordered sum of 3 positive integers, each at most 5 (for example 5 + 3 + 2 and 2 + 3 + 5 count as different)?
- A. 36
- B. 18
- C. 21
- D. 15
Correct answer: B. 18
Without the limit there are C(9, 2) = 36. A part above 5 can be written 5 + t with t ≥ 1, and then t + a + b = 5 in positive integers has C(4, 2) = 6 solutions; this can happen in any of the 3 places (never two at once). So 36 − 3 × 6 = 18.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A convex polygon has 3 times as many diagonals as sides. How many sides does it have?
- All arrangements of the letters of COMPUTER are listed in dictionary order. What is the rank (position) of the word COMPUTER?
- A 2-digit number (10 to 99) is chosen at random. What is the probability that it is divisible by the sum of its digits?
- Three fair dice are rolled. What is the probability that the product of the three numbers is exactly 12?
- A biased coin shows heads with probability 1/3. It is tossed until the first head. What is the probability that an even number of tosses…
- A fair die is rolled until a 6 appears. Given that every roll (including the last) showed an even number, what is the expected number of…