help for a math problem

Get help with your application

Use all the free resources available to you from SDN: articles, guides, expert advising, forums discussions, and school research.

DDSelin2mori

Full Member
10+ Year Member
15+ Year Member
Can any body suggest a quick way for solving this problem:

Thomaz has two CDs and two tapes. In how many arrandments can he play the Cds and tapes one after the other such that each is played exactly once and one Cd is not played immediatley before or after the other?
 
Real quick... only 2 ways keep the CD's apart, playing them 2 apart (with one tape in between) or 3 apart (with one in front and one at end with tapes in the center)... i'd do each way separately.
Way 1:
You have to start with a CD, so you have two options at slot 1, CD1, and CD2. You then have only two choices at slot two, either T1 or T2, in order to keep the CD's at either slot 1 or 4. The last two slots are invariable. They have to be the other tape followed by the other CD. When I did it I jotted it down as below...

CD1 T1 T2 CD2 x2
CD1 T2 T1 CD2 x2

The x2's show that for each sequence, you also have to account for the reverse situation, like for the first one you also have to account for CD2 T2 T1 CD1... There are a total of 4 options with the CD's at the 1st and 4th slots... You can also approach it mathematically using the same reasoning as above for each slot... (2*2*1*1)=4

Then you have to deal with the possibity that only one tape separates them... I approached it similarly to the first part... Cept' his time you can start with any of the 4 options, so the first multiplier is a 4... Say you choose CD1, now you only have 2 options for slot 2 though, T1 and T2, so thats a multiplier of 2... Say you chose T1... now the other two have to fall into place, no more choices, the third has to be CD2 and the last T2... no options so all the multipliers are 1's... You write it out mathematically as (4*2*1*1) = 8. Following are those 8 choices (again, to save space I put x2's to denote forwards and backwards)

CD1 T1 CD2 T2 x2
CD1 T2 CD2 T1 x2
CD2 T1 CD1 T2 x2
CD2 T2 CD1 T1 x2

So you take the 4 options from the first way and the 8 options from the second and get 12 possible ways to arrange them... If you get the concept off the bat you can skip to the math pretty quickly and write it out as (2*2*1*1)+(4*2*1*1) =12 and get it in about 30 secs...
Hope this helps... if anyone sees anything I messed up or an easier way lemme know...
 
Real quick... only 2 ways keep the CD's apart, playing them 2 apart (with one tape in between) or 3 apart (with one in front and one at end with tapes in the center)... i'd do each way separately.
Way 1:
You have to start with a CD, so you have two options at slot 1, CD1, and CD2. You then have only two choices at slot two, either T1 or T2, in order to keep the CD's at either slot 1 or 4. The last two slots are invariable. They have to be the other tape followed by the other CD. When I did it I jotted it down as below...

CD1 T1 T2 CD2 x2
CD1 T2 T1 CD2 x2

The x2's show that for each sequence, you also have to account for the reverse situation, like for the first one you also have to account for CD2 T2 T1 CD1... There are a total of 4 options with the CD's at the 1st and 4th slots... You can also approach it mathematically using the same reasoning as above for each slot... (2*2*1*1)=4

Then you have to deal with the possibity that only one tape separates them... I approached it similarly to the first part... Cept' his time you can start with any of the 4 options, so the first multiplier is a 4... Say you choose CD1, now you only have 2 options for slot 2 though, T1 and T2, so thats a multiplier of 2... Say you chose T1... now the other two have to fall into place, no more choices, the third has to be CD2 and the last T2... no options so all the multipliers are 1's... You write it out mathematically as (4*2*1*1) = 8. Following are those 8 choices (again, to save space I put x2's to denote forwards and backwards)

CD1 T1 CD2 T2 x2
CD1 T2 CD2 T1 x2
CD2 T1 CD1 T2 x2
CD2 T2 CD1 T1 x2

So you take the 4 options from the first way and the 8 options from the second and get 12 possible ways to arrange them... If you get the concept off the bat you can skip to the math pretty quickly and write it out as (2*2*1*1)+(4*2*1*1) =12 and get it in about 30 secs...
Hope this helps... if anyone sees anything I messed up or an easier way lemme know...


Thank you so much for your response. It's really hepful
 
You can order them in 4! = 24 different ways.

Consider the four spots:

A B C D

Now consider choosing where you want the CDs to be.

You can select the two spots (4 choose 2) = 6 ways. Of those, 3 give you the two CDs next to each other (CD CD TAPE TAPE) (TAPE CD CD TAPE) (TAPE TAPE CD CD). So exactly 1/2 of the orderings will have CDs next to each other.

1/2 of 24 = 12.
 
Can any body suggest a quick way for solving this problem:

Thomaz has two CDs and two tapes. In how many arrandments can he play the Cds and tapes one after the other such that each is played exactly once and one Cd is not played immediatley before or after the other?


You can also use the permutation formula: NPr=N!/(N-r)! where N is total # of events, r is # of objects at occur at one time.
NPr=4!/(4-2)!=(4x3x2x1)/(2x1)=12
 
You can also use the permutation (ordered sequence)formula : NPr=N!/(N-r)! where N is total # of objects or events, r is # of objects or events taking at a time
NPr=4!/(4-2)!=(4x3x2x1)/(2x1)=12

Self-correction: Just wanted to make it more clearly!!😀
 
You can also use the permutation formula: NPr=N!/(N-r)! where N is total # of events, r is # of objects at occur at one time.
NPr=4!/(4-2)!=(4x3x2x1)/(2x1)=12

Honestly, even if you memorize the formula you're bound to forget it. Use the slot method above, it's less confusing.
 
You can also use the permutation formula: NPr=N!/(N-r)! where N is total # of events, r is # of objects at occur at one time.
NPr=4!/(4-2)!=(4x3x2x1)/(2x1)=12
That's just a coincidence that you get the same answer. The permutation formula tells you how many ways you can pick 2 items out of 4 without regard to order. Doesn't really apply to this problem from what I can see.

Correct me if I'm wrong, by all means.
 
That's just a coincidence that you get the same answer. The permutation formula tells you how many ways you can pick 2 items out of 4 without regard to order. Doesn't really apply to this problem from what I can see.

Correct me if I'm wrong, by all means.


If the ordered sequence of 2CDs and 2Tapes are not matter then we can use the combination formula:

N C r= N!/[r!(N-r)!]

or 4!/[2!(4-2)!]=6

If you can remember the formulas and be able to show the long way=awesomes!!👍
 
If the ordered sequence of 2CDs and 2Tapes are not matter then we can use the combination formula:

N C r= N!/[r!(N-r)!]

or 4!/[2!(4-2)!]=6

If you can remember the formulas and be able to show the long way=awesomes!!👍

🙂🙂 r=2 is applied here because C1,C2 or C2,C1 cannot played next to each other.
Feel free to correct me because I would like to learn more from you guys!
 
No it's just a coincidence that the numbers work out that way.

Try the same thing for this modified version:

There are 3 tapes and 2 CDs. Calculate that # of ways to order the tapes/CDs so that you don't play 2 CDs in a row.

I get 72.
 
No it's just a coincidence that the numbers work out that way.

Try the same thing for this modified version:

There are 3 tapes and 2 CDs. Calculate that # of ways to order the tapes/CDs so that you don't play 2 CDs in a row.

I get 72.

Slot 1Slot 2Slot 3Slot 4Slot 5#arrangmentCD1CD26x2=12CD1CD212CD1CD212CD1CD212CD1CD212Total60

OR:

Slot 1Slot 2Slot 3Slot 4Slot 5 #arrangement CD1CD212CD1CD212CD1CD212CD1CD212CD1CD212TOTAL 60 CANNOT BE PLAYED


5!=120 MAX. # OF POSSIBLE ARRANGEMENT
12-60=60 NUMBER 0F ARRANGMENT THAT CDS DON'T PLAY NEXT TO EACH OTHER!
HOW DID YOU GET 72? I WOULD LIKE TO KNOW (THANKS!!)
 
120 arrangements.

Pick the 2 spots that the CDs occupy:

Can be done (5 choose 2) = 10 ways.

Of those 10 ways, 4 of them put the CDs next to each other:

CD/CD/T/T/T
T/CD/CD/T/T
T/T/CD/CD/T
T/T/T/CD/CD

so 4/10 or 2/5 of the total ways put the CDs next to each other. That means 3/5 of the ways don't put them next to each other.

3/5 * 120 = 72.
 
i got 12 too....
cd1=A
cd2=a
tape1=B
tape2=b

ABab
AbaB
aBAb
abAB
baAB
bAaB
BaAb
BAab
bABa
baBA
BAba
BabA


anyways for short...4!/2!.....(4.3.2.1)/(2.1)=12