# Sunday Times Teaser 2802 – That’s the Ticket!

*by Nick MacKinnon*

#### Published: 5 June 2016 (link)

Alan, Betty and Charlie each chose a different set of six numbers (from 1 to 49) for their lottery ticket. In each case the product of the six numbers was a perfect square and also each set of six numbers used each of the digits 0 to 9 exactly once.

Alan won the lottery by getting all six numbers correct. Betty and Charlie also got prizes because they each had at least three numbers correct.

What were Alan’s six numbers?

2 Comments
Leave one →

Here’s my solution:

Again I’ve used some useful routines from the enigma.py library [ http://www.magwag.plus.com/jim/enigma.html ].

There are only three possible sets of six numbers that use the digits 0-9 exactly once and multiply together to give a square. Fortunately one of them shares 3 or more numbers with the other two, so this gives us A’s numbers.