BA cell no coins pay holds ∞, which is an answer as well.
DThe cells are already filled.
pen and paper
5question 5about 6 minutes
Run the method by hand on coins of 2, 3 and 7 paying 9.
Fill cells 0 to 9.
How many tries are there?
Read back the coins for 9.
a hint
Cell 1 fits no coin.
a worked answer
Cells 0 to 9 hold 0, ∞, 1, 1, 2, 2, 2, 1, 3, 2. Cell 1 is ∞, as no coin fits. At 8, coin 7 leaves 1, which is ∞, so it is no help. Coin 2 is tried at 8 amounts, coin 3 at 7 and coin 7 at 3, which is 18 tries. Cell 9 holds 2. Try the coins from the biggest: coin 7 leaves 2, which holds 1, one fewer, so 7 is a right coin. Then coin 2 leaves 0. Paid 7 and 2.
A friend says the table is quick, since its tries grow only as the amount does.
How many tries for 1,000,000,000 on coins of 1, 2 and 3?
How long is that at a billion tries a second?
How many cells does the table hold, and what does that say?
a hint
Question 1 of the learn page's section 4 counts the tries.
a worked answer
3 times 1,000,000,000, less 3, which is 2,999,999,997 tries, about 3 seconds. The table holds 1,000,000,001 cells, one for each amount from 0. The amount is only 10 digits long, yet the work grows with its size. Each digit more makes it about 10 times bigger.
Question 1: how many tries, , on coins of 1, 2 and 3, from 2 up?8 of 8 shown
1the move: count one coin
the line:
amount
coins tried
tries
1
1
1
2
1, 2
2
3
1, 2, 3
3
4
1, 2, 3
3
Coins of 1, 2 and 3 paying 4, 9 tries.
why it is allowed: Coin is tried at each amount from up to , both ends counted, and at none below its value. For 4, coin 2 is tried at 2, 3 and 4: 4 less 2, plus 1, which is 3 times.
2the move: add the three coins
the line:
why it is allowed: By line 1, coin 1 is tried times, coin 2 times and coin 3 times. At 2, coin 3 is never tried, and is 0. For 4, 4 + 3 + 2, which is 9.
guess it, then
3the move: add them up
the line:
why it is allowed: Three lots of , less 1 and less 2. For 4, 12 less 3, which is 9.
guess it, then
4the move: a ceiling
the line:
why it is allowed: Taking 3 away leaves less. For 4, 9 is at most 12.
guess it, then
5the move: read the bound
the line:
why it is allowed: By line 4, with the fixed multiple 3.
guess it, then
6the move: a floor
the line:
why it is allowed: Take from , and 2 lots of , less 3, are left. From 2 up, that is at least 1, so is more than . For 4, 9 is at least 4.
guess it, then
7the move: read the bound
the line:
why it is allowed: By line 6, with the fixed multiple 1.
guess it, then
8the move: both together
the line:
why it is allowed: Lines 5 and 7 bound by the same growth, only a fixed multiple apart.
guess it, then
try it with a small : at , line 2 gives , which you can work out by hand