Sunday Times Teaser 2844 – Children’s Children
by Angela Newing
Published March 26 2017 (link)
The head teacher’s retirement celebration was attended by many former pupils. These included Adam, Brian, Colin and David, whose sons and grandsons had also attended the school — actually different numbers of grandsons for each of them, with Adam having the most. Their sons were Eric, Fred, George, Harry and Ivan, and the sons of the sons were John, Keith, Lawrence, Michael, Norman and Oliver.
Altogether Adam and Brian had sons Eric, Fred and one other; altogether Adam and Colin had sons George and one other; altogether Eric, George and Harry had sons Keith, Michael, Norman and one other; and altogether Harry and Ivan had sons Lawrence, Norman and one other.
The retirement gift was presented by the fathers of John’s and Oliver’s fathers: who were they?
Unfortunately this teaser is flawed as there are multiple solutions. This solution is a bit pedestrian and I might improve on it later but it is fast enough and completes in 9 milliseconds on my system.
Brian
If ABCD had daughters some of the 6 grandsons could have 2 of ABCD as grandfather.
This would presumably need a more complex program (I have not tried very hard on pen and paper).
Yes, your are right Tony, I don’t take that possibility into account. But I doubt that this is an intended feature of the teaser.