How to calculate the expected number.

When probability from 0~9 different, how to calculate the expected number???

Thank very much!!

Re: How to calculate the expected number.

I have used Dynamic Programming.

To do this, you need to store 2^10 states ...

Re: How to calculate the expected number.

I have used Dynamic Programming to get probability.

But don't know how to get EP.

If probability is equal it's a coupon collector's problem?

Re: How to calculate the expected number.

Please, explane this in more details.