Mathematics (JEE)HardCodeforces Div2 C
How many subsets of {1, 2, ..., 8} (including the empty set) contain no two distinct elements whose sum is 9?
- A. 256
- B. 80
- C. 162
- D. 81
Correct answer: D. 81
The pairs with sum 9 are {1,8}, {2,7}, {3,6}, {4,5}; each pair contributes 3 choices (neither, first, or second), so 3^4 = 81.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations of {1, 2, 3, 4, 5, 6} have every cycle of length 2 or 3 in cycle notation?
- In how many ways can the set {1, 2, 3, 4} be split into two labelled, non-empty blocks (block 1 and block 2, each element in exactly one…
- How many strings of length 6 over the alphabet {0, 1, 2} contain exactly two 0s, with the two 0s not in adjacent positions?
- How many 4-digit strings have four distinct digits chosen from {1, 2, 3, 4, 5, 6} and an even digit sum?
- How many necklaces of 6 beads can be made using black and white beads with exactly 2 black beads? Rotations identify necklaces…
- In how many ways can {1, 2, 3, 4, 5, 6} be split into two unordered blocks, each of size 3?