**From New Scientist #1199, 20th March 1980** [link]

Sam Sorebottom has just spent his weekend cycling around part of the Fens. He arrived at one of the 16 towns by rail and thereafter cycled madly from town to town, until worn out.

The towns have names starting, conveniently, with the letters *A* to *P* and he visited each exactly twice (counting his train arrival at *A* as his first visit to *A*). His final destination was *M* and he used only the roads you see on the map.

He told a friend today that he did the towns in this precise order:

*A J N H K G B M I E P F C L D O C G N H O K D L P E I F B J A M.*

“That cannot be quite right,” said the friend, after a little thought. “No,” Sam replied, having reconsidered, “I see that I have carelessly transposed two successive towns at exactly one point in the order.”

Even without knowing which town is where on the map, can you name the transposed towns?

[enigma56]

### Like this:

Like Loading...

*Related*

Note that the map is topologically identical to a 3×3 grid with the towns at the corners of the squares. Which means in any single journey an individual town can only appear in either all odd positions or all even positions in the journey. This gives us the quick way to find the transposed towns in the journey itinerary.

This Python program then goes on to fix up the journey itinerary, and compute the map of the towns. It runs in 46ms.

Solution:The transposed towns are K and O.Here’s the correct map, laid out as a grid.