(m^2+3m+4)(m^2+3m+5)=6
[(m^2+3m)+4][(m^2+3m)+5]=6
(m^2+3m)^2+9(m^2+3m)+20-6=0
(m^2+3m)^2+9(m^2+3m)+14=0
(m^2+3m+2)(m^2+3m+7)=0
(m+1)(m+2)(m^2+3m+7)=0
m^2+3m+7=0无解
所以m=-1,m=-2
(m^2+3m+4)(m^2+3m+5)=6
[(m^2+3m)+4][(m^2+3m)+5]=6
(m^2+3m)^2+9(m^2+3m)+20-6=0
(m^2+3m)^2+9(m^2+3m)+14=0
(m^2+3m+2)(m^2+3m+7)=0
(m+1)(m+2)(m^2+3m+7)=0
m^2+3m+7=0无解
所以m=-1,m=-2