\(M=\left(a+1\right)\left(a+2\right)\left(a+3\right)\left(a+4\right)+1\)
\(M=\left(a+1\right)\left(a+4\right)\left(a+2\right)\left(a+3\right)+1\)
\(M=\left(a^2+5a+4\right)\left(a^2+5a+6\right)+1\)
Đặt \(a^2+5a+4=x\)
\(\Rightarrow M=x\left(x+2\right)+1\)
\(\Rightarrow M=x^2+2x+1=\left(x+1\right)^2\)