The handbook
The handbook is a companion to TAOCP. It assumes that you have the book. It teaches the prerequisites, explains each section, and gives a solution for every exercise in its own words.
The source is in tamnd/taocp-handbook. Each release has the volumes as PDF and EPUB. A volume that has no file in the latest release shows no download link.
The P volumes teach the prerequisites. The C volumes are a reading guide to each part of the book. The X volumes hold a hint, a solution, a check and a link to the Lean proof for each exercise. Every exercise has its own page under /ex/.
The downloads are from the release v0.0.7 of 2026-12-01. The pages here are built from the main branch of the handbook repository, so they can be newer than the files.
Volume P0. Guide
How to read TAOCP, the handbook and Lean.
Level: guide. About 25,503 words.
No PDF or EPUB of this volume is in the latest release.
6 chapters
Volume P2. Concrete mathematics
Sums, integer functions, binomial coefficients and special numbers, for the reader of TAOCP Section 1.2.
Level: prereq. Needs P1. About 107,607 words.
No PDF or EPUB of this volume is in the latest release.
9 chapters
- Sums and their manipulation draft
- The perturbation method and recurrences draft
- Finite calculus draft
- Floors, ceilings, logarithms and mod draft
- Divisibility, primes, gcd and congruences draft
- Binomial coefficients draft
- Binomial identities draft
- Stirling numbers and Eulerian numbers draft
- Solutions draft
Volume C1. Basic concepts
A companion to Chapter 1 of Volume 1.
Level: core. Needs P1, P2, P7. About 211,966 words.
No PDF or EPUB of this volume is in the latest release.
27 chapters
- Section 1.1. Algorithms draft
- Section 1.2. Mathematical preliminaries draft
- Section 1.2.1. Mathematical induction draft
- Section 1.2.2. Numbers, powers and logarithms draft
- Section 1.2.3. Sums and products draft
- Section 1.2.4. Integer functions and elementary number theory draft
- Section 1.2.5. Permutations and factorials draft
- Section 1.2.6. Binomial coefficients draft
- Section 1.2.7. Harmonic numbers draft
- Section 1.2.8. Fibonacci numbers draft
- Section 1.2.9. Generating functions draft
- Section 1.2.10. Analysis of an algorithm draft
- Section 1.2.11.1. The O-notation draft
- Section 1.2.11.2. Euler's summation formula draft
- Section 1.2.11.3. Some asymptotic calculations draft
- Section 1.3. Why a machine language draft
- Section 1.3.1. Description of MIX draft
- Section 1.3.2. The MIX assembly language draft
- Section 1.3.3. Applications to permutations draft
- Section 1.4. Some fundamental programming techniques draft
- Section 1.4.1. Subroutines draft
- Section 1.4.2. Coroutines draft
- Section 1.4.3. Interpretive routines draft
- Section 1.4.3.1. A MIX simulator draft
- Section 1.4.3.2. Trace routines draft
- Section 1.4.4. Input and output draft
- Section 1.4.5. History and bibliography draft
Volume X1. Solutions to Volume 1
Hints, full solutions, checks and the Lean link for each exercise of Volume 1.
Level: core. Needs C1, C2.
No PDF or EPUB of this volume is in the latest release.
499 solutions are written. Each is on the page of its exercise. The sections.
The source of this page. Markdown. Something is wrong? Report it.