That checks with what I got for 10. For 100, I am getting 48.505
]]>I will get it for you, in the meantime to check what did you get for 10?
]]>As far as my understanding goes, it computes the number of ways you can give out n names to n people without any of them having their own name.
That is the number of derangements which is always an integer. Your sum there is not always an integer.
]]>Summation from j= 0 to n of (-1)^j/j! in the numerator is not getting into my head.
As far as my understanding goes, it computes the number of ways you can give out n names to n people without any of them having their own name.
Why do we need to multiply the summation in the numerator with P(no one getting drunk)?
]]>