A security system requires a 4-digit pass code formed using the digits and , with no digit repeated within a code. If the first digit of the pass code must be an even number and the last digit must be an odd number, how many such distinct pass codes can be created?
- A120
- 240Answer
- C300
- D504
- E840
Answer
240 pass codes
To form a 4-digit code with distinct digits from the set {1, 2, 3, 4, 5, 6, 7}: there are 3 options for the first digit (even: 2, 4, 6) and 4 options for the fourth digit (odd: 1, 3, 5, 7). Because the sets of even and odd numbers are disjoint, choosing the first digit does not affect the number of odd choices available for the fourth position. After placing these 2 digits, 5 digits remain from the original set of 7. The second position can be filled in 5 ways, and the third position in 4 ways. By the Fundamental Counting Principle, the total number of codes is 3 × 4 × 5 × 4 = 240.
Step-by-Step Solution
Key Concept
Fundamental Counting Principle and Permutations with Positional Restrictions