Tear a sheet of paper in half, stack the halves, and tear the stack in half again. One sheet becomes 2 pieces, then 4, then 8. How many tears make 2048 pieces?
1a worked example
Count the tears by counting the times 2 multiplies.
Each tear doubles the pile, so after tears there are pieces.
The puzzle gives the result, 2048, and asks for . Doubling from 1 runs 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, which is 11 doublings.
So , and 11 tears make 2048 pieces.
The number 11 has a name. It is the logarithm, or log, of 2048 to base 2, written , with the base 2 written small and low.
Powers of 2 from 1 to 32, each above its log, the count of doublings from 1.
2how it works
gives the result; gives the exponent.
power
log
2
11
2048
10
4
10000
7
2
49
6
1
6
4
0
1
Each row says one fact twice. The log is always the exponent, .
In general, and are one fact. The log is the exponent . When is a whole power of , counts how many times multiplies, from 1, to reach .
The base need not be 2. , as , and , as .
3in symbols
Take a base above 1, the bases algorithms use (a base of 1 is no use, as 1 to any power stays 1). Then , as (lesson 3.4), and , as .
An exponent below 0 makes a fraction, so a fraction can have a log: , as . On the line, each step left halves and takes 1 off the log.
Halving 1 again and again gives ,,, and never reaches 0. So no power of 2 is 0 or less, and the same holds for any base above 1. A log needs a number above 0: has no value, and neither has .
, and a bigger exponent makes a bigger power, so lies between 4 and 5: it is not whole. Some books on algorithms write as just , others as ; in code, a plain log is a different base.
Powers of 2 from a quarter to 8, each above its log. Each step left halves and takes 1 off the log, so a quarter sits above minus 2.
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
Tearing paper as in the puzzle, tears make pieces.
worked answer
and , so lies between 11 and 12.
Eleven tears give 2048 pieces, under 3000. Twelve give 4096, at least 3000.
Check it another way: 3000 sits between 2048 and 4096, and 4096 is the first power of 2 past it.
2exercise 2
Work out each log.
worked answer
4 multiplies as 4, 16, 64, 256, 1024, which is 5 times, so and .
(lesson 3.4), so .
Check it another way: .
3exercise 3
A base above 1 has .
worked answer
says , four equal factors making 625.
Try bases in turn. ,,,.
So .
Check it another way: 5 multiplies as 5, 25, 125, 625, which is 4 times, so .
4exercise 4
Logs of 1, of fractions and of 0.
worked answer
, so , and it exists.
, so , and it exists too.
Every power of 2 is above 0, so no power of 2 is 0, and does not exist.
, so .
Check it another way: Halving 1 again and again gives ,,, and never reaches 0.