### desp__beginner's blog

By desp__beginner, history, 6 weeks ago,

Hi everyone I was solving this problem. I tried a lot for finding a general formula for — How many permutation out of $n!$ will lead to exactly $K$ different chocolates. Then we just have to find probability by dividing with $n!$ and find Expectation by multiplying with $K$ and finally add the expectation for all such $K$ in range $[1,N]$. But I am unable to find a general formula for this. Also I am not able to get the editorial basically proof of that.
Can anyone please provide some idea regarding this. It'll be of great help.

• -10

 » 6 weeks ago, # |   0 Auto comment: topic has been updated by desp__beginner (previous revision, new revision, compare).