Solution (source code)

= Solution

$A(A^2-4A+5I)=2I$, so $A$ has inverse.