There is an old story, told in slightly different versions across India, Persia, and medieval Europe. A king asks a wise man — sometimes a court astronomer, sometimes the inventor of chess — to name any reward he likes for his cleverness. The wise man, with a smile, asks for something apparently modest.

"Only grains of rice, Your Majesty. Place one grain on the first square of a chessboard. Two on the second. Four on the third. Eight on the fourth. Keep doubling. On each square, twice as many grains as on the one before. When the board is filled, give me whatever rice has accumulated."

The king, amused, agrees. The board has 64 squares. The king expects a modest sack of rice.

The answer is that the kingdom's entire granary would not contain it. The answer, in fact, is that the rice owed to the wise man dwarfs all the rice ever harvested in human history.

The picture

Chessboard rice doubling shown as exponent axis versus log of grainsA plot whose horizontal axis labels the chessboard square number from one to sixty-four, and whose vertical axis shows the base-two logarithm of the grains on that square. The curve is a diagonal line, because log of two to the k-minus-one is k minus one. A draggable point lets the reader pick a square number and see the number of grains on that square as a power of two. square # log₂(grains) 1 20 40 64 20 40 60 ↔ drag to change square number
The number of grains on each square, plotted on a log scale. The curve is a straight line — in log coordinates, exponential growth looks linear. At square $1$ the grain count is $1$. At square $32$, about $2$ billion. At square $64$, about $9 \times 10^{18}$ — more grains than have ever existed on Earth.

Running the numbers

Square 1 has 2^0 = 1 grain. Square 2 has 2^1 = 2 grains. Square 3 has 2^2 = 4 grains. In general, square k has 2^{k-1} grains.

A handful of rice in India has roughly 50 grains. Let's walk up the chessboard and see where we stand.

And that is just the grains on the final square. The total rice on all 64 squares is

1 + 2 + 4 + \dots + 2^{63} = 2^{64} - 1 \approx 1.8 \times 10^{19} \text{ grains}.

In tonnes, about 460 billion. To put that in context, annual global rice production is about 500 million tonnes. At that rate, producing the promised reward would take roughly a thousand years of humanity's entire rice crop.

Why the total is 2^{64} - 1: the sum 1 + 2 + 4 + \cdots + 2^{n-1} is a geometric series. A neat way to see its value: the next power, 2^n, equals 1 + 1 + 2 + 4 + \cdots + 2^{n-1} (binary 100\ldots0 equals one more than 11\ldots1 with n ones). So 2^n = 1 + (\text{sum}), giving \text{sum} = 2^n - 1. In our case, 2^{64} - 1.

What the story is really about

The king was not stingy. He was tricked by a mathematical intuition that all humans share: we feel increments as additive, so we unconsciously picture the chessboard as 64 squares with "some more rice" on each. Our intuition wants to say "maybe fifty times the rice on the first square, or a hundred times — a manageable amount."

What our intuition misses is the compounding: each doubling is a whole new base from which the next doubling operates. By square 10, you have 512 grains — a small bowl. Fine. But the first square contributed 1 grain; the tenth contributes 512. The ratio is 512 : 1, and the next doubling is no longer 1 \to 2 but 512 \to 1024. The rice on each new square always matches the total rice on all the previous squares combined (almost exactly — off by one grain).

By square 64, the increment from square 63 to square 64 is itself more than all the rice on squares 1 through 63 put together. This is the geometric hallmark of exponential growth: the next step is as big as everything that came before. No linear or polynomial rule can keep up. Eventually, exponential growth outpaces anything that is not itself exponential.

Where this shows up

The chessboard is a parable, not an actual event, but the same geometry governs several real situations that every student should recognise.

In every one of these cases, the chessboard story is the right thing to keep in mind. The first few squares are unimpressive. The late squares are catastrophic. The gap between intuition and reality is the story's reward.

The formula

The parable can be stated in one line of exponent law, which is the reason it lives in this chapter:

\text{grains on square } k = 2^{k-1}.
\text{total grains through square } k = 2^{k} - 1.

Every time you meet a doubling process — in biology, economics, computing — the pattern 2^{k-1} is the skeleton. The chessboard is just the clearest picture of it.

Carry-away

Related: Exponents and Powers · Exponent Slider: Watch 2^x Sweep Through 1/8, 1/4, 1/2, 1, 2, 4, 8 · Percentages and Ratios · Number Systems