← All parts of this equation

Equation 9 · Part 11 · How Claude Code's Memory Actually Persists Across Sessions

Starting index or lower bound: i=1

Costn=1.25 c Tp+(n−1) (0.1 c Tp)+c∑i=1nTv,i\mathrm{Cost}_n = 1.25\,c\,T_p + (n-1)\,(0.1\,c\,T_p) + c\sum_{i=1}^{n} T_{v,i}
i=1i=1

What this part means

This label says where the repeated addition, multiplication, or accumulation starts. Read its value or condition together with the article’s description of the index.

Its job in the formula

i=1 appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.

The passage around this formula

The dollar cost of re-reading the same CLAUDE.md content every turn is close to solved. Anthropic’s prompt caching system lets a stable prefix — system prompt, memory files, tool definitions, anything identical from one request to the next — be written to a cache once and then reused. A cache write costs a documented 1.25 times the base price of an input token; a cache read, on every subsequent turn that reuses it, costs a documented one-tenth of that base price [ 5 ] . For a stable prefix of TpT_p tokens reused across n turns of a session, against a per-token base price c , the total cost of that prefix is Costn=1.25 c Tp+(n−1) (0.1 c Tp)+c∑i=1nTv,i\mathrm{Cost}_n = 1.25\,c\,T_p + (n-1)\,(0.1\,c\,T_p) + c\sum_{i=1}^{n} T_{v,i}. where the final sum covers each turn’s own variable content. Past…

Read this part in the article →

Learn the underlying idea

Σ adds a collection of terms. Π multiplies them. The lower and upper labels tell you which terms belong to the collection.

Open the illustrated sums and products: repeat an operation over an index guide →

Sources cited in the surrounding passage

These citations provide research context; check each source for the exact claim it supports.