Back

Question: 2017 Winter Midterm - 4

Author: Michiel Smid
Let $n \geq 13$ be an integer. What is the number of bitstrings of length $n$ that have exactly seven 0's or exactly five 1's?
(a)
${n \choose 7} + {n \choose 5}$
(b)
${n \choose 12} \cdot {12 \choose 7}$
(c)
${n \choose 7} + {n \choose 5} - {n \choose 5} \cdot {n - 5 \choose 7}$
(d)
None of the above.