Every day I put 1 or 2 dollars in the piggy bank with probability $1/2$. What's is expected value number of 2-dollar bills when in the piggy bank will be for the first time at least 100 dollars ?
I know what is going on. Let $X$- number of 2-dollar bills.
1) $X=1$ :
1 dollar- 98 bills and 2 dollars- 1 bill or 1 dollar - 99 bills and 2-dollars- 1 bill
2) $X=2$
1 dollar- 96 bills and 2 dollars- 2 bills or 1 dollar- 97 bills and 2 dollars- 2 bills
etc.
Unfortunately, I can't think of a quick way.
This of it this way. You have $101\ \ \$1$ and $50\ \ \$2$. You have to use combination to get either $100$ or $101$.
So the total no of ways you can do it for $\$100$ is $$\sum_{n=0}^{100}\ ^{100}C_{n}\cdot^{50}C_{(100-n)/2}$$ where $n$ is even
And for $\$101$ is $$\sum_{n=1}^{101}\ ^{101}C_{n}\cdot^{50}C_{(100-n+1)/2}$$ Where $n$ is odd
So for getting $\$100$ there are total $51$ combinations. And for $\$101$ there are $51$ ways. So total $102$ combinations.