Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 35 |
Nodes: | 6 (1 / 5) |
Uptime: | 18:51:59 |
Calls: | 321 |
Calls today: | 1 |
Files: | 957 |
Messages: | 82,382 |
Not having worked through it yet, I'm now simply
surprised, rather than disbelieving, that you can converge on any integer,
no matter what size, with a fixed number of coins.
(2) Any positive integer amount can be made. This will require an
unlimited number of coins in total, but not more than 14 of any
single value.
In article <vo9t64$hlp5$2@dont-email.me>,
David Entwistle <qnivq.ragjvfgyr@ogvagrearg.pbz> wrote:
Please don't post a direct answer to the question posed, but I'd welcome a >>bit of guidance on Mathsbombe question 3.
I have guessed the correct answer without understanding the problem.
I have now understood the problem (and its solution).
I think you must have misunderstood:
(2) Any positive integer amount can be made. This will require an
unlimited number of coins in total, but not more than 14 of any
single value.
You can use up to 14 coins of each denomination.
You are quite right, I had misunderstood. My level of surprise is even
more diminished.
You may, like me, stumble upon the correct value of x and then see that
it works for numbers up to N - a number greater than 400 - but not immediately see how it works beyond that. I had to think of it somewhat differently to see that it does.
I'll try and think differently... :o)
221 matched by 221.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 11 * x^0
222 matched by 222.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 12 * x^0
223 matched by 223.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 13 * x^0
224 matched by 224.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 14 * x^0
225 matched by 225.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 0 * x^0
226 matched by 226.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 1 * x^0
227 matched by 227.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 2 * x^0
228 matched by 228.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 3 * x^0
229 matched by 229.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 4 * x^0
230 matched by 230.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 5 * x^0
As you have presumably noticed, this works for a while, but will run
into a problem when you get to 435 = 15^2 + 14*15 which would be
1*x^4 + 2*x^3 + 15*x^2 + 14*x^1
because now you have more than 14 of one coin.
On Thu, 20 Feb 2025 08:48:47 -0000 (UTC), David Entwistle wrote:
I'll try and think differently... :o)
I wouldn't have guessed, nor predicted the sequence of numbers of coins of each denomination required to match the desired increasing monetary value.
221 matched by 221.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 11 * x^0
222 matched by 222.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 12 * x^0
223 matched by 223.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 13 * x^0
224 matched by 224.00, 0 * x^4 + 0 * x^3 + 14 * x^2 + 14 * x^1 + 14 * x^0
225 matched by 225.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 0 * x^0
226 matched by 226.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 1 * x^0
227 matched by 227.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 2 * x^0
228 matched by 228.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 3 * x^0
229 matched by 229.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 4 * x^0
230 matched by 230.00, 1 * x^4 + 2 * x^3 + 1 * x^2 + 0 * x^1 + 5 * x^0
Does anyone have an easy explanation why steps are jumped in the sequence
of additional coins, or is it a mistake on my part?
[detailed description and worked example]
In article <hbidnYrnI_7s7Cr6nZ2dnZfqnPadnZ2d@brightview.co.uk>,
Mike Terry <news.dead.person.stones@darjeeling.plus.com> wrote:
[detailed description and worked example]
To reduce it to its minimum...
If
15 = x^2 + x
then
15x^n = x^(n+2) + x^(n+1)
so we can exchange 15 coins of any one denomination for one each of
the two next higher denominations.
-- Richard