# TAOCP 3.2.1 The Linear Congruential Method

> Week 65 of the cracked.guide path: Knuth 3.2.1 The Linear Congruential Method; LeetCode: 2 NeetCode 150 problems.

Week 65 of 145 on cracked.guide, in TAOCP Vol 2: Seminumerical Algorithms: TAOCP 3.2.1 The Linear Congruential Method and 2 NeetCode 150 problems. The reading guides budget about 8 hours.

## Key facts {#key-facts}

- [TAOCP 3.2.1 The Linear Congruential Method](https://cracked.guide/guide/knuth-w048-1): The classic generator X_{n+1} = (aX_n + c) mod m.
- Phase: TAOCP Vol 2: Seminumerical Algorithms, weeks 64 to 89.
- Updated October 20, 2026.

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

- Compute the next values of a small linear congruential sequence by hand.
- Explain the conditions on a, c and m that give full period.
- Recognize why low bits of a power-of-two LCG are weak.

## This week's tasks {#tasks}

- [TAOCP 3.2.1 The Linear Congruential Method](https://cracked.guide/guide/knuth-w048-1): about 8 hours
- LeetCode: 2 NeetCode 150 problems

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

---

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