A6 times 6 is 36, which is not past 36, so 6 is still looked at.
B6 is 2 times 3, so it is no prime.
C12, 18, 24, 30 and 36 are all at most 36.
pen and paper
5question 5about 6 minutes
Run the method by hand up to 28.
Which primes cross numbers out, and which numbers does each cross out?
How many crossings are there, and which numbers are crossed out twice?
Which primes are left?
a hint
Each prime starts at itself times itself, and the method stops once that passes 28.
a worked answer
2 crosses out 4, 6, 8 and on to 28, which is 13 numbers. 3 crosses out 9, 12, 15, 18, 21, 24 and 27, which is 7. 4 is crossed out, so it is passed over. 5 crosses out 25 alone. 6 times 6 is 36, past 28, so it stops. That is 21 crossings, and 12, 18 and 24 are crossed out twice. Left are 2, 3, 5, 7, 11, 13, 17, 19 and 23.
2 with 13 numbers, 3 with 7 and 5 with 1, and 4 passed over.
21 crossings, with 12, 18 and 24 twice.
The 9 primes from 2 to 23.
6question 6about 6 minutes
A friend says the sieve crosses out each number at most once, so it makes fewer than crossings.
How many crossings does it make up to 100?
Name a number up to 100 that is crossed out three times.
Where does your friend go wrong?
a hint
Use question 1's line 1, and think about a number with three different prime factors, each with its square at most the number.
a worked answer
Up to 100, 2 makes 49, 3 makes 31, 5 makes 16 and 7 makes 8: 104 crossings, more than 100. 30 is crossed out by 2, 3 and 5. Your friend forgets that a number crossed out before is crossed out again, once by each prime factor whose square is at most the number. So the crossings per number keep growing, to about 2 at a million.
Question 1: how many crossings, , does the method make up to , for of 4 or more?14 of 14 shown
1the move: count each prime's crossings
the line:
prime
crosses out
as
crossings
2
4, 6, 8, 10, 12, 14, 16
2 times 2 to 8
7
3
9, 12, 15
3 times 3 to 5
3
Up to 16. 4 is crossed out, so it crosses nothing out. 12 is crossed out twice.
why it is allowed: By question 2, the not crossed out are the primes: a that is no prime is crossed out by its smallest prime factor, which comes first. So only primes cross numbers out, those with times at most . A prime crosses out times , then times the next number, , and on: 2 times 2, then 2 times 3. It stops at times , the most that still fits in . Counting from to , both ends in, is numbers, as 2 to 8 is 8 - 2 + 1, which is 7. Each counts, crossed out before or not. For 16, 2 makes 7 and 3 makes 5 - 3 + 1, which is 3. In all, 10.
2the move: keep only 2's crossings
the line:
why it is allowed: From 4 up, 2 times 2 is at most , so 2's term is there: , less 2, plus 1. Every other term is at least 1, as times at most puts at most , so leaving them out never raises the total. For 16, 10 is at least 7.
guess it, then
3the move: drop the rounding
the line:
why it is allowed: Rounding a half down loses at most a half, so is at least . For 16, 7 is at least 6.5.
guess it, then
4the move: one fraction
the line:
why it is allowed: 1 is 2 halves, and less 2 is . For 16, 6.5.
guess it, then
5the move: read the bound
the line:
why it is allowed: By line 4. From 6 up, is at least half of , so is at least a quarter of , the fixed multiple. means at least a fixed multiple of , above 0, from some on.
guess it, then
6the move: drop the rounding
the line:
why it is allowed: Rounding down makes no bigger, so is at most . For 16, 2's term stays 7, and 3's becomes 3.33.
guess it, then
7the move: drop what is below 0
the line:
why it is allowed: is below 0, as is at least 2. For 16, 7 becomes 8, and 3.33 becomes 5.33.
guess it, then
8the move: every number, not only primes
the line:
why it is allowed: puts at most , so at most . Add a term for every whole number from 2 to there, prime or not: more terms, each above 0. For 16, the root is 4, and 4 adds 16 over 4, so 13.33 becomes 17.33.
guess it, then
9the move: name the harmonic sum
the line:
where does this come from?
question 4 of the page expected costHow does grow?
1the move: name the sum
the line:
why it is allowed: Let be the harmonic sum to 1 over , for from 2.
2the move: group in blocks
the line:
The sum to 1 over 12, about 3.10, each term a column 1 over k tall. Behind each place of a block stands its first term, dashed, so 4 dashed columns of 1 over 4 make 1. The last block is cut short.
why it is allowed: Number blocks by from 0. Block starts at 1 over 2 to the power : 1, 1 over 2, 1 over 4, 1 over 8. It stops just before the next start, so it has 2 to the power terms: 1 over 4 to 1 over 7 are 4. The last block may be cut short at 1 over .
3the move: each block at most 1
the line:
why it is allowed: Each term of block is at most its first, 1 over 2 to the power , as a bigger number underneath makes a smaller fraction. So its 2 to the power terms, or fewer, add to at most 1. is at most 1 per block: 4 for 12.
4the move: count the blocks
the line:
where does this come from?
question 2 of the page halving and logarithmsHalve , rounding down each time. How many halvings reach 1?
1the move: name the log rounded down
the line:
Rounding down, 11 halves to 5, 2 and 1. In blue, each log rounded down: 3, 2, 1, 0, one less at each halving.
why it is allowed: Here is the number halved, from 2 up; for 11, is 3.
2the move: rounding down never adds
the line:
why it is allowed: For 11, 3 is at most 3.46.
3the move: rounding down takes off less than 1
the line:
why it is allowed: For 11, 4 is above 3.46.
4the move: raise 2 to each side of line 2
the line:
why it is allowed: 2 raised to a bigger power gives a bigger number. For 11, 8 is at most about 11.
5the move: 2 to the log of n is n
the line:
why it is allowed: By what a log is. For 11, 8 is at most 11.
6the move: raise 2 to each side of line 3
the line:
why it is allowed: As in line 4. For 11, about 11 is below 16.
7the move: 2 to the log of n is n
the line:
why it is allowed: As in line 5. For 11, 11 is below 16.
8the move: halve both sides of line 5
the line:
why it is allowed: For 11, 4 is at most 5.5, which is not whole.
9the move: write the half as a power
the line:
why it is allowed: Half a power of 2 has one 2 fewer. Half of 8 is 4.
10the move: round the half down
the line:
why it is allowed: is the half rounded down, 5 for 11. A whole number at most 5.5 is at most 5. The left side, 4 for 11, is whole, as is at least 1 for from 2 up.
11the move: halve both sides of line 7
the line:
why it is allowed: For 11, 5.5 is below 8.
12the move: write the half as a power
the line:
why it is allowed: As in line 9. Half of 16 is 8.
13the move: round the half down
the line:
why it is allowed: Rounding down never adds. For 11, 5 is below 8.
14the move: take the log of line 10
the line:
why it is allowed: A bigger number has a bigger log. For 11, the log of 4 is at most the log of 5.
15the move: the log of a power of 2 is the power
the line:
why it is allowed: For 11, the log of 4 is 2, at most about 2.32.
16the move: take the log of line 13
the line:
why it is allowed: As in line 14. For 11, the log of 5 is below the log of 8.
17the move: the log of a power of 2 is the power
the line:
why it is allowed: For 11, about 2.32 is below 3.
18the move: round the log down
the line:
the number
at least
below
its log rounded down
11
8
16
3
5
4
8
2
2
2
4
1
1
1
2
0
Each halving takes 1 off the log rounded down.
why it is allowed: By lines 15 and 17, the log of the half is at least one less than and below , so it rounds down to one less. For 11, about 2.32 rounds down to 2.
19the move: use line 18 again and again
the line:
why it is allowed: While the log rounded down is 1 or more, the number is at least 2 to the power 1, which is 2. So line 18 takes 1 off each halving, down to 0 after . For 11, 3, 2, 1, 0.
20the move: a log rounded down to 0 belongs to 1
the line:
why it is allowed: Such a log is at least 0 and below 1, so its number is at least 1 and below 2. It is 1.
why it is allowed: is read the log of rounded down. By lines 5 and 7 of the page halving and logarithms, 2 to that power is at most , and the next power of 2 is above . So blocks start at 1 over 2 to the powers 0 to . For 12, 3.58 rounds down to 3: the 4 blocks of line 2.
5the move: drop the rounding
the line:
why it is allowed: Rounding down never adds, so putting for can never lower the right side. For 12, 4 becomes about 4.58.
6the move: a fact about n
the line:
why it is allowed: is at least 2, the log of 2 is 1, and a bigger number has a bigger log.
7the move: put the log in place of the 1
the line:
why it is allowed: By line 6 this makes the right side of line 5 no smaller. For 12, 4.58 becomes about 7.17.
8the move: add the logs
the line:
why it is allowed: Two lots of .
9the move: a ceiling
the line:
why it is allowed: By line 8, is at most 2 times for every from 2. , read is in big O of , says a fixed multiple of is a ceiling of : here 2.
10the move: blocks after the first term
the line:
The sum to 1 over 12. Inside each term of a block stands its last term, dashed, so 2 dashed columns of 1 over 4 make one half. 1 over 9 to 1 over 12 are left over.
why it is allowed: For a floor, group the terms after the first in blocks ending at 1 over 2, 1 over 4, 1 over 8 and on. Each term is then at least its block's last. Whole blocks end at 1 over the powers of 2 from 2 to .
11the move: drop the leftovers
the line:
why it is allowed: Leftover terms are above zero, so leaving them out makes the total no bigger.
12the move: whole blocks at least one half
the line:
why it is allowed: Number the whole blocks by from 1. Block runs from just after 1 over half of 2 to the power to 1 over 2 to the power . That is half that many terms, each at least its last, so at least one half. For 12, 1 over 3 + 1 over 4 is at least 2 times 1 over 4. With line 11, is at least 1 plus one half per whole block: 2.5.
13the move: count the whole blocks
the line:
where does this come from?
question 2 of the page halving and logarithmsHalve , rounding down each time. How many halvings reach 1?
1the move: name the log rounded down
the line:
Rounding down, 11 halves to 5, 2 and 1. In blue, each log rounded down: 3, 2, 1, 0, one less at each halving.
why it is allowed: Here is the number halved, from 2 up; for 11, is 3.
2the move: rounding down never adds
the line:
why it is allowed: For 11, 3 is at most 3.46.
3the move: rounding down takes off less than 1
the line:
why it is allowed: For 11, 4 is above 3.46.
4the move: raise 2 to each side of line 2
the line:
why it is allowed: 2 raised to a bigger power gives a bigger number. For 11, 8 is at most about 11.
5the move: 2 to the log of n is n
the line:
why it is allowed: By what a log is. For 11, 8 is at most 11.
6the move: raise 2 to each side of line 3
the line:
why it is allowed: As in line 4. For 11, about 11 is below 16.
7the move: 2 to the log of n is n
the line:
why it is allowed: As in line 5. For 11, 11 is below 16.
8the move: halve both sides of line 5
the line:
why it is allowed: For 11, 4 is at most 5.5, which is not whole.
9the move: write the half as a power
the line:
why it is allowed: Half a power of 2 has one 2 fewer. Half of 8 is 4.
10the move: round the half down
the line:
why it is allowed: is the half rounded down, 5 for 11. A whole number at most 5.5 is at most 5. The left side, 4 for 11, is whole, as is at least 1 for from 2 up.
11the move: halve both sides of line 7
the line:
why it is allowed: For 11, 5.5 is below 8.
12the move: write the half as a power
the line:
why it is allowed: As in line 9. Half of 16 is 8.
13the move: round the half down
the line:
why it is allowed: Rounding down never adds. For 11, 5 is below 8.
14the move: take the log of line 10
the line:
why it is allowed: A bigger number has a bigger log. For 11, the log of 4 is at most the log of 5.
15the move: the log of a power of 2 is the power
the line:
why it is allowed: For 11, the log of 4 is 2, at most about 2.32.
16the move: take the log of line 13
the line:
why it is allowed: As in line 14. For 11, the log of 5 is below the log of 8.
17the move: the log of a power of 2 is the power
the line:
why it is allowed: For 11, about 2.32 is below 3.
18the move: round the log down
the line:
the number
at least
below
its log rounded down
11
8
16
3
5
4
8
2
2
2
4
1
1
1
2
0
Each halving takes 1 off the log rounded down.
why it is allowed: By lines 15 and 17, the log of the half is at least one less than and below , so it rounds down to one less. For 11, about 2.32 rounds down to 2.
19the move: use line 18 again and again
the line:
why it is allowed: While the log rounded down is 1 or more, the number is at least 2 to the power 1, which is 2. So line 18 takes 1 off each halving, down to 0 after . For 11, 3, 2, 1, 0.
20the move: a log rounded down to 0 belongs to 1
the line:
why it is allowed: Such a log is at least 0 and below 1, so its number is at least 1 and below 2. It is 1.
why it is allowed: As in line 4, whole blocks end at 1 over 2 to the powers 1 to , that many blocks. For 12, 3.
14the move: rounding takes off less than 1
the line:
why it is allowed: Rounding down takes off less than 1, so putting less 1 for can only lower the right side. For 12, 2.5 becomes about 2.29.
15the move: halve each part
the line:
why it is allowed: Half of ( less 1) is half of , less one half.
16the move: change the order
the line:
why it is allowed: Adding and taking away go in any order.
17the move: 1 less one half
the line:
why it is allowed: 1 less one half is one half.
18the move: drop the one half
the line:
why it is allowed: Taking away one half makes the right side smaller. For 12, about 1.79.
19the move: a floor
the line:
the ceiling,
the harmonic sum
the floor,
From 2 terms on, the harmonic sum lies between its ceiling and floor. At 16: 8, about 3.38, and 2.
why it is allowed: By line 18, is at least one half times for every from 2. , read is in big omega of , says a fixed multiple of , above zero, is a floor of .
20the move: ceiling and floor together
the line:
why it is allowed: , read is in big theta of , says both: by lines 9 and 19, for every from 2, lies between one half and 2 times . It grows like .
why it is allowed: Take out of each term, leaving times (1 over 2, plus 1 over 3, and on). That is without its first 1. For 16, 16 over 2, plus 16 over 3, plus 16 over 4, is 16 times ( less 1), about 17.33. The fold shows how grows.
guess it, then
10the move: how big the harmonic sum gets
the line:
why it is allowed: The fold at line 9 shows this in its line 5, with in place of its . From 4 up, that is at least 2, as the fold needs. For 16, is about 2.08, at most 3.
guess it, then
11the move: put it in
the line:
why it is allowed: Put line 10 into line 9. Its + 1 and - 1 cancel. For 16, 16 times 2, which is 32.
guess it, then
12the move: drop the rounding
the line:
why it is allowed: is at most , and a bigger number has a bigger log.
guess it, then
13the move: half the log
the line:
the floor,
the crossings,
the ceiling,
The floor, the crossings and the ceiling on a log-log plot, each mark ten times the one before, as in section 2. The crossings lie between them, about 2 times the floor at 100 and 4 times at a million.
why it is allowed: For 16, its root is 4, which is 2 to the power 2, and 16 is 2 to the power 4: half of 4 is 2. In general, 2 to the power of half of , times itself, is 2 to the power , which is . So it is , and is half of . For 16, 8 times 4, which is 32.
guess it, then
14the move: read the bound
the line:
why it is allowed: By line 13, with the fixed multiple a half. Lines 5 and 14 grow differently, as and , so they make no . The tight growth needs Mertens's 1874 sum over the primes, not worked out here. At a million, the floor gives 499,999, the count is 2,122,048 and the ceiling 9,965,784, so the count is about 4 times the floor and a fifth of the ceiling.
guess it, then
try it with a small : at , line 1 gives , which you can work out by hand