From The Sunday Times, 10th August 1975 [link]
A farmer grows apples in an orchard divided into plots —three to the East and three to the West of a central path. The apples are of two types — for eating (Cox, Laxton, Pearmain) and for cider making (Tremlitt, Coppin, Kingston).
Adjacent plots contain apples of different basic type. The apples are of six colours (red, green, russet, golden, orange, yellow) and of six tastes (sweet, sour, acid, tart, pleasant, bitter).
They ripen at different times, either early or late in July, August and September. Those ripening in early or late September are in plots directly opposite. Those South of Pearmain do not ripen in August. Tart are directly West of the acid variety, which ripens in early August. Yellow apples and those maturing in late September are adjacent. Yellow and orange are of the same type. Orange are North of pleasant and also North of Pearmain. Kingstons are adjacent to golden. Green is South of bitter.
Cox ripen in early July, and Laxtons ripen early in a different month. Tremlitts are red, and Kingstons mature after Coppins, which are not sour.
If cider apples taste unpleasant, what are the characteristics of the apples in North East plot? (Name, colour, taste, ripens).
This puzzle is included in the book The Sunday Times Book of Brain-Teasers: Book 2 (1981).
I think the puzzle as published in The Sunday Times and in the book is open to interpretation, and my first attempt using a reasonable interpretation gave two solutions (neither of which are the published solution). After examining the given solution in the book I think the following wording is clearer:
A farmer grows apples in an orchard divided into plots — three to the East and three to the West of a central track. Adjacent plots are separated by a shared fence. The apples are of two basic types — for eating (Cox, Laxton, Pearmain) and for cider making (Tremlitt, Coppin, Kingston).
Neighbouring plots contain apples of different basic type. The apples are of six colours (red, green, russet, golden, orange, yellow) and of six tastes (sweet, sour, acid, tart, pleasant, bitter).
They ripen at different times, either early or late in July, August and September. Those ripening in early or late September are in plots directly opposite each other. Those directly South of Pearmain do not ripen in August. Tart are directly West of the acid variety, which ripens in early August. Yellow apples and those maturing in late September are in adjacent plots. Yellow and orange are of the same basic type. Orange are directly North of Permain, which are pleasant. Kingstons and golden are in adjacent plots. Green is directly South of bitter.
Cox ripen in early July, and Laxtons ripen early in a different month. Tremlitts are red, and Kingstons mature after Coppins, which are not sour.
If cider apples are neither pleasant nor sweet, what are the characteristics of the apples in North-East plot?
[teaser734]
Jim Randell 9:40 am on 24 October 2024 Permalink |
This Python program runs in 67ms. (Internal runtime is 1.6ms).
from enigma import (irange, nrev, printf) # consider possible numbers for I for I in irange(1, 1000): # G is the reverse of I G = nrev(I) # and H is the difference between them H = G - I # check relevant conditions if not (0 < I < G and 10 < H < G and G % H == 0): continue # output solution printf("I={I} G={G} H={H}")Solution: Your membership number is: 495.
George’s is 594, Harry’s is 99, and 594 = 6 × 99.
LikeLiked by 1 person
GeoffR 10:34 am on 26 October 2024 Permalink |
LikeLike
Frits 1:55 am on 27 October 2024 Permalink |
# difference of 2 reversed numbers is a multiple of 99 so # George's number is a multiple of 99 print("answer:", ' or '.join([m for j in range(1, 11) if (h := int(m := str(g := 99 * j)[::-1]) - g) > 10 and h % 99 == 0 and g % h == 0]))LikeLike
Jim Randell 7:44 am on 27 October 2024 Permalink |
@Frits: Compact, but difficult to follow, and also outputs the wrong answer.
LikeLike