Divide (3m^5+m-1)÷(m+1)