Solution
= Solution
The <similarity transformation> gives $A=PDP^{-1}$. In the <matrix power>, each adjacent pair $P^{-1}P$ cancels to the <identity matrix>:
$$
A^n=(PDP^{-1})\cdots(PDP^{-1})
=\boxed{PD^nP^{-1}}.
$$
This also follows by <mathematical induction>: the formula holds for $n=1$, and multiplication by $A=PDP^{-1}$ turns its $n$th instance into the $(n+1)$st.