Consider a birth and death process with infinitesimal parameter $\lambda_n$, $\mu_n$. Then the expected length of time for reaching state $r + 1$ starting from state 0 is $$\sum_{n=0}^r \frac{1}{\lambda_n\pi_n} \sum_{k=0}^n \pi_k$$
For the definition $\pi_n$ see the following: $$ \sum_{n=0}^{\infty} \pi_n \sum_{k=0}^n \frac{1}{\lambda_n\pi_n} = \infty$$
where $\pi_0=1$ and $\pi_n= \frac{\lambda_0\lambda_1\cdots \lambda_{n-1}}{\mu_0\mu_1\cdots\mu_{n-1}}$, $n=1,2,\ldots$.
In most practical examples of birth and death processes the last condition is met and the birth and death process associated with the prescribed parameters is uniquely determined.
Well, this is a very complicated exercise for me, first I tried to let $T^{\ast}_n$ denote the elapsed time of first entering state $n + 1$ starting from state $n$.
And then trying to derive a recursion relation for $E[T^{\ast}_n]$ but I can not solve it, I stuck trying to derive this recursion relation....
Could someone help me with hints, suggestions to solve this... Thanks for your time and help everyone.