A 5-digit identification code is to be created as a sequence that contains each integer in the set {1, 2, 3, 4, 5} exactly once. If all identification codes are possible except those containing even integers next to each other, how many different identification codes are possible?We must create codes such that even integers are separated by odd integers.
First arrange the odd integers. There are 3 odd integers. So, they can be arranged in 3! = 6 ways.
Now, having arranged the odd integers, we have the following possible slots for the 2 even integers:
_ O _ O _ O _
We see that there are 4 slots we can choose for the even integers.
So, for example, we can choose the following:
2 O 4 O _O _
Thus, we are choosing 2 out of 4 slots. So, the ways to chose the slots are 4C2 = 6.
There are 2 ways to order the 2 even integers in the 2 slots they occupy. So, we have 6 × 2 = 12 ways to arrange the even integers.
So, with 6 ways to arrange the odd integers and 12 ways to arrange the even integers, we have 6 × 12 = 72 total posssible arrangements.
A. 120
B. 96
C. 72
D. 48
E. 24Correct answer: C