Consider a Markov chain with state space S={0,1,2,…} and transition matrix given by
Pi,j={qpj−i+1qpj for i⩾1 and j⩾i−1 for i=0 and j⩾0
and Pi,j=0 otherwise, where 0<p=1−q<1.
For each value of p,0<p<1, determine whether the chain is transient, null recurrent or positive recurrent, and in the last case find the invariant distribution.