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.
You don't need any of this to keep going — if maths isn't your thing, skip ahead. But Lesson 2 quietly leaned on a few simple ideas, and they're worth seeing together: tokens add up, the take 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 slowing down for: it's where the real cost of a long window comes from — the part the lesson only hinted at.
Start with that third idea — drag the context length and watch the attention cost race ahead of the notes. Doubling the notes doesn't 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 the take
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 notes, 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 turns "why is the window fixed?" 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 short context from a million-token one.