Suppose P has the eigenvalue decomposition P = UAU⁻¹ where U is the matrix of eigenvectors. Give a formula to calculate Pⁿ as a function of the eigenvalues λ1, ...., λd, U⁻¹ and U.