Shoe Dilemma

We have 7 people and 7 pairs of distinct shoes. In how many ways can these shoes be distributed so that no person gets a proper pair?

Note: The left shoe is considered distinct from the right one and a distribution consists of each person getting a left shoe and a right shoe.


The answer is 9344160.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Eddie The Head
Apr 23, 2014

To solve this problem first we take the left shoe of each pair and distribute this among the 7 7 people.This can be done in 7 ! = 5040 7! = 5040 ways.

Next we have to distribute the right pair such that none one gets a proper pair.So here we take the idea of derangements. The number of ways we can distribute the shoes so that no one gets a proper pair id D 7 = 1854 D_7 = 1854 ,where D 7 D_7 is the derangenments of 7 7 objects.

So the total number of possibilities is = 1854 5040 = 9344160 1854*5040 = \boxed{ 9344160} .

What is derangements ? Please guide.

Niranjan Khanderia - 7 years, 1 month ago

Log in to reply

I recommend you to read "Principle of inclusion and Exclusion"(PIE) in the techniques page...

Eddie The Head - 7 years, 1 month ago

Log in to reply

Thanks for your guidance..

Niranjan Khanderia - 6 years, 8 months ago

there can also be the case when left shoe is deranged and right is not but in your scenario right shoe is always deranged

BETTER CODER - 1 year, 11 months ago

Exactly, what about derangement of right shoe. AND your formula doesn't work for N=2 which your formula gives 2 but there are 3 arrangements. One that's missing is when they completely change both shoes. Which never happens your formula cause you have always derangement on one shoe

Darko Doko - 10 months, 2 weeks ago
Roi Amiel
Oct 5, 2018

I solved this problem using this sum:

i = 0 7 ( 1 ) i ( 7 i ) ( 7 P i ) ( ( 7 i ) ! ) 2 = 9344160 \sum_{i=0}^{7} (-1)^i \binom{7}{i} (7 P i)((7-i)!)^2=9344160

In each iteration, we will choose i i people that will get a proper pair of shoes. we have ( 7 i ) \binom{7}{i} options to chose them, and ( 7 P i ) (7 P i) . options to chose shoes for them. For the other people, we need to choose one shoe for each leg, for each leg, we have ( 7 i ) ! (7-i)! options to chose, i.e. ( ( 7 i ) ! ) 2 ((7-i)!)^2

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...