Skip to content

doubling

foundations

the puzzle

I think of a whole number from 1 to 32. You ask questions I answer yes or no, such as "Is it more than 16?". How few questions always find it?

a worked example

Count how many numbers a given number of questions can find one among.

  1. One question splits the numbers into a yes group and a no group. With 2 numbers, each group holds one, so one question finds a number among 2.
  2. A second question halves the group that is left. So two questions find a number among 2×2=42 \times 2 = 4.
  3. Each question doubles the count. Three questions find a number among 23=82^3 = 8, and five among 25=322^5 = 32.
  4. So 5 questions always find a number from 1 to 32. Four cannot, as they find a number among only 16.
questionsfinds one amongas a power
12212^1
24222^2
38232^3
416242^4
532252^5
Each row's count is twice the row above.

how it works

A yes or no is a dial with 2 symbols, like lesson 3.1's lock with only 2 on each dial. kk yes or no answers give 2k2^k settings, so 2 is the base whenever each step is a choice of two.

numbers leftanswers still needed
646
325
164
83
42
21
10
Each halving of the numbers left takes one answer, and 64 needs 6, the exponent in 64=2664 = 2^6.

Run it backwards. A question like the puzzle's halves what is left, so from 64 numbers it takes 6 answers to reach 1: 64, 32, 16, 8, 4, 2, 1. That is 6 because 64=2664 = 2^6.

Doubling on from 64 gives 128, 256, 512, 1024, so ten questions find a number among 210=10242^{10} = 1024, a little over a thousand. Twenty find one among 220=210×210=1024×1024=1 048 5762^{20} = 2^{10} \times 2^{10} = 1024 \times 1024 = 1\,048\,576, over a million.

in symbols

2k2^k is kk doublings of 1: 23=1×2×2×2=82^3 = 1 \times 2 \times 2 \times 2 = 8.

Numbered from 0, the 2k2^k settings of kk two-way choices run from 0 to 2k−12^k - 1. Starting at 0 instead of 1 moves every number down by 1, so the 8 patterns of three switches are numbered 0 to 7.

210=10242^{10} = 1024 is about 10310^3, and 220=210×2102^{20} = 2^{10} \times 2^{10} is about 10610^6, some 5% more.

kk2k2^k
24
38
416
532
664
7128
8256
9512
101024
Each row doubles the one above, from 222^2 to 2102^{10}.

your turn

Work each one out. Where there is a box, type your answer and check it. Each exercise's worked answer opens under it.

exercise 1

A panel of switches, each up or down, must show at least 20 different patterns.

A number, like 13, 9.5 or 19/2.

A number, like 13, 9.5 or 19/2.

worked answer
  1. Four switches give 24=162^4 = 16 patterns, too few. Five give 25=322^5 = 32, enough.
  2. Numbered from 0, the 32 patterns run 0 to 32−1=3132 - 1 = 31.

Check it another way: Four switches give 16 patterns, numbered 0 to 15, and 15 is 16−116 - 1 in the same way.

exercise 2

Without multiplying it out, is 2132^{13} more or less than 10 thousand?

2132^{13} is:

A number, like 13, 9.5 or 19/2.

worked answer
  1. 213=210×232^{13} = 2^{10} \times 2^3, as 10+3=1310 + 3 = 13.
  2. 210=10242^{10} = 1024 is a little over a thousand, and 23=82^3 = 8, so 2132^{13} is a little over 8 thousand.
  3. 210=10242^{10} = 1024 is under 1100, so 2132^{13} is under 8×1100=88008 \times 1100 = 8800, less than 10 thousand.

Check it another way: Worked out, 213=1024×8=81922^{13} = 1024 \times 8 = 8192.

exercise 3

A stack of 128 cards is cut into two equal piles and one pile is put away, again and again. How many cuts until one card is left?

A number, like 13, 9.5 or 19/2.

worked answer
  1. 128=27128 = 2^7, from the table of powers of 2.
  2. Each cut halves the stack. 128 cards, then 64, 32, 16, 8, 4, 2 and 1 after the 7th cut.

Check it another way: Seven halvings take 27=1282^7 = 128 down to 20=12^0 = 1.

exercise 4

Fill the gaps in the doubling list 32, ?, 128, ?, 512.

Numbers in order with commas between them, like 3, 6, 9.

worked answer
  1. Each number is twice the one before. 32×2=6432 \times 2 = 64.
  2. 128×2=256128 \times 2 = 256, and 256×2=512256 \times 2 = 512, as the list says.

Check it another way: 64=2664 = 2^6 and 256=28256 = 2^8, between 25=322^5 = 32, 27=1282^7 = 128 and 29=5122^9 = 512.