Sunday Times Teaser 2778 – Cold Turkey
by Susan Bricket
Published: 20 December 2015 (link)
We are having a “cold turkey” party on Boxing Day. Fewer than 100 people have indicated that they are coming, and the percentage of them choosing the vegetarian option is (to the nearest whole number) a single-digit number. My vegetarian aunt might also come. If she does, then (to the nearest whole number) the percentage having the vegetarian option will remain the same.
If she does come, how many people will be there and how many of them will have the vegetarian option?
One Comment
Leave one →
-
Brian Gladman permalink12345678910# the total (with the extra guest)for t in range(10, 101):# the number of vegetarians (with the extra guest)for v in range(1, min(10, t)):# look for equal percentages to the nearest whole number# with and without the extra guestif round(100 * v / t) == round(100 * (v - 1) / (t - 1)):print('{} out of {} will be vegetarian'.format(v, t))