ArticleslgStudy

mathematics

Wheat and chessboard problem

Wheat and chessboard problem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Wheat and chessboard problem rather than just read about it. In short: The wheat and chessboard problem (sometimes expressed as the rice and chessboard problem) is a mathematical problem expressed in textual form as: If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square, two on the second, four on the third, and so on (doubling the number of grains on each subsequent square), how many grains of wheat would be on the chessboard at…

Wheat and chessboard problem — main illustration
Wheat and chessboard problem — illustration

Key takeaways

  • Wheat and chessboard problem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Wheat and chessboard problem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Wheat and chessboard problem from memory before moving on to harder problems.

Reference excerpt

The wheat and chessboard problem (sometimes expressed as the rice and chessboard problem) is a mathematical problem expressed in textual form as:

If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square, two on the second, four on the third, and so on (doubling the number of grains on each subsequent square), how many grains of wheat would be on the chessboard at the finish? The problem may be solved using simple calculation. With 64 squares on a chessboard, if the number of grains doubles on successive squares, then the sum of grains on all 64 squares is: 1 + 2 + 4 + 8 + ... and so forth for the 64 squares. The total number of grains can be shown to be 264 − 1 or 18,446,744,073,709,551,615 (eighteen quintillion, four hundred forty-six quadrillion, seven hundred forty-four trillion, seventy-three billion, seven hundred nine million, five hundred fifty-one thousand, six hundred and fifteen). This exercise can be used to demonstrate how quickly exponential sequences grow, as well as to introduce exponents, zero power, capital-sigma notation, and geometric series. Updated for modern times using pennies and a hypothetical question such as "Would you rather have a million dollars or a penny on day one, doubled every day until day 30?", the formula has been used to explain compound interest. (Doubling would yield over 536 million pennies, or over 5 million dollars: 229 = 536,870,912.)

Origins The problem appears in different stories about the invention of chess. One of them includes the geometric progression problem. The story is first known to have been recorded in 1256 by Ibn Khallikan. Another version has the inventor of chess (in some tellings Sessa, an ancient Indian minister) request his ruler give him wheat according to the wheat and chessboard problem. The ruler laughs it off as a meager prize for a brilliant invention, only to have court treasurers report the unexpectedly huge number of wheat grains would outstrip the ruler's resources. Versions differ as to whether the inventor becomes a high-ranking advisor or is executed. Macdonnell also investigates the earlier development of the theme.

[According to al-Masudi's early history of India], shatranj, or chess was invented under an Indian king, who expressed his preference for this game over backgammon. [...] The Indians, he adds, also calculated an arithmetical progression with the squares of the chessboard. [...] The early fondness of the Indians for enormous calculations is well known to students of their mathematics, and is exemplified in the writings of the great astronomer Āryabaṭha [sic] (born 476 A.D.). [...] An additional argument for the Indian origin of this calculation is supplied by the Arabic name for the square of the chessboard, (بيت, "beit"), 'house'. [...] For this has doubtless a historical connection with its Indian designation koṣṭhāgāra, 'store-house', 'granary' [...].

Solutions

The simple, brute-force solution is just to manually double and add each step of the series:

T 64 {\displaystyle T_{64}} = 1 + 2 + 4 + ..... + 9,223,372,036,854,775,808 = 18,446,744,073,709,551,615 where T 64 {\displaystyle T_{64}} is the total number of grains. The series may be expressed using exponents:

T 64 = 2 0 + 2 1 + 2 2 + ⋯ + 2 63 {\displaystyle T_{64}=2^{0}+2^{1}+2^{2}+\cdots +2^{63}}

and, represented with capital-sigma notation as:

∑ k = 0 63 2 k . {\displaystyle \sum _{k=0}^{63}2^{k}.}

It can also be solved much more easily using:

T 64 = 2 64 − 1. {\displaystyle T_{64}=2^{64}-1.}

A proof of which is:

s = 2 0 + 2 1 + 2 2 + ⋯ + 2 63 . {\displaystyle s=2^{0}+2^{1}+2^{2}+\cdots +2^{63}.}

Multiply each side by 2:

2 s = 2 1 + 2 2 + 2 3 + ⋯ + 2 63 + 2 64 . {\displaystyle 2s=2^{1}+2^{2}+2^{3}+\cdots +2^{63}+2^{64}.}

Subtract original series from each side:

… excerpt ends here. Continue reading the full article.

Illustrations

Wheat and chessboard problem: By the time that the fifth square is reached on the chessboard, the board contains a total of 31, or 25 − 1, grains of wheat.
By the time that the fifth square is reached on the chessboard, the board contains a total of 31, or 25 − 1, grains of wheat.
Wheat and chessboard problem: The sum of powers of two from zero up to a given positive integer power is 1 less than the next power of two (i.e. the next Mersenne number)
The sum of powers of two from zero up to a given positive integer power is 1 less than the next power of two (i.e. the next Mersenne number)
Wheat and chessboard problem: An illustration of Ray Kurzweil's second half of the chessboard principle. The letters are abbreviations for the SI metric prefixes.
An illustration of Ray Kurzweil's second half of the chessboard principle. The letters are abbreviations for the SI metric prefixes.

Worked examples

Example 1 — a first encounter with Wheat and chessboard problem

Start with the simplest possible case. Write down what Wheat and chessboard problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Wheat and chessboard problem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Wheat and chessboard problem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Wheat and chessboard problem

In research
Wheat and chessboard problem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Wheat and chessboard problem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Wheat and chessboard problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Exponentials, Mathematical chess problems, Wheat in culture, so understanding it makes those chapters shorter.
In everyday life
Look for Wheat and chessboard problem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Wheat and chessboard problem” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Wheat and chessboard problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Wheat and chessboard problem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Wheat and chessboard problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Wheat and chessboard problem in simple terms?

The wheat and chessboard problem (sometimes expressed as the rice and chessboard problem) is a mathematical problem expressed in textual form as: If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square, two on the second, four on the third, and…

Why does Wheat and chessboard problem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Wheat and chessboard problem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Wheat and chessboard problem.

Tags

  • Exponentials
  • Mathematical chess problems
  • Wheat in culture

Keep exploring