Given, A=⎡⎢⎣122212221⎤⎥⎦
A2=A⋅A=⎡⎢⎣122212221⎤⎥⎦⋅⎡⎢⎣122212221⎤⎥⎦
A2=⎡⎢⎣1+4+42+2+42+4+22+2+41+1+44+2+22+4+24+2+24+4+1⎤⎥⎦
A2=⎡⎢⎣988898889⎤⎥⎦−4⎡⎢⎣122212221⎤⎥⎦−5⎡⎢⎣100010001⎤⎥⎦
=⎡⎢⎣988898889⎤⎥⎦−⎡⎢⎣488848884⎤⎥⎦−⎡⎢⎣500050005⎤⎥⎦
⎡⎢⎣000000000⎤⎥⎦⟹A2−4A+5I=0
Pre multiply both sides with A−1, we get (A−1A)A−4A−1A+5A−1=0
IA−4I+5A−1=0⟹A−1=[4I−A]15
A−1=15⎡⎢⎣3−2−2−23−2−2−23⎤⎥⎦