# TAOCP 4.6.1 Division of Polynomials

> Study guide to TAOCP 4.6.1 Division of Polynomials. Polynomial arithmetic, especially division with remainder, and computing greatest common divisors of…

Updated October 20, 2026.

## Summary {#summary}

TAOCP 4.6.1 Division of Polynomials: Polynomial arithmetic, especially division with remainder, and computing greatest common divisors of polynomials, including variants that avoid fractions when coefficients are integers. Budget about 7 hours; do exercises 4.6-1, 4.6-4 and 4.6-5.

## Key facts {#key-facts}

- Week 85 of 145 on the cracked.guide path, in [TAOCP Vol 2: Seminumerical Algorithms](https://cracked.guide/taocp/volume-2).
- Time budget: about 7 hours.
- 31 exercises in the section, rated 10 to M40; the guide picks 8.
- Picked exercises with Knuth's triangle for recommended: 4.6-4, 4.6-5, 4.6.1-16 and 4.6.1-26.
- Before you start: 4.5.2 The Greatest Common Divisor and 4.3.1 Classical Algorithms.

## Week 85 goals {#objectives}

By the end of week 85 you can:

- Implement polynomial division with remainder over integers modulo a prime.
- Use polynomial division over GF(2) to compute a small CRC.
- Explain why fraction-free polynomial gcds must control coefficient growth.

## This week's steps {#steps}

- Read §4.6.1 Division of Polynomials: Implement polynomial division over integers mod a prime.
- Work the exercises (8 picked): Start with Ex 4.6-1, Ex 4.6-4, Ex 4.6-5; log what you solve below.
- Write down one thing you'd explain to someone: A few sentences in your own words in Your notes: the idea, why it works, an example. 30 words ticks this.

## Exercises {#exercises}

This section has 31 exercises, rated 10 to M40, and Knuth marks 5 of them with the triangle for recommended. Counts include the 5 exercises at the end of the 4.6 introduction (numbered 4.6-1 to 4.6-5) plus the 26 of 4.6.1. Implement polynomials over the integers mod p and over the integers, with division and gcd, and use these to test it.

Worth your time:

- 4.6-1 (rated 10): Polynomial arithmetic modulo 10. Shows where non-prime moduli cause trouble.
- 4.6-4 (rated 21, recommended): Multiply polynomials mod 2 with bitwise word operations.
- 4.6-5 (rated M21, recommended): Karatsuba for polynomials mod 2.
- 4.6.1-1 (rated 10): Pseudo-division by hand on integer polynomials.
- 4.6.1-2 (rated 15): A polynomial gcd modulo 7.
- 4.6.1-3 (rated M25): Extended Euclid for polynomials and the degrees of the coefficients.
- 4.6.1-16 (rated M22, recommended): A nonzero polynomial cannot vanish on too many grid points. The basis of randomized identity testing.
- 4.6.1-26 (rated M26, recommended): Best rational-function approximations from the polynomial Euclid algorithm. The stretch.

## Why it matters {#why}

Polynomials over finite fields power error-correcting codes, CRCs and cryptography. Polynomial gcd is a building block in computer algebra.

## Before you start {#before}

- 4.5.2 The Greatest Common Divisor
- 4.3.1 Classical Algorithms

## How to approach it {#approach}

Implement polynomial division over integers mod a prime. Then compute a CRC by hand as polynomial division over GF(2) to see a real use.

## Common traps {#traps}

- Coefficient blow-up when working over the integers. That is exactly what the fraction-free methods address.

## Links {#links}

- [Knuth's TAOCP page (editions, errata, MIX/MMIX)](https://www-cs-faculty.stanford.edu/~knuth/taocp.html)
- [Vol 2 errata (plain text, from Knuth)](https://www-cs-faculty.stanford.edu/~knuth/err2.textxt)
- [Wikipedia: Polynomial long division](https://en.wikipedia.org/wiki/Polynomial_long_division)
- [Wikipedia: Cyclic redundancy check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)

---

Source: https://cracked.guide/guide/knuth-w068-0
cracked.guide: A free, dated 145-week path to getting genuinely cracked at programming.
