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?
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.
You forgot the case where r = 0 , i.e. everyone gets back their own jacket. The answer is 4 0 6 + 1 = 4 0 7 .
Log in to reply
@Jon Haussmann Thanks, I missed it. Sorry for the error, it'll get fixed.
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
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.
Log in to reply
@Satvik Golechha – Please make changes to my solution accordingly. @Satvik Golechha
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?
Log in to reply
@Satvik Golechha – sandeepmathematics1729@gmail.com is my email-id. @Satvik Golechha
Log in to reply
@Sandeep Bhardwaj – Email - id contains ramanujan number great
@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!
Nice problem Satvik :)
Nice solution
I forgot case 0 :(
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
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 objects, r people not getting their jackets means that the sum of the lengths of the non-trivial cycles is r (since a trivial cycle [a cycle of size 1 ] means the person got their own jacket).
For 4 jackets, we can either have 2 disjoint cycles of size 2 or 1 disjoint cycle of size 4 . For 3 jackets, the only possibility is one disjoint cycle of size 3 . For 2 jackets, also the only possibility is one disjoint cycle of size 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 disjoint cycles of size 2
For the first disjoint cycle, we have 7 P 2 options. For the second disjoint cycle, we've already selected 2 , leaving 5 left, so we have 5 P 2 options. For each cycle, we are overcounting by a factor of 2 because we want the number of permutations on a circle (in this case, a circle of size 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 there. So our final formula is:
( 2 7 P 2 2 5 P 2 ) / 2 = 1 0 5
Case 2: 1 disjoint cycles of size 4
So there are 7 P 4 ways to pick 4 jackets. We are overcounting by a factor of 4 since we want permutations on a circle of size 4 . We only have a single cycle, so there is no overcounting in terms of permutations of the cycles themselves.
4 7 P 4 = 2 1 0
Case 3 and 4: 1 disjoint cycle of size 3 , 1 disjoint cycle of size 2
Using the same reasoning as above, the formulas are:
3 7 P 3 = 7 0
and
2 7 P 2 = 2 1
respectively.
Case 5: Everyone gets their own jacket. There is only one possible way this can happen.
Summing up all the possible cases: 1 0 5 + 2 1 0 + 7 0 + 2 1 + 1 = 4 0 7
Problem Loading...
Note Loading...
Set Loading...
It's a question using the concept of de-arrangement .
Formula for de-arrangement of exactly r objects out of total n objects is : ( r n ) × ( r ! ) × ( 2 ! 1 − 3 ! 1 + 4 ! 1 − . . . . . . + ( − 1 ) r + 1 r ! 1 )
Here, let "case λ " means de-arrangement of λ jackets (exactly) out of their total 7 jackets.
⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ c a s e 0 = 1 c a s e 1 = 0 c a s e 2 = 2 1 c a s e 3 = 7 0 c a s e 4 = 3 1 5
So de-arrangement of at the most 4 of jackets = 1 + 0 + 2 1 + 7 0 + 3 1 5 = 4 0 7
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 ( r n ) = r ! × ( n − r ) ! n !