long division

x^2+3x+5/x+2

enter your polynomials at

http://calc101.com/webMathematica/long-divide.jsp

and see all the details