You can write a rational function after a long division by the product of the two polynomials plus the remainder divided by the denominator. Can you show me why is it true and what happens if the remainder is 0? Thanks.