Enigmatic Code

Programming Enigma Puzzles

Category Archives: site news

Enigma 1116: United win at last

From New Scientist #2272, 6th January 2001 [link]

Albion, Borough, City, Rangers and United played a tournament in which each team played each of the other teams once. Two matches took place in each of five weeks, each team having one week without a match.

One point was awarded for winning in the first week, 2 points for winning in the second week, 3 points for winning in the third week, 4 points for winning in the fourth week and 5 points for winning in the fifth week. For a drawn match each team gained half the points it would have gained for winning it. At any stage, teams that had gained the same number of points were regarded as tying.

After the first week A led, with B tying for second place. After the second week B led, with C tying for second place. After the third week C led, with R tying for second place. After the fourth week R led, with U tying for second place. After the fifth week U had won the tournament with more points than any of the other teams.

(1) Which team or teams finished in second place after the fifth week?

(2) Give the results of Albion’s matches, listing them in the order in which they were played and naming the opponents in each match.

This completes the archive of Enigma puzzles from 2001. There are now 1065 Enigma puzzles on the site, the archive is complete from the beginning of Enigma in February 1979 to January 1987, and from January 2001 to the final Enigma puzzle in December 2013. Altogether there are currently 59.5% of all Enigmas published available on the site, which leaves 726 Enigmas between 1987 and 2000 left to publish.


Enigma 391b: Christmas recounted

From New Scientist #1540, 25th December 1986 [link]

Delivering Christmas presents is not an easy task and Exe-on-Wye has grown to be so populous that it is hardly surprising that this year Santa Claus decided to delegate the delivery to his minions. Thanks to some failure in communication, however, instead of each house receiving one sack of presents, each of his helpers left a sack at each and every house. The number of sacks that should have been delivered happens to be the number obtained by striking out the first digit of the number of sacks delivered.

When Santa Claus discovered this, he was not pleased. “Things couldn’t be worse!” he groaned. “The number of sacks you should have delivered is the largest number not ending in zero to which the addition of a single digit at the beginning produces a multiple of that number”. And he disciplined the unhappy helpers.

But for each unhappy helper there were many happy households in Exe-on-Wye on Christmas morning.

Can you say how many unhappy helpers and how many happy households?

This puzzle completes the archive of Enigma puzzles from 1986, and brings the total number of Enigma puzzles on the site to 1,058. There is a complete archive from the start of Enigma in February 1979 to the end of 1986, as well as a complete archive from February 2001 to the end of Enigma in December 2013, which is 59% of all Enigma puzzles, and leaves 733 Enigma puzzles left to publish.

I have also started to post the Tantalizer and Puzzle problems that were precursors to the Enigma puzzles in New Scientist, and so far I have posted 16 of each. In total there are 90 Puzzles (which I can get from Google Books) and 500 Tantalizer puzzles (of which the final 320 are available in Google Books).

Happy puzzling (and coding)!

[enigma391b] [enigma391]

2016 in review

Happy New Year from Enigmatic Code!

There are now 1,028 Enigma puzzles on the site (plus a few other puzzles). There is a complete archive of all puzzle published from January 1979 to September 1986 and also from May 2001 to December 2013, which is about 57.5% of all Enigma puzzle published in New Scientist and leaves around 760 puzzles to add to the site.

In 2016 I added 105 Enigma puzzles to the site (as well as a puzzles from other sources). Here’s my selection of the ones I found most interesting to solve this year:

Older Puzzles (1985 – 1986)

Newer Puzzles (2001 – 2002)

Other Puzzles

I have continued to maintain the enigma.py library (in particular I added some routines to help in solving football problems with letters substituted for digits in score tables, and for solving general Alphametic problems). I wrote up some notes on the solving of Alphametics using Python here and here, and the SubstitutedExpression() class in enigma.py can now be used to solve many Enigma problems directly.

