CAT 2018 Slot 1 — QA Question 29
Forming a committeeEasy
How many numbers with two or more digits can be formed with the digits 1, 2, 3, 4, 5, 6, 7, 8, 9, so that in every such number, each digit is used at most once and the digits appear in the ascending order?
Answer & solution
Answer: 502
Solution
Easy
Because the digits must appear in ascending order, choosing a set of digits fixes their arrangement — there is exactly one valid number per chosen subset. So just count subsets of of size .
1
Reduce to counting subsets. An ascending number of digits corresponds to choosing digits out of (order is forced). The count for each length is .
2
Sum over all lengths to .
The total number of subsets of digits is . Remove the empty set and the single-digit subsets: .