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?
1a worked example
Count how many numbers a given number of questions can find one among.
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.
A second question halves the group that is left. So two questions find a number among .
Each question doubles the count. Three questions find a number among , and five among .
So 5 questions always find a number from 1 to 32. Four cannot, as they find a number among only 16.
questions
finds one among
as a power
1
2
2
4
3
8
4
16
5
32
Each row's count is twice the row above.
2how it works
A yes or no is a dial with 2 symbols, like lesson 3.1's lock with only 2 on each dial. yes or no answers give settings, so 2 is the base whenever each step is a choice of two.
numbers left
answers still needed
64
6
32
5
16
4
8
3
4
2
2
1
1
0
Each halving of the numbers left takes one answer, and 64 needs 6, the exponent in .
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 .
Doubling on from 64 gives 128, 256, 512, 1024, so ten questions find a number among , a little over a thousand. Twenty find one among , over a million.
3in symbols
is doublings of 1: .
Numbered from 0, the settings of two-way choices run from 0 to . Starting at 0 instead of 1 moves every number down by 1, so the 8 patterns of three switches are numbered 0 to 7.
is about , and is about , some 5% more.
2
4
3
8
4
16
5
32
6
64
7
128
8
256
9
512
10
1024
Each row doubles the one above, from to .
4your turn
Work each one out. Where there is a box, type your answer and check it. Each exercise's worked answer opens under it.
1exercise 1
A panel of switches, each up or down, must show at least 20 different patterns.
worked answer
Four switches give patterns, too few. Five give , enough.
Numbered from 0, the 32 patterns run 0 to .
Check it another way: Four switches give 16 patterns, numbered 0 to 15, and 15 is in the same way.
2exercise 2
Without multiplying it out, is more or less than 10 thousand?
worked answer
, as .
is a little over a thousand, and , so is a little over 8 thousand.
is under 1100, so is under , less than 10 thousand.
Check it another way: Worked out, .
3exercise 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?
worked answer
, from the table of powers of 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 down to .
4exercise 4
Fill the gaps in the doubling list 32, ?, 128, ?, 512.