GATE Computer ScienceModerateGATE CS (PYQ pattern)
Five fair six-faced dice are rolled. In how many of the 7776 ordered outcomes is the sum exactly 20 AND all five faces different?
- A. 651
- B. 60
- C. 240
- D. 120
Correct answer: D. 120
Five distinct faces from {1,…,6} omit exactly one face, and their sum is 21 minus the omitted face. Sum 20 ⇒ the omitted face is 1, so the faces are {2,3,4,5,6} in any order: 5! = 120.
More Discrete Mathematics questions
- How many partitions of 20 (as an unordered sum of positive integers) have the property that no part appears more than twice?
- In how many ways can 60 be written as an unordered sum of 2s, 3s and 7s (order of the summands does not matter)?
- a₀ = 1, a₁ = 3 and aₙ = 4aₙ₋₁ − 4aₙ₋₂ + 2ⁿ for n ≥ 2. What is a₁₀?
- aₙ = 3aₙ₋₁ − 4aₙ₋₃ with a₀ = 1, a₁ = 2, a₂ = 5. What is a₁₂?
- How many binary strings of length 14 contain neither 00 nor 111 as a substring?
- How many binary strings of length 14 contain neither 010 nor 101 as a substring?