\frac{m}{6}-\frac{m^3}{6}+\frac{m n}{2}+\frac{m^2 n}{2}=\frac{m}{6}\left(1-m^2+3n+3m n\right)