This Can Only Happen in India!

Krishna, Aditya, Agnishom, Sreejato, Satyen, Snehal and Sandeep (a total of 7) are going for a party. Before entering the disco hall, they decided to leave their jackets outside the hall. After enjoying themselves thoroughly, they went out to fetch their jackets and leave, but to their horrors, electricity went out, and everything was as dark as coal.

In a panic, they decided to randomly wear one jacket each. It so happens that at the most 4 of them got someone else's jacket. In how many ways can this happen?

Image credit: Flickr Edward Morgan


The answer is 407.

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

Sandeep Bhardwaj
Nov 6, 2014

It's a question using the concept of de-arrangement .

Formula for de-arrangement of exactly r r objects out of total n n objects is : ( n r ) × ( r ! ) × ( 1 2 ! 1 3 ! + 1 4 ! . . . . . . + ( 1 ) r + 1 1 r ! ) \binom{n}{r} \times (r!) \times (\dfrac{1}{2!}-\dfrac{1}{3!}+\dfrac{1}{4!}-......+(-1)^{r+1}\dfrac{1}{r!})

Here, let "case λ \lambda " means de-arrangement of λ \lambda jackets (exactly) out of their total 7 7 jackets.

{ c a s e 0 = 1 c a s e 1 = 0 c a s e 2 = 21 c a s e 3 = 70 c a s e 4 = 315 \begin{cases} case 0=1 \\ case 1 = 0 \\case 2 =21 \\case 3= 70 \\case 4=315 \end{cases}

So de-arrangement of at the most 4 4 of jackets = 1 + 0 + 21 + 70 + 315 = 407 =1+0+21+70+315=\boxed{407}

Definition of de-arrangement : De-arrangement means the objects are not at their actual (previous or where they should be) positions. In this case de-arrangement represents that they don't get their own jackets.

And ( n r ) = n ! r ! × ( n r ) ! \binom{n}{r}=\dfrac{n!}{r! \times (n-r)!}

You forgot the case where r = 0 r = 0 , i.e. everyone gets back their own jacket. The answer is 406 + 1 = 407 406 + 1 = 407 .

Jon Haussmann - 6 years, 7 months ago

Log in to reply

@Jon Haussmann Thanks, I missed it. Sorry for the error, it'll get fixed.

Satvik Golechha - 6 years, 7 months ago

Log in to reply

Thanks @Jon Haussmann . If you change add in the question "unfortunately not everyone gets his own jacket.", then you need not to make any other changes. If you make any other change,please edit my solution too (if required) according to your changes. @Satvik Golechha

Sandeep Bhardwaj - 6 years, 7 months ago

Log in to reply

@Sandeep Bhardwaj Yeah! @Sandeep Bhardwaj . There's a problem now. I changed the ans'er when Jon reported it, and then added an 'mage ter the problem. I dunno wheth'r my change in answer has gone to Calvin sirji.

Satvik Golechha - 6 years, 7 months ago

Log in to reply

@Satvik Golechha Please make changes to my solution accordingly. @Satvik Golechha

Sandeep Bhardwaj - 6 years, 7 months ago

Log in to reply

@Sandeep Bhardwaj I surely will, once the answer is updated and problem is un-flagged. Thanks. BTW What's your email-id?

Satvik Golechha - 6 years, 7 months ago

Log in to reply

@Satvik Golechha sandeepmathematics1729@gmail.com is my email-id. @Satvik Golechha

Sandeep Bhardwaj - 6 years, 7 months ago

Log in to reply

@Sandeep Bhardwaj Email - id contains ramanujan number great

U Z - 6 years, 7 months ago

@Satvik Golechha I had updated the answer to 407 on Nov 7, a short while after you added the image. I forgot to post here that the answer was updated, though you should have received an email.

I noticed that the image does not load, and is no longer stored at the website. Can you send me the original image and I can upload it directly? Thanks!

Calvin Lin Staff - 6 years, 6 months ago

Nice problem Satvik :)

Satyen Nabar - 6 years, 7 months ago

Log in to reply

@Satyen Nabar Thanks... ::-D

Satvik Golechha - 6 years, 7 months ago

Nice solution

Anuj Shikarkhane - 6 years, 7 months ago

I forgot case 0 :(

Agnishom Chattopadhyay - 6 years, 7 months ago

Can you tell us how you fund case 1 , case 2 , etc..

If you show one of them it will be super-brilliant ,

Upvoted, Thanks

Syed Baqir - 5 years, 9 months ago
Reuben Tate
Nov 16, 2014

I like Sandeep's solution, however, I didn't remember the formula's for de-arrangement's off the top of my head. My solution uses the idea of distoint cycles in permutations, a topic usually covered in abstract algebra.

So for a permutation on 7 7 objects, r r people not getting their jackets means that the sum of the lengths of the non-trivial cycles is r r (since a trivial cycle [a cycle of size 1 1 ] means the person got their own jacket).

For 4 4 jackets, we can either have 2 2 disjoint cycles of size 2 2 or 1 1 disjoint cycle of size 4 4 . For 3 3 jackets, the only possibility is one disjoint cycle of size 3 3 . For 2 2 jackets, also the only possibility is one disjoint cycle of size 2 2 . It's impossible for only one person to not get their own jacket. And lastly, let's not forget the single case in which everyone gets their own jacket.

Case 1: 2 2 disjoint cycles of size 2 2

For the first disjoint cycle, we have 7 P 2 _7P_2 options. For the second disjoint cycle, we've already selected 2 2 , leaving 5 5 left, so we have 5 P 2 _5P_2 options. For each cycle, we are overcounting by a factor of 2 2 because we want the number of permutations on a circle (in this case, a circle of size 2 2 ). In addition, we don't care about the order of which we pick the two cycles either, so we are also overcounting by a factor of 2 2 there. So our final formula is:

( 7 P 2 2 5 P 2 2 ) / 2 = 105 (\frac{_7P_2}{2}\frac{_5P_2}{2})/2 = 105

Case 2: 1 1 disjoint cycles of size 4 4

So there are 7 P 4 _7P_4 ways to pick 4 4 jackets. We are overcounting by a factor of 4 4 since we want permutations on a circle of size 4 4 . We only have a single cycle, so there is no overcounting in terms of permutations of the cycles themselves.

7 P 4 4 = 210 \frac{_7P_4}{4} = 210

Case 3 and 4: 1 1 disjoint cycle of size 3 3 , 1 1 disjoint cycle of size 2 2

Using the same reasoning as above, the formulas are:

7 P 3 3 = 70 \frac{_7P_3}{3} = 70

and

7 P 2 2 = 21 \frac{_7P_2}{2} = 21

respectively.

Case 5: Everyone gets their own jacket. There is only one possible way this can happen.

Summing up all the possible cases: 105 + 210 + 70 + 21 + 1 = 407 105+210+70+21+1 = 407

Nice approach using disjoint cycles. This is natural if you interpret the problem using abstract algebra. However, it doesn't easily generalize to larger values, since there can be numerous cases of disjoint cycles, which becomes hard to track.

Calvin Lin Staff - 6 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...