# TAOCP 1.2.4 Integer Functions and Elementary Number Theory

> Week 33 of the cracked.guide path: Knuth 1.2.4 Integer Functions and Elementary Number Theory; LeetCode: 2 NeetCode 150 problems.

Week 33 of 145 on cracked.guide, in TAOCP Vol 1: Fundamental Algorithms: TAOCP 1.2.4 Integer Functions and Elementary Number Theory and 2 NeetCode 150 problems. The reading guides budget about 7 hours.

## Key facts {#key-facts}

- [TAOCP 1.2.4 Integer Functions and Elementary Number Theory](https://cracked.guide/guide/knuth-w020-0): Floor, ceiling, the mod operation defined for any real numbers, and the basics of congruences: divisibility, primes, relatively prime numbers, and Fermat's theorem.
- Phase: TAOCP Vol 1: Fundamental Algorithms, weeks 29 to 63.
- Updated October 20, 2026.

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

- Compute floors, ceilings and x mod y with negative arguments.
- Explain why Knuth's mod differs from C's % operator on negatives.
- Use congruences and Fermat's theorem on small examples.

## This week's tasks {#tasks}

- [TAOCP 1.2.4 Integer Functions and Elementary Number Theory](https://cracked.guide/guide/knuth-w020-0): about 7 hours
- LeetCode: 2 NeetCode 150 problems

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

---

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