Bunuel
Let S be the set of five-digit numbers formed by the digits 1, 2, 3, 4 and 5, using each digit exactly once such that exactly two odd positions are occupied by odd digits. What is the sum of the units digits of the numbers in S?
(A) 294
(B) 228
(C) 216
(D) 194
(E) 144
Let the number be ABCDE.
Since we are looking at units digit, let us concentrate on position E.
1) When E is an odd number, say 1
(Odd),_,(Even),_,1 OR (Even),_(Odd),_,1
ODD: One of 3 or 5 can take any one of the position of A or C, so 2C1*2C1.
The remaining odd number can be placed at any one of the position of B or D, so 2 ways.
The way odd numbers can be placed is 2C1*2C1*2=8
EVEN: There are 2 places left for 2 even numbers after placing of odd numbers, so these 2 even numbers can be placed in 2! ways
Total numbers when 1 is in units digit = 8*2=16
Similarly, there will be 16 ways when each of 3 and 5 are the units digit.
Sum = 16(1+3+5)=16*9=144
2) When E is an even number, say 2
(Odd),_,(Odd),_,2
ODD: Choose 2 out of 3 odd numbers and arrange them in 2 ways for position A and C = 3C2*2!=6.
The remaining odd number can be placed at any one of the position of B or D, so 2 ways.
The way odd numbers can be placed is 6*2=12
EVEN: There is 1 place left for 1 even number after placing of odd numbers, so 1 way
Total numbers when 2 is in units digit = 12
Similarly, there will be 12 ways when 4 is the units digit.
Sum = 12(2+4)=12*6=72
Total: 144+72=216
C