Problems on Counting
In exercises 1 - 5, two dice are rolled one blue and one red.
- How many outcomes are possible?
- How many outcomes are doubles (both dice show the same number)?
- How many outcomes have the blue die showing 2?
- How many outcomes have at least one die showing 2?
- How many outcomes have neither die showing 2?
Exercises 6 – 10 refer to 8-bit strings
- How many 8-bit strings begin 1100?
- How many 8-bit strings begin and end with 1?
- How many 8-bit strings have either the second or the forth bit or both equal to 1?
There are 3 choices for second and the fourth bit: 01, 10, 11
For each choice there are 26 possible assignments of values to the remaining 6 bits.
Thus the total number of outcomes is 3x26
- How many 8-bit strings have exactly two 1's?
- How many 8-bit strings have at least one 1?
In exercises 11 - 14, a six-person committee composed of Alice, Ben, Connie, Dolph, Egbert and Frank is to select a chairperson, secretary and treasurer.
- How many selections exclude Connie?
- How many selections are there in which neither Ben nor Frank is an officer?
- How many selections are there in which Dolph is an officer and Frank is not an officer?
- How many selections are there in which Ben is either a chairperson or treasurer?
In exercises 15 - 20, the letters ABCDE are to be used to form strings of length 3
- How many strings can be formed if we allow repetitions?
- How many strings can be formed if we do not allow repetitions?
- How many strings begin with A, allowing repetitions?
- How many strings begin with A, not allowing repetitions?
- How many strings contain A, allowing repetitions?
- How many strings contain A, not allowing repetitions?
In exercises 21 - 23, determine how many strings can be formed by ordering the letters ABCDE subject to the conditions given
- Containing the substring ACE.
- Containing the letters ACE in any order.
- Containing either the substring AE or the substring EA
- In some versions of FORTRAN, an identifier consists of a string of one to 6 alphanumeric characters beginning with a letter (an alphanumeric character is one of A to Z or 0 to 9.) How many valid FORTRAN identifiers are there?
1