I have the matrix of transition probabilities and the vector of the initial distribution.
The matrix of transition probabilities:
P = [0.35 0.3 0.35; 0.3