taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

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
  1. What TAOCP is, its volumes and fascicles, and which printing to use draft
  2. How to read an exercise: the ratings and the markers draft
  3. How to use the handbook: paths, hints and status lines draft
  4. Lean for readers draft
  5. The map and the site draft
  6. The table of black boxes and the table of errata draft

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
  1. Sums and their manipulation draft
  2. The perturbation method and recurrences draft
  3. Finite calculus draft
  4. Floors, ceilings, logarithms and mod draft
  5. Divisibility, primes, gcd and congruences draft
  6. Binomial coefficients draft
  7. Binomial identities draft
  8. Stirling numbers and Eulerian numbers draft
  9. 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
  1. Section 1.1. Algorithms draft
  2. Section 1.2. Mathematical preliminaries draft
  3. Section 1.2.1. Mathematical induction draft
  4. Section 1.2.2. Numbers, powers and logarithms draft
  5. Section 1.2.3. Sums and products draft
  6. Section 1.2.4. Integer functions and elementary number theory draft
  7. Section 1.2.5. Permutations and factorials draft
  8. Section 1.2.6. Binomial coefficients draft
  9. Section 1.2.7. Harmonic numbers draft
  10. Section 1.2.8. Fibonacci numbers draft
  11. Section 1.2.9. Generating functions draft
  12. Section 1.2.10. Analysis of an algorithm draft
  13. Section 1.2.11.1. The O-notation draft
  14. Section 1.2.11.2. Euler's summation formula draft
  15. Section 1.2.11.3. Some asymptotic calculations draft
  16. Section 1.3. Why a machine language draft
  17. Section 1.3.1. Description of MIX draft
  18. Section 1.3.2. The MIX assembly language draft
  19. Section 1.3.3. Applications to permutations draft
  20. Section 1.4. Some fundamental programming techniques draft
  21. Section 1.4.1. Subroutines draft
  22. Section 1.4.2. Coroutines draft
  23. Section 1.4.3. Interpretive routines draft
  24. Section 1.4.3.1. A MIX simulator draft
  25. Section 1.4.3.2. Trace routines draft
  26. Section 1.4.4. Input and output draft
  27. 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.