Since switching to posting puzzles on Monday and Friday I have also added Wednesday Bonus Puzzles, which are posted on Wednesdays (naturally), if I have the time. Unless there is a particularly interesting puzzle that’s caught my eye that week I will alternate posting Tantalizer (set by Martin Hollis) and Puzzle (set by Eric Emmet) problems, which are the predecessors of the Enigma puzzles in New Scientist. (Although Eric Emmet seems to like puzzles involving substituted addition or division sums, and football problems a bit too much for my liking).

Thanks to everyone who has contributed to the site in 2016, either by adding their own solutions (programmatic or analytical), insights or questions, or by helping me source puzzles from back-issues of New Scientist.

Enigma 364: Wrong-angled triangle

From New Scientist #1513, 19th June 1986 [link]

“We Yorkshireman,” said my friend Triptolemus, “like a puzzle as a cure for insomnia, instead of counting sheep. Have you got a nice simple question, without a mass of figures to remember?”

So I said, “If a wrong-angled triangle has whole-number sides and an area equal to its perimeter, how long are its sides?”

He slept on the the problem and gave me the answer next morning.

Can you?

(A wrong-angled triangle is of course the opposite of a right-angled triangle. Instead of two of its angles adding up to 90°, it has two angles differing by 90°).

There are now 1000 Enigma puzzles on the site, with a full archive of puzzles from Enigma 1 (February 1979) up to this puzzle, Enigma 364 (June 1986) and also all puzzles from Enigma 1148 (August 2001) up to the final puzzle Enigma 1780 (December 2013). Altogether that is about 56% of all the Enigma puzzles ever published.

I have been able to get hold of most of the remaining puzzles up to the end of 1989 and from 2000 onwards, so I’m missing sources for most of the puzzles originally published in from 1990 to 1999. Any help in sourcing these is appreciated.


2015 in review

Happy New Year from Enigmatic Code!

There are now 923 Enigma puzzles on the site. There is a complete archive of all puzzles published from January 1979 – September 1985 and also from May 2002 – December 2013. Which is about 52% of all Enigma puzzles published in New Scientist, and leaves around 860 puzzles to add to the site.

In 2015 I added 160 Enigma puzzles (as well as a handful of puzzles from other sources). Here’s my selection of the ones I found most interesting to solve programatically this year:

Older puzzles (1984 – 1985)

Newer puzzles (2002 – 2003)

During 2015 I switched to posting puzzles twice a week (on Monday and Friday, with the occasional extra posting on Wednesdays if I had something interesting to post), so there are around 8 years worth of puzzles to go.

Thanks to everyone who has contributed to the site in 2015, either by adding their own solutions (programmatic or analytical), insights or questions, or by helping me source puzzles from back-issues of New Scientist.

Here is the 2015 Annual Report for Enigmatic Code generate by WordPress.

Enigma 322: More and better goals

From New Scientist #1470, 22nd August 1985 [link]

The new method of rewarding goals scored in football matches is a great success. And some people say that the goals have increased not only in quantity but also in quality.

In this method 10 points are awarded for a win, 5 points for a draw and 1 point for each goal scored.

In a recent competition between 4 teams (ABC and D), A got 5 points, B got 35 points, C got 20 points, and D got 4 points, after some — or perhaps all — of the matches were played.

Not more than 10 goals were scored in any match and that number was only scored in one. Each side scored at least 1 goal in every game.

What was the score in each match?

It’s now 4 years since I started the Enigmatic Code site, and we have 916 Enigma puzzles on the site, which is just over half the total number of Enigma puzzles published in New Scientist between 1979 and 2013. There is a complete archive from the very first Enigma puzzle in January 1979 up to August 1985, and from June 2002 to the final Enigma puzzle in December 2013.

I aim to keep adding puzzles as long as I am able to source them. I currently need to get puzzles from #545 (January 1990) to #1154 (October 2001), along with #1166 (22nd? December 2001), #1176 (2nd March 2002), #1181 (6th April 2002) and #1186 (11th May 2002), (altogether around 600 puzzles), so I shall have to try and get to a reference library to get access to back issues of the magazine.

Thank you to everyone who has joined in by sharing their own solutions and insights.


