I was doing long division with $x^2 + 1$, and $3x^2+5$. (the second polynomial is the quotient). the problem I've found is related to dividing two polynomials of the same degree. Even if I know that the quotient is always a constant and the remainder is a polynomial of one degree less than the dividend, I still have problem when performing this long division, meaning:
$x^2+0+1\space /\space 3x^2+5$
x^2 is contained in 3x^2 3 times, so I write 3 in the quotient.
then, I perform multiplication between the quotient and the divisor. $3 * 3x^2 = 9x^2$, and $3*5 = 15$. I write them below the dividend. Now, I subtract the dividend with the things I have below.
but, it's an infinite loop, because the degree doesn't change no matter how long I divide.