a) \(\left(3n-1\right)^2-4=\left(3n-1-2\right)\left(3n-1+2\right)\)
\(=\left(3n-3\right)\left(3n+1\right)=3\left(n-1\right)\left(3n+1\right)⋮3\forall n\in N\)
b) \(A=x^2+2x+5=\left(x^2+2x+1\right)+4\)
\(=\left(x+1\right)^2+4\ge4\)
\(minA=4\Leftrightarrow x=-1\)