Enigma 314: Football and addition

From New Scientist #1462, 27th June 1985 [link]

In the following football table and addition sum, letters have been substituted for digits (from 0 to 9). The same letter stands for the same digit wherever it appears, and different letters stand for different digits.

(1) The four teams are eventually going to play each other once, or perhaps they have already done so. With one exception, all the matches were won by a margin of only one goal.

Enigma 314 - A

(Two points are given for a win and one point to each side in a drawn match).


Enigma 314 - B

Find the scores in the football matches, and write out the addition sum with numbers substituted for letters.

This is the 900th Enigma puzzle to be posted to the site. The archive currently contains Enigmas 1 – 314 (Feb 1979 – Jun 1985) and Enigmas 1199 – 1780 (Aug 2002 – Dec 2013).


Enigma 311: Three score years and ten

From New Scientist #1459, 6th June 1985 [link]

The ages of George’s four daughters add up to 70. Amanda says that the exact figures are 8, 16, 21, and 25. But Brenda says that Celia is 15. Delia, on the other hand, says that Celia is 18.

This is all very confusing, until you know about a strange family habit. It is to state one’s own age correctly but to overstate the age of anyone older and to understate the age of anyone younger.

Even after making all possible deductions so far, you cannot work out the age of each daughter. For that you need a bit more information, for instance the number of years separating Belinda and Celia.

Please supply the name and age of the four.

There are now 894 Enigma puzzles on the site, and I think this is around half of all the Enigma puzzles published in New Scientist, from Enigma 1 in February 1979 to Enigma 1780 in December 2013.

To help me keep on top of posting the remaining Enigma puzzles I’m going to change the posting schedule to two puzzles a week, one on Friday and one on Monday. Which means, if I can keep sourcing the puzzles, I will have enough to last another 8.6 years!


Enigma 309: Missing letters

From New Scientist #1457, 23rd May 1985 [link]

In the following division sum, some of the digits are missing and some are replaced by letters. The same letter stands for the same digit whenever it appears, and different letters stand for different digits.

Enigma 309

Find the correct sum.

This puzzle brings the total number of Enigma puzzles on the site to 890. Since the final puzzle was Enigma 1780 you might expect that we now have 50% of all Enigma puzzles ever published available in the archive. However since there are sometimes multiple puzzles published with the same number (typically at Christmas) I don’t think we’re quite there yet. But I’ll be marking the “half-way” milestone sometime next week.


Enigma 1257: Boxing clever

From New Scientist #2413, 20th September 2003 [link]

Triangulo, the world-famous Cuban cubist, has created five boxes, each of which contains a number of cubes of the same colour, but with a different colour in each box.

At a master class, he tries to construct a particular size of cube using all the cubes from just two boxes.  But whichever pair he selects, he finds that at least one pair has too many pieces and all the other pairs have too few.

Each different pair of boxes gives a different total of cubes and the largest total is 10 more than the smallest.

With a stoke of genius, using all the cubes together, he creates instead a flat square, multi-coloured masterpiece!

How many cubes (in ascending order) are there in each box?

This puzzle is Enigma 1257 and the previous puzzle I published was Enigma 256, so there are now 1,000 puzzles left to publish (ignoring for the moment that sometimes multiple puzzles are published under the same number, and that I’ve already published Enigma 1095). Which means just under 44% of all Enigma puzzles are now available on the site.


Enigma 255: Two heads are better than one

From New Scientist #1402, 22nd March 1984 [link]

“Care for a flutter?” Alf asked Bert.

“Suits me,” Bert replied.

“We need a 50p, a 20p, a 10p and a 5p coin. I’ll contribute one of them and you the other three.”

“Then what?”

“We toss all four. If any come up Heads, then whichever of us has the most money (not the most coins) head-side up scoops all four coins. If all four come up Tails, we toss again.”

“OK. Who contributes what?”

“Well,” said Alf, “as I am putting in only one coin, I’ll decide which it is to be.”

