Sunday Times Teaser 3247 – In the Bag
by Andrew Skidmore
Published Sunday December 15 2024 (link)
My set of snooker balls comprises 15 red balls, 6 “colours” (not red) and a white ball. From these, I have placed a number of balls in a bag such that if four balls are drawn at random the chance of them all being red is a two-digit whole number times the chance of them all being colours.
If I told you this whole number you would not be able to determine the numbers of reds and colours in the bag, but I can tell you that drawing four colours is a one in a whole number chance.
How many balls are in the bag and how many of them are red?
6 Comments
Leave one →
This now includes a suggestion from Frits which improves the speed from 18.6 to 17.3 microseconds.
@John,
You work with a “redcount” set. The requirements suggest you should work with something like a “redcolourcount’ set.
and are clearly not going to win any speed competitions.
Also taking into account the number of white balls.
A faster version without the Fraction import.