Sunday Times Teaser 3293 – Three Sisters
by Victor Bryant
Published Sunday November 02 2025
I have three granddaughters Jay, Kay and Elle. I set Jay and Kay a test and asked each of them to produce a list of positive numbers that used just nine digits with no digit occurring more than once. I wanted the majority of the numbers in each list to be odd and the majority of the numbers in each list to be perfect squares.
Jay’s list (which contained more numbers than Kay’s) added up to give the year of Elle’s birth, whereas Kay’s list added up to give the year in which Elle will be 25.
In one of the lists the highest number was a perfect square.
What (in increasing order) were the numbers in that list?
6 Comments
Leave one →
This solution is very slow without an arbitrary limit on the number of digits used in non-squares but it completes in a sensible time with a reasonable limit of no more than five digits used in this way.
I believe possible years for Jay and Kay are as follows:
@Brian: Some of the candidates you give only use 8 digits.
Thanks Jim. I am making too many errors these days ;-(
Leaving out the 8 digit lists and those that sum to 2000 which my code considers to be out of range (changed easily enough by replacing 2000 with 1999 in line 12 of my code), our 9 digit lists coincide.
Using itertools.combinations() was less efficient than select().