a: \(\Leftrightarrow x^2-2x+1+y^2+2y+1+z^2-4z+4=0\)
\(\Leftrightarrow\left(x-1\right)^2+\left(y+1\right)^2+\left(z-2\right)^2=0\)
=>x=1; y=-1; z=2
b: \(a^2\left(a+1\right)+2a\left(a+1\right)\)
\(=\left(a+1\right)\left(a^2+2a\right)\)
\(=a\left(a+1\right)\left(a+2\right)\)
Vì a;a+1;a+2 là ba số nguyên liên tiếp
nên \(a\left(a+1\right)\left(a+2\right)⋮3!\)
hay \(a\left(a+1\right)\left(a+2\right)⋮6\)