The maths — tokens and attention.
The little bit of arithmetic under Lesson 2 — why a window fills on schedule, and why a longer one costs so much more than a short one.
None of this is required to go on. It is the arithmetic Lesson 2 leaned on, set down in one place: tokens add up, history grows in a straight line, and — the interesting one — the cost of paying attention grows with the square of the length.
The first two are just addition. The third is the one worth your time: it explains why a long window is expensive to run, not merely large.
Start with that third idea — drag the context length and watch the attention cost race ahead of the text. Doubling the words does not double the work.
The formulas, in one place.
Each is written the way you'd meet it in a textbook, with a plain-language line above and where it turned up in this lesson below.
Hmax = W − S − M − R — room left for history
H(t) ≈ k · t — when turns are equal-sized
1 + 2 + … + n = n(n+1)/2 — that exact count
attention(2n) / attention(n) ≈ 4 — 2× the text, 4× the attention work
Where to take it next.
Each idea above is a doorway. If you want to keep going, these are the next words to search — each is the natural step up from what you just saw:
None of these are needed to finish the course — but each one turns “why does a longer window cost so much?” into “here's how modern models stretch it anyway.” That trail, from a simple sum to the cost of attention, is most of what separates a small context from a million-token one.