Grade by GradeEssential student suppliesSign in
CC. Curricular Competencies · Curricular Competencies: Reasoning, Solving, Communicating and Connecting

Thinking Strategies: Towers, Halving Games and Doubling

BC PREC 12: thinking strategies BC PREC 12: puzzles and gamesAbout 60 minutes
Learning goals
  • I can find a winning strategy by solving smaller cases first and looking for a pattern.
  • I can generalize a pattern from a puzzle into a formula with exponents.
  • I can use halving and doubling to explain how many steps a strategy needs.

Words to know

strategy
A plan that tells you what to do at every step.
recursive pattern
A pattern where each term is found from the term before it.
generalize
To turn a pattern you noticed into a rule that works for every case.
geometric series
The sum of the terms of a geometric sequence, such as 1 + 2 + 4 + 8.

Puzzles hide exponents

Pre-calculus 12 asks you to develop thinking strategies to solve puzzles and play games. Two strategies matter most in this lesson:

  • Solve smaller cases first. If 64 disks is too many, try 1, 2 and 3 disks, then look for a pattern.
  • Generalize and extend. Turn the pattern into a formula, then use it for cases you could never try by hand.

Many puzzles in this course grow by doubling or shrink by halving. That is exactly what exponential functions, geometric series and logarithms describe.

Start pegSpare pegGoal pegMove all disks to the goal peg. Never put a big disk on a small one.
The Tower of Hanoi with 3 disks. Move one disk at a time.
Worked example

Example 1: Solve the Tower of Hanoi

What is the fewest number of moves needed to move n disks to the goal peg?

  1. Small cases. 1 disk: 1 move. 2 disks: move the small disk to the spare peg, the big disk to the goal, then the small disk on top: 3 moves.
  2. 3 disks. Move the top 2 disks to the spare peg (3 moves), move the biggest disk (1 move), then move the 2 disks back on top (3 moves): 3 + 1 + 3 = 7 moves.
  3. See the strategy. To move n disks, move n − 1 disks out of the way, move the biggest disk, then move the n − 1 disks back. So M(n) = 2M(n − 1) + 1.
  4. Look for a pattern. 1, 3, 7, 15, 31, ... Each is one less than a power of 2: 2¹ − 1, 2² − 1, 2³ − 1, ...
  5. Generalize. M(n) = 2ⁿ − 1. Check with the rule: 2(2ⁿ⁻¹ − 1) + 1 = 2ⁿ − 2 + 1 = 2ⁿ − 1. It works.

M(n) = 2ⁿ − 1. For 10 disks that is 2¹⁰ − 1 = 1023 moves.

Disks nFewest moves M(n)2ⁿ
112
234
378
41516
53132
1010231024
The moves are always one less than a power of 2.
Worked example

Example 2: The halving game

Your friend picks a whole number from 1 to 1000. You may ask only yes-or-no questions. What strategy finds the number in the fewest questions, and how many questions does it need?

  1. Strategy: always ask a question that cuts the possible numbers in half, such as Is it more than 500?
  2. After 1 question about 500 numbers are left, after 2 about 250, and so on. After k questions about 1000 ÷ 2ᵏ numbers are left.
  3. You are sure of the number when 2ᵏ ≥ 1000.
  4. 2⁹ = 512 is too small and 2¹⁰ = 1024 is enough.
  5. With logarithms: k ≥ log₂ 1000 = log 1000 ÷ log 2 ≈ 9.97, so k = 10.

Halve every time: 10 questions are always enough for 1 to 1000.

Worked example

Example 3: Folding paper

A sheet of paper is about 0.1 mm thick. Each fold doubles the thickness. In theory, how many folds would make the stack at least 1 km thick?

  1. Thickness after n folds: 0.1 × 2ⁿ mm.
  2. 1 km = 1 000 000 mm, so we need 0.1 × 2ⁿ ≥ 1 000 000, or 2ⁿ ≥ 10 000 000.
  3. n ≥ log 10 000 000 ÷ log 2 = 7 ÷ 0.30103 ≈ 23.25.
  4. Check: 2²³ × 0.1 = 838 860.8 mm (about 839 m, too short). 2²⁴ × 0.1 = 1 677 721.6 mm (about 1.68 km).

24 folds, in theory. (In real life you can't fold paper anywhere near that many times!)

When a puzzle feels too big

Shrink it. Solve the 1-, 2- and 3-piece versions, record the results in a table, and ask how does each answer come from the one before? That question often turns into a recursive rule, and the rule into a formula.

Hands-on activity

Play the halving game

Play Guess my number with a partner for numbers from 1 to 100, then 1 to 1000.

  1. Before you play, predict the most questions you will ever need (use powers of 2).
  2. Play five rounds each and record how many questions you used.
  3. Did anyone beat the prediction? Could anyone ever need more questions with the halving strategy? Explain.
  4. Extend: how many questions for 1 to 1 000 000?
Just for fun

Odd fact: the Tower of Hanoi was invented by the French mathematician Édouard Lucas in 1883. He sold it with a made-up legend about monks moving 64 gold disks. At one move per second, 2⁶⁴ − 1 moves would take about 585 billion years.

Your turn

1

How many moves for a 6-disk Tower of Hanoi?

2

How many yes-or-no questions are always enough to find a number from 1 to 500?

3

How many questions for 1 to 100?

4

A legend says one grain of rice goes on the first square of a chessboard, 2 on the second, 4 on the third, and so on. How many grains are on the first row of 8 squares?

5

Use the geometric series formula Sₙ = a(rⁿ − 1)/(r − 1) to find 1 + 3 + 9 + ... + 3⁵.

6

A 20-disk tower is moved at one move per second without stopping. About how many days does it take?

More practice

1

Show that M(n) = 2ⁿ − 1 fits the rule M(n) = 2M(n − 1) + 1.

2

How many folds of 0.1 mm paper would make a stack at least 1 m thick, in theory?

3

If you are allowed 12 yes-or-no questions, what is the largest range 1 to N you can always handle?

4

How many grains of rice are on the whole chessboard (64 squares) in the rice legend?

5

Extend the puzzle: in a version where each move takes 2 seconds, how long does a 7-disk tower take?

Check your understanding

Quiz

1.

What is the fewest number of moves for a 7-disk Tower of Hanoi?

2.

How many yes-or-no questions are always enough for a number from 1 to 2000?

3.

Which sum equals 2ⁿ − 1?

4.

Which strategy best describes how the Tower of Hanoi formula was found?

5.

Paper 0.1 mm thick is folded 10 times (in theory). How thick is the stack?

For parents and teachers

Your teen is learning to solve puzzles by trying small cases, spotting a pattern and turning it into a formula with exponents.

How to help: play Guess my number together and ask your teen to predict the worst case before you start. Ask how did you know that? after each puzzle.

Common mistakes: stopping at a guessed pattern without checking it against the rule; mixing up 2ⁿ and 2ⁿ − 1; rounding a log answer down instead of up (if you need at least 9.97 questions, you need 10).