Polynomial long division - Problem type 1