Which coin gives the crafty Alf the best bet?

This puzzle brings the total number of Enigma puzzles on the site to 780. As the final Enigma was #1780, you might think that means there are 1,000 puzzles left to publish. But at Christmas time, especially in the 80’s, multiple puzzles were often published under the same number. (Also, I’ve so far come across three puzzles that are duplicates of already published puzzles). So, my current estimate is that I will need to publish around 1,788 puzzles to have a full archive of Enigma puzzles, so it’ll be a couple of weeks before there are around 1,000 puzzles left to go.


2014 in review

Happy New Year from Enigmatic Code!

There are now 763 Enigma puzzles on the site. There is a complete archive of all puzzles published from 1979 – 1983 and also from 2004 – 2013. Which is about 43% of all Enigma puzzles, and leaves just over 1,000 to add to the site.

In 2014 I added 182 puzzles to the site – here my selection of the ones I found most interesting to solve programatically:

Older Puzzles (1982 – 1983)
Newer Puzzles (2003 – 2005)

Of course the most challenging problem of 2014, but certainly not the most fun, was getting a phone line and internet service at my new house. But I did manage to keep up with the posting schedule (although somewhat erratically) during the 3 months that I was without internet access.

Thank you to everyone who has contributed to the site by adding their own solutions (programmed or otherwise) or their insights and questions.

Here is the 2014 Annual Report for Enigmatic Code created by WordPress.

Enigma 1271: Roman ring

From New Scientist #2429, 10th January 2004

George recalled the junior school word game of turning DOG into CAT and back to DOG, changing just one letter at a time forming a valid English word at each step, without using the same word twice.

He now proposed a similar puzzle using Roman numerals – for example one eight step loop might be:

Enigma 1271

George’s rules are that each “word” must be a valid Roman numeral of six different letters and beginning with “M”. Just one letter is changed at each step.

By analogy with DOG and CAT, George proposes to change the smallest possible Roman numeral within his rules (MCXLIV) to the largest (MDCLXV) and back to MCXLIV in the smallest possible number of steps with no repetition of any numeral.

What is the “Arabic” value of the numeral which comes exactly half way round the cycle from MCXLIV back to MCXLIV?

This completes the archive of puzzles for 2004, which means there is now a full archive of the most recent 10 years of Enigma puzzles from the start of 2004 to the final Enigma at the end of 2013 (510 puzzles).

There are also 244 puzzles from the start of Enigma in February 1979 up to December 1983 (there next puzzle published will complete 1983), bringing the grand total number of puzzles on the site to 755, which is around 42% of all Enigma puzzles.


Enigma 242: Sounds Greek

From New Scientist #1388, 15th December 1983 [link]

The three brothers Alpha, Beta and Gamma (who have different ages) get their sums consistently wrong. They all know their facts and do their calculations correctly, but just before they have to state any numerical answer they change it. One of the three brothers halves the number, one squares it, and the other reverses the number (so that 17 becomes 71, and 90 or 9 becomes 9).

I recently asked them their ages.

The eldest of the three whispered his age to the thinnest, who whispered it to Gamma, who whispered it to the youngest, who told me the answer was 27.

The next youngest of the three whispered his age to the tallest, who whispered the answer to Beta, who whispered it to the shortest, who told me the answer was 23.

Finally, the youngest whispered his age to the shortest, who whispered the answer to the thinnest, who whispered it to Alpha, who told me the answer was 16.

Describe the shortest brother (that is, name, age, and what he does to numbers).

It’s three years since I started the site and there are now 750 Enigma puzzles in the archive, all of them solved and almost all of them solved programatically. This puzzle means we have the first 242 puzzles from Enigma’s inception in February 1979 to December 1983 (there are 3 Christmas puzzles to add to complete 1983), and there’s very nearly a full 10 year archive of the most recent 507 puzzles from January 2004 to the end of Enigma in December 2013 (there are also 3 more puzzles from the start of 2004 required to complete this).

This leaves me with just over 1000 puzzles to source, publish and solve, so there are a good few years of Enigma puzzling left.


Enigma 217: Auntie Greta’s age

From New Scientist #1363, 23rd June 1983 [link]

“You want to know how old I am?” said Auntie Greta to her two nieces. “Well, as you know, your ages (in years) have no common factor higher than 1. My age (in years) is not an exact multiple of the age of either of you, but the square of my age is exactly the average of the cubes of your ages. So I am …”

How many years old?

This puzzle brings the total number of Enigmas on the site to 700. There’s a continuous archive of puzzles from Enigma 1299 on 24th July 2004 until the final puzzle, Enigma 1780 at the end of 2013 (482 puzzles). There is also a continuous archive from the start of Enigma in February 1979, up to Enigma 217 on 23rd June 1983 (217 puzzles), along with a lone puzzle from 2000 this brings us to 700 Enigmas in total, and leaves around 1085 puzzles to source and upload.

In total just over 39% of all Enigma puzzles are now available on the site. I will continue to expand the archive as time and internet connection allow.

Note: I am waiting for a phone line to be connected at my new house, so I only have sporadic access to the internet at the moment.


Enigma 213: Enigma’s square

From New Scientist #1359, 26th May 1983 [link]


Usual letters-for-digits rules. The same letter is the same digit, different letters are different digits, throughout.

What (in letters) is the result of multiplying YE by EIYIELIGMI?

Note: I am in the process of moving house, so my time and internet connectivity will be constrained over the next couple of weeks. I’ll keep posting puzzles when I can. Normal service will be resumed when the internet comes to Wales.


Enigma 1322: Geometric runs

From New Scientist #2481, 8th January 2005

In cross-country races with teams of six runners, the team scores are calculated by adding together the finishing positions of the first four runners in each team, the lowest-scoring team being the winner. Individuals never tie for any position.

The fifth and sixth runners to finish in each team do not contribute to the team score, but if they finish ahead of scoring runners in other teams they make the positions of those runners and their teams’ scores that much worse.

In a race involving seven teams of six runners, the scores of the first four teams formed a geometric progression, as did the scores of the last four teams.

What were the scores of the first and last teams?

This puzzle completes the archive of Enigmas from the beginning of 2005 up to the end of 2013 (and the end of Enigma), which is 459 puzzles. There are also 193 puzzles available from the start of Enigma (in 1979) to the beginning of 1983, which together with a random puzzle from 2000 currently makes up the 653 Enigma puzzles on the site.


Enigma 192: Merry Christmas

From New Scientist #1337, 23rd December 1982 [link]

Mr Pickwick and his friends, Mr Snodgrass, Mr Tupman and Mr Winkle spent last Christmas together. “No children this year, alas,” observed Mr Pickwick on Christmas morning, “I am very fond of children.” But just then there was a knock on the front door. Opening it, Mr Pickwick beheld more than half a dozen children, who thereupon sang God Rest Ye Merry Gentlemen. “Bless my soul!” he beamed and, fetching a tin of striped humbugs from the mantelpiece, shared them out equally and exactly among the children. The tin had once held a gross of humbugs but Mr Pickwick had already eaten some. Yet there were still enough (more than a hundred) to ensure that each child would receive more than half a dozen. In fact, if you knew how many Mr Pickwick had eaten himself, you could work out exactly how many each child got.

With the carollers gone, it was time for presents. As usual each person gave, and each received, one scarf, one pair of gloves and one bottle of port. Each gave a present to each. Mr Pickwick gave gloves to the person who gave Mr Snodgrass a scarf; and Mr Winkle gave port to the person who gave Mr Tupman gloves.

The dinner was a true feast — a sizzling goose, which weighed 8lb plus half its own weight, pursued by a pudding decked with holly and enriched with as many silver coins as you could place bishops on a chess board without any attacking any square occupied by another. Afterwards came cigars. “I would have you know”, remarked Mr Pickwick, puffing contentedly, “that if cigar-smokers always told the truth and others never did, then Mr Snodgrass would say that Mr Winkle would deny being a cigar smoker. Furthermore Mr Tupman would say that Mr Winkle would deny that Mr Snodgrass smokes cigars”. After these and other pleasant exchanges the quartet retired a trifle unsteadily to bed.

