From The Sunday Times, 26th March 1972 [link]
“Puzzle here”, says Bell at the pub. “Chap has a ribbon shop, sells the stuff by the inch, no commercial sense. He’s barmy anyway; look how he measures it. His counter is exactly 100 inches long and he’s marked it off into 16 bits; 6 of 11 inches, 2 of 6 inches, 3 of 5 inches, 1 of 3 inches and 4 of 1 inch, and he can measure any number of inches up to a hundred, that is, by picking the right pair of marks.
“You have to sort the spaces out; but I’ll tell you, all the 11 inches are together round about the middle — well, a bit to the right, but not as much as 4 inches off centre. You get the idea? For most measurements he’s using a kind of feet and inches with eleven inches to the foot”.
“Young Green is nearly right: he can’t measure 99 inches unless there’s a 1-inch space at one end, but he doesn’t need a 1-inch at the other end for 98 inches; he does it with two 1-inch spaces at the same end; but there might be a 1-inch at the other end, all the same, and there might not”.
“In answer to two foolish questions, the ribbon must be measured single thickness, no folding; and it’s a straight counter, it’s not circular”.
“Usual prize, one pint”.
How were the spaces arranged from left to right?
This puzzle is included in the book Sunday Times Brain Teasers (1974).
[teaser560]
Jim Randell 8:49 am on 29 September 2022 Permalink |
If there are T marbles in total (T = “nearly 400”) and R of them are red, then the probability of removing 4 red marbles is:
And this probability is “one in a four-figure number”, so the largest it can be is 1/1000 and the smallest is 1/9999.
The following Python program considers total numbers of marbles from 399 down to 350, and then looks for numbers of red marbles that give an appropriate value for P.
It runs in 57ms. (Internal run time is 1.2ms).
Run: [ @replit ]
from enigma import (irange, printf) # consider total number of marbles (nearly 400) for T in irange(399, 350, step=-1): # denominator of P d = T * (T - 1) * (T - 2) * (T - 3) # R = number of red marbles for R in irange(4, T): # numerator of P n = R * (R - 1) * (R - 2) * (R - 3) # calculate p = 1/P (p, x) = divmod(d, n) if p > 9999: continue if p < 1000: break if x == 0: # output solution printf("red = {R}, blue = {B}; total = {T} -> P = 1/{p}",B=T - R)Solution: There were 45 red marbles and 342 blue marbles.
So, 387 marbles in total. And the probability of choosing 4 red is 1/6176.
LikeLike