Ex ăsta vă rog… am nevoie de rezolvare completă

Răspuns:
Avem
[tex]A^2=\begin{pmatrix}2 & 0 & 2\\0 & 1 & 0\\2 & 0 & 2\end{pmatrix}, \ A^3=\begin{pmatrix}4 & 0 & 4\\0 & 1 & 0\\4 & 0 & 4\end{pmatrix}[/tex]
Înlocuind în relația dată și egalând elementele se obține
[tex]\begin{cases}2p+q=4\\p+q=1\end{cases}[/tex]
cu soluția [tex]p=3, \ q=-2[/tex]
Explicație pas cu pas: