Teaser 2479: [The Sultan’s coins]
From The Sunday Times, 28th March 2010 [link]
The Sultan of Aurica introduces five coins, each worth a different whole number of cents less than 100, with face values equal to the value of metal used. All are circular and of the same metal, but any coin worth an odd number of cents is twice as thick as the even-valued ones. The coin showing the sultan’s head can just cover two touching coins of equal value or seven smaller coins of equal value, with six arranged around the edge, one in the middle. All of that is also true of the coin showing the sultan’s palace.
What are the five values?
This puzzle was originally published with no title.
[teaser2479]
Jim Randell 10:15 am on 26 September 2025 Permalink |
The following Python program runs in 61ms. (Internal runtime is 135µs).
from enigma import (irange, div, subsets, union, printf) # collect radius^2 -> coin value d = dict() for v in irange(1, 99): k = (v if v % 2 == 1 else 2 * v) d[k] = v # now look for k values where k/9 and k/4 are also values ss = list() for (k, v) in d.items(): (v3, v2) = (d.get(div(k, 9)), d.get(div(k, 4))) if v3 and v2: printf("[{v} covers 6x {v3} or 2x {v2}]") ss.append((v, v3, v2)) # find 2 sets that use exactly 5 coins between them for (s1, s2) in subsets(ss, size=2): rs = union([s1, s2]) if len(rs) == 5: printf("{s1} & {s2} -> {rs}", rs=sorted(rs))Solution: The coin values are: 2, 8, 9, 18, 72 cents.
There are 4 candidate configurations of coins where the largest can exactly cover 6 and 2 of the smaller coins.
And we need to find 5 coins that can make two of these sets (i.e. one of the coins is shared between sets).
The solution comes from:
LikeLike