SOLUTION: How many ways can the numbers 1, 2, 3, 4 and 5 be placed in a line so that neither 1 nor 5 occupy either the first or the last place in the sequence? (A) 6 (B) 24 (C) 36 (D) 54

Algebra.Com
Question 206863: How many ways can the numbers 1, 2, 3, 4 and 5 be placed in a line so that neither 1 nor 5 occupy either the first or the last place in the sequence?
(A) 6 (B) 24 (C) 36 (D) 54 (E) 72

Answer by Edwin McCravy(20056)   (Show Source): You can put this solution on YOUR website!
How many ways can the numbers 1, 2, 3, 4 and 5 be placed in a line so that neither 1 nor 5 occupy either the first or the last place in the sequence?

We can choose the 1st number 3 ways.  That's 3.
We can choose the 5th number 2 ways.  That's 3*2.
We can choose the 2nd number 3 ways (we've used two already).  That's 3*2*3
We can choose the 3rd number 2 ways.  That's 3*2*3*2
We can choose the 4th number 1 way.  That's 3*2*3*2*1

Multiply that out and get 36. That's 36 ways.  Here they all are:

 1.  2, 1, 3, 5, 4
 2.  2, 1, 4, 5, 3
 3.  2, 1, 5, 3, 4
 4.  2, 1, 5, 4, 3
 5.  2, 3, 1, 5, 4
 6.  2, 3, 5, 1, 4
 7.  2, 4, 1, 5, 3 
 8.  2, 4, 5, 1, 3
 9.  2, 5, 1, 3, 4
10.  2, 5, 1, 4, 3
11.  2, 5, 3, 1, 4
12.  2, 5, 4, 1, 3
13.  3, 1, 2, 5, 4
14.  3, 1, 4, 5, 2
15.  3, 1, 5, 2, 4
16.  3, 1, 5, 4, 2
17.  3, 2, 1, 5, 4
18.  3, 2, 5, 1, 4
19.  3, 4, 1, 5, 2
20.  3, 4, 5, 1, 2
21.  3, 5, 1, 2, 4
22.  3, 5, 1, 4, 2
23.  3, 5, 2, 1, 4
24.  3, 5, 4, 1, 2
25.  4, 1, 2, 5, 3
26.  4, 1, 3, 5, 2
27.  4, 1, 5, 2, 3
28.  4, 1, 5, 3, 2
29.  4, 2, 1, 5, 3
30.  4, 2, 5, 1, 3
31.  4, 3, 1, 5, 2
32.  4, 3, 5, 1, 2
33.  4, 5, 1, 2, 3
34.  4, 5, 1, 3, 2
35.  4, 5, 2, 1, 3
36.  4, 5, 3, 1, 2

Edwin

RELATED QUESTIONS

How many ways can the letters A, B, C, D, E, and F be arranged in a row 4 at a time if... (answered by stanbon)
In how many ways can the numbers 1, 2, 3, 4, 5, and 6 be arranged in a row, so that the... (answered by Edwin McCravy)
In how many ways can 3 boys and 2 girls be arranged in a row if a selection is made from... (answered by Edwin McCravy)
Suppose that 3 boys and 2 girls go to the theater and occupy 5 seats in a row. In how... (answered by ewatrrr)
In how many ways can the numbers 1,2,3,4,5,6 be arranged in a row so that the product of... (answered by ikleyn,greenestamps)
How many five-digit numbers may be made from the five digits 1, 2, 3, 4, 5. If a... (answered by ikleyn)
Q.1, IF A AND B ARE SQUARE AND ARE COMMUTATIVE THEN AB IS EQUAL BA ? TRUE OR FALSE?... (answered by Edwin McCravy)
1.In how many different ways can 6 classes be scheduled during a 6-period day? 2.In how... (answered by stanbon)
In how many ways can three numbers be selected from the set {1,3,4,6,7,8,11} so that the... (answered by stanbon)