Polynomial division and Remainder theorem