Re: Combinatorics Question

Quote:

Originally Posted by

**Urbandude23** 6 people each own a desk each. The company owner wants to swap them round, so at most one of them stays where they were before. How many arrangements are possible?

You need to know about derangements. Scroll down to the counting formula.

Let be the number of derangements on objects.

The answer to your question is .

Re: Combinatorics Question

Does this factor in the part of the question that states there can still be one person in the same place as before?

Re: Combinatorics Question

Quote:

Originally Posted by

**Urbandude23** Does this factor in the part of the question that states there can still be one person in the same place as before?

Please see my edit to that post. I miss-read it. I thought it said two people stayed put.

Re: Combinatorics Question

I get 283, is that correct?

Re: Combinatorics Question

Quote:

Originally Posted by

**Urbandude23** I get 283, is that correct?

Did you take note of my edit?

.

Look at this. Then at this

Now apply the above formula.

Re: Combinatorics Question

Re: Combinatorics Question

Quote:

Originally Posted by

**Urbandude23** So, it's 6*44+265!

I believe that overcounts. I think this gives the correct solution:

Start with all permutations: 6!. Subtract from it the number of permutations where at least two people remain in their original positions: to count this, choose two people to remain in their original position, then permute the remaining four. However, this overcounts. If the permutation of the remaining four people fixes any other person, then I can I am counting that permutation an additional time. So, the correct number is where is the number of permutations that fixes at least three people. To count that, choose three people and permute the remaining three. Again, this overcounts by the number of permutations that fix at least four people. In other words, we need to apply inclusion/exclusion:

Re: Combinatorics Question

Quote:

Originally Posted by

**SlipEternal** I believe that overcounts.

Not is does not over count.

In the OP it wants at most one to stay put.

counts the number of ways that none stay put.

counts number of the ways that exactly one stays put.

Now I did not check the poster's calculations. But the idea is correct.

Re: Combinatorics Question

Quote:

Originally Posted by

**Plato** Not is does not over count.

In the OP it wants at most one to stay put.

counts the number of ways that none stay put.

counts number of the ways that exactly one stays put.

Now I did not check the poster's calculations. But the idea is correct.

My mistake. I haven't worked with derangements since I was an undergrad, and the inclusion/exclusion argument I set up was not quite right. You are correct. I was trying to give the idea of how to count it if they had not yet learned how to count derangements. But, that wikipedia entry gives a good explanation of how to arrive at the recursive formula.

Re: Combinatorics Question

Quote:

Originally Posted by

**SlipEternal** I was trying to give the idea of how to count it if they had not yet learned how to count derangements. But, that wikipedia entry gives a good explanation of how to arrive at the recursive formula.

The actual closed formula is interesting. Using inclusion/'exclusion: