From The Sunday Times, 18th April 1982 [link]
The Manager of a large company greeted his twelve new computer staff. “You have been given consecutive, five-digit, Staff Reference Numbers (SRN). I remember numbers by finding their prime factors, using mental arithmetic — pre-computer vintage. Why not try it? If you would each tell me what factors you have, without specifying them (and ignoring unity), I should be able to work out your SR numbers”.
John said: “My number is prime.”
Ted said ” I have two prime factors. Your number follows mine doesn’t it, Les?”
Ian said: “I also have two, one of which squared. Alan’s just before me on the list.”
Sam said: “One of mine is to the power four. The last two digits of my SRN give me the other prime factor.”
Pete said: “I’ve got one factor to the power four as well. The other one is my year of birth.”
Brian said: “My number has one prime factor cubed and two others, both squared.”
Chris said: “I’m the only one with four factors, one of which is squared. Fred’s number is one less than mine.”
Dave started to say: “Kevin’s SRN is the one after mine, which …” when the Manager interrupted. “I can now list all twelve!”
List the twelve people, by initials, in increasing order of SRNs. What is Sam’s SRN?
This was the final puzzle to go by the title “Brain teaser“. The next puzzle was “Brainteaser 1030“.
This puzzle is included in the book The Sunday Times Book of Brainteasers (1994).
[teaser1029]
Jim Randell 8:20 am on 18 July 2025 Permalink |
There are 8 boxes to be filled out with a digit (from 0 to 9), and each of the digits 0 to 9 already occurs once before the boxes are filled out.
The first six boxes count the 10 given digits, plus those in the 8 boxes, so must sum to 18.
The first 2 boxes must contain 1 or more, and the next 4 boxes must contain 2 or more.
And the box with the mean must also be 2 or more.
Here is a solution using the [[
SubstitutedExpression]] solver from the enigma.py library.The following run file executes in 95ms. (Internal runtime of the generated code is 16.8ms).
Run: [ @codepad ]
Solution: The digits are: 1, 2, 8, 2, 2, 3, 3, 3.
The statements then become:
LikeLike
Frits 2:04 pm on 18 July 2025 Permalink |
@Jim, you can also add B in line 8 (ao because of line 32).
LikeLike