A security code consists of four characters generated in order: a letter, a digit, a letter, and a digit.
- The 1st character is a letter chosen from the 5-element set .
- The 2nd character is a digit chosen from the 9 non-zero digits .
- The 3rd character is a letter chosen from , but it cannot be the same as the 1st character.
- The 4th character is an even digit chosen from , but it cannot be the same as the 2nd character.
How many different security codes can be formed following these rules?
Answer: 640
Answer
640
The problem requires counting combinations with dependent restrictions, which can be solved by splitting into two mutually exclusive cases. If the 2nd character is an odd digit (5 possibilities), the 4th character has all 4 even digits available, giving 5 × 5 × 4 × 4 = 400 valid codes. If the 2nd character is an even digit (4 possibilities), the 4th character cannot match it, leaving 3 options, giving 5 × 4 × 4 × 3 = 240 valid codes. Summing the two distinct cases gives 400 + 240 = 640.
Step-by-Step Solution
Key Concept
Fundamental Counting Principle with Case Analysis