39
Dr.House
·2009-02-26 20:34:16
this was one of user`s doubt, i thought i would pozt general method os solving it.
39
Dr.House
·2009-02-26 20:37:04
number of ways in whici n letters can be placed in n directed envolopes so that no letter goes into its own envelope is
n! [ 1/2!-1/3! +1/4!-1/5!..........+(-1)n1/n!]
39
Dr.House
·2009-02-26 20:38:54
here n=4 is tha case, so substitute n=4.
now dont say i am a formula mugger, this is quite a general one and have learnt after solving many such problems. and ya its not always given as letters, so relate with the question and u can find use of this formula in other cases also.
62
Lokesh Verma
·2009-02-26 20:39:01
hmm.. interesting that this has come up..
Can someone give a step by step complete logical proof to this formula?
When I mean logical, i mean it should not use any "formulas" ....
Assume that the person who has to understand does not know or even heard "Inclusion Exclusion" Principle!
Bhargav.. I am sure u can pull this off :)
39
Dr.House
·2009-02-26 20:40:36
BHAIYAN, THIS IS A DIRECT RESULT FROM
PIE:principle of inclusion and exclusion
62
Lokesh Verma
·2009-02-26 20:43:55
hmm.. i know that it is a result..
but I have 2 Rules of Studying Probability Combination and Probability.. which I have said a couple of times before...
Rule 1: Dont learn Anything
Rule 2: Dont forget Rule 1
:)
;)
39
Dr.House
·2009-02-26 20:45:17
ok, so i will try to put up something........
39
Dr.House
·2009-02-26 20:50:56
A1,A2,A3,A4,.........Am are sets and A=A1UA2UA3U...UAm
n(A) = n(A1)+ n(A2) +n(A3)+.......... n(Am)
- Σn(Ai∩Aj) , 1≤i<j≤m
+Σn(Ai∩Aj∩Ak) , 1≤i<j<k≤m
and so on.......
This is called PIE
39
Dr.House
·2009-02-26 20:51:33
ABOVE ALL A1,A2,A3......Am are finite sets, forgot to mention that.
62
Lokesh Verma
·2009-02-26 20:53:42
isnt this inclusion exclusion principle written in a different manner :D
3
iitimcomin
·2009-02-26 20:58:53
MY APPROACH TO THIS PROBLEM WAS AS BELOW PLS POINT OUT ERROR: TOTAL NO. OF WAYS . = 4! ........
NOW LET SETS A BE NO. OF WAYS IN WHICH LETTER 1 GOES TO RITE PLACCE ..B FOR LETTER 2 .....
AND SO ON TILL D ...........
NOW I FOUND n(A U B U C U D) = n(A) + n(B)...+n(D) - n(A∩B).......+n(A∩B∩C)......-n(A∩B∩C∩D) ...................
THEN I DID 4! - n(A U B U C U D) as we dont want anything goin to rite place........
but my answer is not correct explain the flaw in mah method [2][2]
{edited}
39
Dr.House
·2009-02-26 21:00:12
now, we can see
if A1,A2,A3............Am are subsets of AA containing N elements, then
n(A1`∩A2`∩...........∩Am`)
= N - Σ n(Ai) +Σ n(Ai∩Aj) - Σ n(Ai∩Aj∩Ak)+......
i 1≤i<j≤m 1≤i<j<k≤m
there kindly note that in the formula i bolded, i have used compliments of A1,A2,A3..........
39
Dr.House
·2009-02-26 21:00:50
now this above post is what leads us to DERRANGEMENTS.
62
Lokesh Verma
·2009-02-26 21:01:16
where did this 5! come from...
It should be 4! na....!! or am i sleeping :P
Other than that I think that your answer is correct!
3
iitimcomin
·2009-02-26 21:02:20
oh!! ya 4! im soooo sorry ,..... that was dumb... now mah answer is correct!!!!!!!
62
Lokesh Verma
·2009-02-26 21:03:06
haha.. cool
and yes as always, good work bhargav :)