(a) Alice and Bob are wandering around randomly, independently of each other, in a house with $M$ rooms, labeled $1,2, \ldots, M .$ Let $d_{i}$ be the number of doors in room $i$ (leading to other rooms, not leading outside). At each step, Alice moves to another room by choosing randomly which door to go through (with equal probabilities). Bob does the same, independently. The Markov chain they each follow is irreducible and aperiodic. Let $A_{n}$ and $B_{n}$ be Alice's room and Bob's room at time $n$, respectively, for $n=0,1,2, \ldots$
Find $\lim _{n \rightarrow \infty} P\left(A_{n}=i, B_{n}=j\right)$.
(b) With setup as in (a), let $p_{i j}$ be the transition probability for going from room $i$ to room $j$. Let $t_{i k}$ be the expected first time at which Alice and Bob are in the same room, if Alice starts in room $i$ and Bob starts in room $k$ (note that $t_{i k}=0$ for $i=k$ ).
Provide a system of linear equations, the solution of which would yield $t_{i k}$ for all rooms $i, k$.