How many ways can 7 distinct flags be arranged with 2 separated?

So the answer is:7! - (5+1)! * 2! = 3600In summary, there are 3600 ways to arrange 7 distinct flags if 2 of them must be separated. This is calculated by subtracting the number of ways to arrange the flags with no restrictions (7!) by the number of ways to arrange the flags with the first and second flag adjacent to each other ((5+1)! * 2!).
  • #1
chrisyuen
56
0

Homework Statement



7 distinct flags are hoisted in a post. Find the number of ways of arranging them if
2 of the flags must be separated. (The answer is 3600)

Homework Equations



Permutation: n!
Circular Permutation: (n-1)!

The Attempt at a Solution



1: Flag 1, 2: Flag 2:

The arrangements should be:

1 X 2 X X X X
X 1 X 2 X X X ...

2 X 1 X X X X
X 2 X 1 X X X ...

1 X X 2 X X X
X 1 X X 2 X X ...

2 X X 1 X X X
X 2 X X 1 X X ...

...

I don't know how to calculate the solution provided.

Can anyone tell me how to solve the above problem?

Thank you very much!
 
Physics news on Phys.org
  • #2
I don't know if this is the way you are supposed to find, but for me a simple counting argument always works.

Suppose that the first flag is not placed in the first or last position. How many possibilities are there? For each choice, how many possibilities are there to place the second flag? For each fixed placement of flag 1 and 2, how many possibilities are there to arrange the remaining 5?
 
  • #3
CompuChip said:
I don't know if this is the way you are supposed to find, but for me a simple counting argument always works.

Suppose that the first flag is not placed in the first or last position. How many possibilities are there? For each choice, how many possibilities are there to place the second flag? For each fixed placement of flag 1 and 2, how many possibilities are there to arrange the remaining 5?

1) (6 x 1 x 5 x 4 x 3 x 2 x 1) x 5 ?

2) Don't know

3) 5! ?
 
  • #4
3) is right. For any placement of the two marked flags, you have 5! possibilities to arrange the rest. So this will give you 5! x (number of placements for the first two flags).

For 1) you are thinking much too complicated. I have 7 empty places, of which there are five which have two neighbours (I am excluding the case where flag 1 is in the first or last position for a moment). I want to put the first flag in one of them. How many ways are there in which I can do that.
Then how many spots out of the 7 are still allowed for the second flag?
 
  • #5
How many arrangements have flag 1 adjacent to flag 2?
 
  • #6
compuchip said:
3) is right. For any placement of the two marked flags, you have 5! Possibilities to arrange the rest. So this will give you 5! X (number of placements for the first two flags).

For 1) you are thinking much too complicated. I have 7 empty places, of which there are five which have two neighbours (i am excluding the case where flag 1 is in the first or last position for a moment). I want to put the first flag in one of them. How many ways are there in which i can do that.
Then how many spots out of the 7 are still allowed for the second flag?

1) 5 ?
 
  • #7
davieddy said:
How many arrangements have flag 1 adjacent to flag 2?

Treating Flag 1 and Flag 2 as one unit, there are (5+1)! arrangements available.

However, inside that unit, there are 2! arrangements available.

Totally, we have (5+1)! x 2! arrangements?
 
  • #8
chrisyuen said:
Treating Flag 1 and Flag 2 as one unit, there are (5+1)! arrangements available.

However, inside that unit, there are 2! arrangements available.

Totally, we have (5+1)! x 2! arrangements?

davieddy, is that the solution should be 7! - (5+1)! x 2! = 3600?

Thank you very much!
 
  • #9
Well done.
Compuchip was trying to guide you through the direct
approach whiich you were trying originally. It gives:

(5*4 +2*5) * 5! = 3600

Not really too complicated, but messier.

David
 
  • #10
Number of ways of locating flags 1 and 2 non adjacent:

5*4 + 2*5 = 7*6 - 6*2 = 30

Nothing in it really!
Perhaps there are further different ways of counting it.

David

BTW * is used in computing/math instead of x for a reason
too obvious to mention.
 
Last edited:
  • #11
davieddy said:
Number of ways of locating flags 1 and 2 non adjacent:

5*4 + 2*5 = 7*6 - 6*2 = 30

Nothing in it really!
Perhaps there are further different ways of counting it.

David

BTW * is used in computing/math instead of x for a reason
too obvious to mention.

Actually, I don't understand why you can get 5*4 + 2*5 OR 7*6 - 6*2.

And why does the first flag not place in the first or last position?
 
  • #12
chrisyuen said:
Actually, I don't understand why you can get 5*4 + 2*5 OR 7*6 - 6*2.

And why does the first flag not place in the first or last position?

(7*6 - 6*2)*5! is what you worked out correctly earlier.

If flag one is not at one end, then there are 4 places to put flag 2
which are not adjacent.
He (Compuchip) went on to ask how many ways can you place flag 2
with flag 1 at an end. Answer 2"5.
 
  • #13
I got it!

Thank CompuChip & davieddy very much!
 

1. What is the difference between permutations and combinations?

Permutations are arrangements of objects where the order matters, while combinations are selections of objects where the order does not matter.

2. How do I calculate the number of permutations?

The number of permutations of n objects taken r at a time is given by n!/(n-r)!. This is known as the permutation formula.

3. What is the formula for calculating combinations?

The number of combinations of n objects taken r at a time is given by n!/r!(n-r)!. This is known as the combination formula.

4. Can you give an example of permutations in real life?

An example of permutations in real life is the number of ways that a group of 5 people can be arranged in a line for a photo, where the order of the people in the photo matters.

5. How do I know when to use permutations or combinations?

You should use permutations when the order of the objects matters, such as arranging people in a line or choosing a president, and use combinations when the order does not matter, such as choosing a committee or selecting toppings for a pizza.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
8
Views
398
  • Precalculus Mathematics Homework Help
Replies
3
Views
699
  • Precalculus Mathematics Homework Help
Replies
32
Views
814
  • Precalculus Mathematics Homework Help
Replies
1
Views
505
  • Precalculus Mathematics Homework Help
Replies
5
Views
1K
  • Precalculus Mathematics Homework Help
Replies
5
Views
956
  • Precalculus Mathematics Homework Help
Replies
14
Views
6K
  • Calculus and Beyond Homework Help
Replies
1
Views
229
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
7
Views
2K
Back
Top