Divide (3n-m^2n+2n)/(6m)