Section 02Division and pseudo-division
Over a field, division with remainder always works. Over ℤ it does not: dividing x2 by 2x leaves the ring. Pseudo-division repairs this by pre-multiplying the dividend by a power of the divisor's leading coefficient.
lc(B)m−n+1 A = QB + R, with deg R < deg B
Here m = deg A and n = deg B. The scaling factor is exactly what makes every quotient and remainder coefficient an element of the ring — and exactly what makes the coefficients grow.
Coefficient explosion is exponentialIterating pseudo-division to build a remainder sequence multiplies in a fresh power of a leading coefficient at every step. For inputs of degree around 10 with small coefficients, intermediate coefficients of dozens of digits are routine, and the final GCD may be 1. The work is entirely wasted, and the effect worsens sharply with degree.
Section 03Content, primitive part and Gauss's lemma
The content of a polynomial over a UFD is the GCD of its coefficients; the primitive part is the polynomial divided by its content. Gauss's lemma states that the product of primitive polynomials is primitive, from which the GCD splits cleanly:
gcd(A, B) = gcd(cont A, cont B) · gcd(pp A, pp B)
The content GCD is an ordinary integer GCD. The primitive part GCD is the hard half, and it is the only part the remainder sequence needs to handle. Removing content at every step keeps coefficients smaller but costs a GCD of all coefficients per step — the primitive remainder sequence, which trades one cost for another.