a: \(M=m^2\left(m+n\right)-n^2m-n^3\)
\(=m^2\left(m+n\right)-n^2\left(m+n\right)\)
\(=\left(m+n\right)^2\left(m-n\right)\)
\(=\left(-2017+2017\right)^2\cdot\left(-2017-2017\right)\)
=0
b: \(N=n^3-3n^2-n\left(3-n\right)\)
\(=n^2\left(n-3\right)+n\left(n-3\right)\)
\(=n\left(n-3\right)\left(n+1\right)\)
\(=13\cdot10\cdot14=1820\)