Thus were Mr Pickwick’s Yuletide jollifications exceedingly merry. He wishes similar Christmastide celebrations for revellers everywhere.

A few questions remain.

(1) How many humbugs had Mr Pickwick eaten himself?
(2) Who gave a bottle of port to whom? (four answers)
(3) What did the goose weigh?
(4) How many coins were hidden in the pudding?
(5) Was Mr Winkle a cigar-smoker?
(6) What are the four words of a, b, c, d letters in the sentences in italics [or bold] such that:
a³ – a = 20b and b² = 2bc and 2b² = c²d.

This puzzle completes the archive of Enigmas from 1982.

There are now 650 puzzles on the site, with a full archive from the start of Enigma in 1979 to the end of 1982 (192 puzzles) and also puzzles from January 2005 up to the end of Enigma in December 2013 (457 puzzles) — which is just over 36.5% of all Enigma puzzles.


Enigma 164: Putting it squarely

From New Scientist #1309, 10th June 1982 [link]

Four typical solvers of the Enigma live at the four corners of an imaginary square. They all live very happily knee deep in calculators, log tables, string, sticky tape and aspirins, emerging just occasionally to go to work. By trade they are an astronomer, bus driver, cryptographer and dustman. Here are five statements about them, just one of which is false:

(1) Paul lives one mile due NW of the astronomer;
(2) Quentin lives one mile due NE of the bus driver;
(3) Randolph lives one mile due SW of the cryptographer;
(4) Sebastian lives one mile due SE of the dustman;
(5) Randolph lives due S of the dustman.

Find which solver lives in which corner, and what each of their jobs are.

There are now 594 Enigma puzzles on the site, with a complete archive of puzzles from the start of Enigma in February 1979 up to this puzzle, originally set in June 1982 (164 puzzles). And also a complete archive of puzzles from August 2005 to the final Enigma puzzle in December 2013 (428 puzzles).

Numerically this is just over one third of the 1780 Enigma puzzles ever published. Sometimes (at Christmas) there have been multiple puzzles with the same number, so in total I expect there are slightly more than 1780 Enigmas – although there have been a couple of puzzles that have been published more than once as different Enigmas, so that brings the total back down again. Whatever the final tally is I’m choosing to celebrate the fact that I’m one third of the way towards a full archive of all Enigma puzzles now.

I shall keep adding puzzles to the site as time permits. Enjoy!


2013 in review

Happy New Year from Enigmatic Code!

There are now 581 Enigma puzzles posted to the site, with a complete archive of puzzles from February 1979 to April 1982, and October 2005 up to the final Enigma puzzle in December 2013. This is just under one third of all Enigma puzzles published in New Scientist, and leaves around 1,200 more to find and add to the site.

In 2013 I added 286 Enigma puzzles to the site, the most challenging ones have, of course, been added to the list of Challenging Puzzles, but here is a list of those that I found the most fun to solve during 2013.

New Puzzles: (Originally published in New Scientist in 2013)

Modern Classic Puzzles: (Originally published between 2005 and 2007)

Ancient Classic Puzzles: (Originally published between 1979 and 1982)

Sadly, I think this shows why New Scientist have chosen to discontinue new Enigma puzzles. Although almost a fifth of the new puzzles I put up on this site were originally published in 2013, only one of them made it to this list. (See also my 300 Enigma Analysis in April 2013. The drought never ended, and at the end of play there had been a gap of 68 Enigmas that didn’t make the Challenging list).

In 2013 I enabled Ratings on the puzzles, which means you can give the puzzles you attempt a rating between 1 and 5 stars. I try to rate the puzzles as I add them to the site, and when I come across an old puzzle that I haven’t rated I rate that retrospectively as well.

Here is the 2013 stats report for Enigmatic Code prepared by WordPress.