Sunday Times Teaser 2737 – Pinpoint Accuracy
by Danny Roth
Published: 8 March 2015 (link)
George and Martha’s bank PIN is an odd four-figure number. George did some calculations and wrote down three numbers: the first was the sum of the four digits in the PIN, the second was the average of the four digits, and the third was the product of the four digits. Then Martha multiplied these three numbers together and was surprised that the answer equalled the original PIN.
What is their PIN?
One Comment
Leave one →
-
Brian Gladman permalink123456for pin in range(1111, 10000, 2):t = a, b, c, d = [int(x) for x in str(pin)]if a * b * c * d * sum(t) ** 2 == 4 * pin:print('PIN = {}'.format(pin))