Let be an integer and consider strings of length consisting of the characters , ,
, and . How many such strings are there that start with or start with ?
(a)
(b)
(c)
(d)
Solution
We can break this down into 2 cases:
A = strings that start with
There is way to arrange the first 2 bits and ways to choose the last bits:
B = strings that start with
There is way to arrange the first 3 bits and ways to choose the last bits:
strings that start with and start with
There is way to arrange the first 3 bits and ways to choose the last bits: