There are $a$ balls in a jar. One is gold, the rest are black. Balls are taken from the jar. If a black ball is taken, it is not replaced. If a gold ball is taken, all balls are replaced.
I am interested in finding a closed form solution for the expected number of gold balls taken after $k$ balls have been taken in total.
My approach so far is to form a recurrence relation with $E_n =$ the expected number of gold balls taken after $n$ balls have been taken in total.
The starting condition is
$$E_0 = 0$$
Conditioning on getting the gold ball on the $i$th try (probability $\frac{1}{a}$),
For $0 < k < a$, $$E_k = \left(\frac{1}{a}\right)\left(\sum^{k}_{i=1}1+E_{k-i}\right)$$ For $k \geq a$, $$E_k = \left(\frac{1}{a}\right)\left(\sum^{a}_{i=1}1+E_{k-i}\right)$$
The relation can be simplified to
$$E_{<0} = -1, E_0 = 0$$ $$E_{k>0} = 1+\left(\frac{1}{a}\right)\left(\sum^{a}_{i=1}E_{k-i}\right)$$
I'm not sure where to go from here, or if this is the best approach.
Another thing I'm a bit confused on is some intuition. When $a=2$ and the jar is full, the expected number of balls it takes to get the golden ball is $\frac{1}{2}+\frac{2}{2}=\frac{3}{2}=1.5$, I believe.
On the other hand, if the above recurrence is correct, then for $a=2$, $E_3=\frac{15}{8}=1.875$. So you expect $1.875$ gold balls after taking $3$ balls.
I can't figure out why this is less than $2$, intuitively, which leads me to be unsure about my recurrence. On the other hand, I notice as $k$ grows large (from plotting the recurrence), the difference between the expected number of gold balls every $3$ balls taken tends to $2$ from below.
What I've said above seems to generalise for all $a$.
Table of recurrence for $a=2$. Left column is $k$, right is $E_k$.
