# TAOCP 4.5.1 and 4.5.2

> Week 82 of the cracked.guide path: Knuth 4.5.1 Fractions; Knuth 4.5.2 The Greatest Common Divisor.

Week 82 of 145 on cracked.guide, in TAOCP Vol 2: Seminumerical Algorithms: TAOCP 4.5.1 Fractions and TAOCP 4.5.2 The Greatest Common Divisor. The reading guides budget about 10 hours.

## Key facts {#key-facts}

- [TAOCP 4.5.1 Fractions](https://cracked.guide/guide/knuth-w065-0): Exact rational arithmetic: keeping fractions in lowest terms with gcds, doing add and multiply so intermediate numbers stay small, and fixed-slash and floating-slash representations that store a…
- [TAOCP 4.5.2 The Greatest Common Divisor](https://cracked.guide/guide/knuth-w065-1): Euclid again, now in depth: the extended algorithm for finding coefficients, the binary gcd algorithm that uses only shifts and subtraction, and gcd for multiple-precision numbers.
- Phase: TAOCP Vol 2: Seminumerical Algorithms, weeks 64 to 89.
- Updated October 20, 2026.

## By the end of this week you can {#objectives}

- Use gcds of partial terms to add and multiply fractions without overflow.
- Implement Euclid's, binary and extended gcd algorithms.
- Compute modular inverses from extended Euclid's coefficients.

## This week's tasks {#tasks}

- [TAOCP 4.5.1 Fractions](https://cracked.guide/guide/knuth-w065-0): about 3 hours
- [TAOCP 4.5.2 The Greatest Common Divisor](https://cracked.guide/guide/knuth-w065-1): about 7 hours

Previous: [Week 81](https://cracked.guide/curriculum/week/81) · Next: [Week 83](https://cracked.guide/curriculum/week/83)

---

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