Computes the pseudo-remainder of two polynomials. Given two polynomials P and Q with degrees p and q, respectively; the pseudo-remainder of P and Q is defined as

p s e u d o r e m a i n d e r left parenthesis P comma Q right parenthesis equals r e m a i n d e r open parentheses l e a d i n g _ c o e f f i c i e n t left parenthesis Q right parenthesis to the power of p minus q plus 1 end exponent times P comma Q close parentheses

pseudoremainder(Polynomial, Polynomial)

Given two polynomials P and Q, returns the pseudoremainder.