A 32 metre rope is cut in half, keeping one half, again and again. How many cuts until 1 metre is left?
1a worked example
Halve the rope cut by cut, and count the cuts.
After cut 1, 16 metres are left. Then 8, 4, 2 and 1.
That is 5 halvings, so 5 cuts.
, so . The count of halvings is the log.
Undo it. Doubling 1 five times makes 32, so halving 32 five times makes 1.
32 metres halved to 16, 8, 4, 2 and 1, five cuts.
2how it works
For a power of 2, , halving down to 1 takes halvings.
40 halved, rounding down, to 20, 10, 5, 2 and 1. That is 5 halvings, the same as 32, and lies between 5 and 6.
For other numbers, halve and round down with a floor (lesson 6.3) each time. 40 goes to 20, 10, 5, then , then 1, which is 5 halvings.
40 sits between and . Halving all three keeps it between the next two powers. 20 lies between 16 and 32, 10 between 8 and 16, and 5 between 4 and 8. Then , where means "is less than", and the floor, 2, is at least 2 but below 4. So it reaches 1 when 32 does, after 5 halvings.
In general, if , halving with floors takes steps, and .
3in symbols
Doubling adds one halving, as (lesson 6.2). Making 64 times bigger is six doublings, as , so it adds 6 halvings: 32 takes 5, and takes .
A sorted list is in order, smallest first. In a sorted list, one look at the item halfway along tells which half holds the one you want, and the other half goes. 16 items take 4 looks, as 16 halves to 8, 4, 2 and 1, so halving each look takes about looks. Checking items one by one may need all .
list made this many times longer
search steps added
2
1
32
5
1024
10
Steps grow by the log of the factor, never by the factor.
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 stack of paper is halved again and again, and after 9 halvings 1 sheet is left. Each halving was exact.
worked answer
Undo the halvings by doubling 1 nine times. That is .
, so the stack had 512 sheets, and .
Check it another way: 512 halves to 256, 128, 64, 32, 16, 8, 4, 2, 1, which is 9 halvings.
2exercise 2
Halve 100 again and again, rounding down each time.
worked answer
100 goes to 50, then 25.
, then 6, then 3.
. That is 6 halvings.
Check it another way: , so .
3exercise 3
Halving one pile down to 1 takes 9 steps, and a second pile takes 13. Both are powers of 2.
worked answer
extra halvings.
Each one doubles the pile, so the second pile is times bigger.
Check it another way: and , and .
4exercise 4
Some searches rule out half each step; some cannot.
worked answer
Guess halfway, such as 32. Each answer says which side the number is on, so that half goes.
In a messy drawer or a jar, looking in one spot says nothing about the rest.
An unsorted list may hide the item anywhere, so all 64 may have to be looked at.
Check it another way: Only the higher-or-lower answers let one guess drop a whole side.