A secure access code is formed by arranging all of the distinct characters and in a single line. If the two vowels ( and ) cannot be adjacent to each other, and the code cannot begin with the consonant , how many different valid access codes can be formed?
- A240
- B252
- C360
- 408Answer
- E480
Answer
408 valid access codes can be formed.
To find the number of valid arrangements satisfying both conditions, we use complementary counting. First, the total number of arrangements of 6 distinct characters is 6! = 720. Next, we determine the number of invalid arrangements. Let V be the set of arrangements where A and E are adjacent: treating (AE) as a single unit gives 5! × 2! = 240 ways. Let B_first be the set of arrangements starting with B: fixing B in the first spot leaves 5! = 120 ways. The intersection of these two invalid sets (where A and E are adjacent AND the code starts with B) places B in position 1 and arranges the remaining 4 items including the (AE) block in 4! × 2! = 48 ways. By inclusion-exclusion, the total invalid arrangements equal 240 + 120 - 48 = 312. Subtracting invalid arrangements from the total gives 720 - 312 = 408 valid access codes.
Step-by-Step Solution
Key Concept
Linear permutations with multiple restrictions using complementary counting and inclusion-exclusion.
Estimated Time:2m 0s