Re: MathsBombe

Liste des GroupesRevenir à r puzzles 
Sujet : Re: MathsBombe
De : richard (at) *nospam* cogsci.ed.ac.uk (Richard Tobin)
Groupes : rec.puzzles
Date : 11. Feb 2025, 12:46:29
Autres entêtes
Organisation : Language Technology Group, University of Edinburgh
Message-ID : <vofdal$ie1$1@macpro.inf.ed.ac.uk>
References : 1 2 3
User-Agent : trn 4.0-test76 (Apr 2, 2001)
In article <vo9v4b$hlsf$3@dont-email.me>,
Richard Heathfield  <rjh@cpax.org.uk> wrote:

I agree; it doesn't look possible. I was tempted to cut code, but
I hit two ambiguities. What, precisely, does "no more than 14
coins of every given denomination" mean? It could mean an
up-to-14-coin subset of the available range

Let's knock this one on the head.  It is not possible to have a set of
coins as described where an arbitrary integer value can be made with at
most 14 coins in total.

Proof:

Let the coins have the denominations 1, x, x^2, ... and add in a coin
with value 0 so we can say exactly 14 coins rather than at most 14.

How many values can we make with the denominations up to x^n?  There
are n+2 different such denominations (x^0 .. x^n and 0).  So there
are (n+2)^14 ways of choosing our coins in order, and less than that
since the order doesn't matter.  (And of course most of them won't
produce an integer anyway.)

How many different values do we need to be able to make with those
coins?  All the values less than x^(n+1), since we can't use the x^(n+1)
denomination or larger to make a value less than x^(n+1).

The number of values increases exponentially, but the number of coin
combinations increases polynomially.  So as n increases the number of
values will eventually exceed the number of combinations available to
make them.

-- Richard

Date Sujet#  Auteur
19 Jan 25 * MathsBombe23David Entwistle
9 Feb 25 `* Re: MathsBombe22David Entwistle
9 Feb 25  +* Re: MathsBombe6Richard Heathfield
9 Feb 25  i+* Re: MathsBombe4Mike Terry
9 Feb 25  ii`* Re: MathsBombe3Richard Heathfield
9 Feb 25  ii `* Re: MathsBombe2Mike Terry
10 Feb 25  ii  `- Re: MathsBombe1Richard Heathfield
11 Feb 25  i`- Re: MathsBombe1Richard Tobin
9 Feb 25  +- Re: MathsBombe1David Entwistle
10 Feb 25  `* Re: MathsBombe14Richard Tobin
10 Feb 25   +- Re: MathsBombe1Richard Heathfield
10 Feb 25   `* Re: MathsBombe - observations but not the answer12Richard Tobin
11 Feb 25    +* Re: MathsBombe - observations but not the answer4David Entwistle
11 Feb 25    i`* Re: MathsBombe - observations but not the answer3Richard Tobin
11 Feb 25    i `* Re: MathsBombe - observations but not the answer2David Entwistle
19 Feb 25    i  `- Re: MathsBombe - observations but not the answer1David Entwistle
20 Feb 25    `* Re: MathsBombe - observations but not the answer7David Entwistle
20 Feb 25     `* Re: MathsBombe - observations but not the answer6David Entwistle
20 Feb 25      +* Re: MathsBombe - observations but not the answer2Richard Tobin
20 Feb 25      i`- Re: MathsBombe - observations but not the answer1David Entwistle
20 Feb 25      `* Re: MathsBombe - observations but not the answer3Mike Terry
20 Feb 25       `* Re: MathsBombe - observations but not the answer2Richard Tobin
21 Feb 25        `- Re: MathsBombe - observations but not the answer1Mike Terry

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal