Ergodic Theorem

Let be a irreducible transition matrix
Let be the number of visits to state before time so

Then for any initial distribution

So