Enigmatic Code

Programming Enigma Puzzles

Enigma 419: Painting by numbers

From New Scientist #1569, 16th July 1987 [link]

Instructions

1. You will need four copies of:

Enigma 419 - 1

labelled A, B, C, D.

2. Take A. The artist Pussicato signs the top row and you sign the bottom row; your signature must contain 9 letters.

3. Fill in B by using A as follows. Take each A square in turn, find the position of its letter in the alphabet and from that number subtract the appropriate multiple of 5 to leave a number from 1 to 5. Put that number in the corresponding B square.

4. Fill in C by using B as follows. Each square touches three or five other squares, including touching along a side or at a corner. Take each B square in turn and add up the numbers in the squares it touches. From the total subtract the appropriate multiple of 5 to leave a number from 1 to 5. Put that number in the corresponding C square.

5. Paint D by using C as follows.Number the five colours, Red, Blue, Green, Yellow, White, 1 to 5 in any order you like. Take each C square in turn and find the colour you have given its number. Paint the corresponding D square with that colour.

Example

Enigma 419 - 2

A painter whose name involves only the first five letters of the alphabet produced:

Enigma 419 - 3

What was the painters name?

[enigma419]

Advertisements

Puzzle 63: One and one make two

From New Scientist #1114, 3rd August 1978 [link]

“Never tell them more than you need”, as Professor Knowall has so often said. “And pay them the compliment, my dear Sergeant Simple, of supposing that they are capable of putting one and one together to make two”.

As my readers will know, the professor, though he does not often have the time to turn his attention to anything other than crime, is very interested in football and likes making up and solving football puzzles. His remarks about putting one and one together to make two seemed rather silly to me at first, but I soon realised what he meant when he showed me the puzzle.

It was about four football teams, and gave some information concerning the number of matches played, won, lost and so on. But of the 24 pieces of information that one might have expected only 12 were given. One did indeed need to put one and one together to make two.

The information was as follows:

“That ought not to be too hard for you, my dear Sergeant”, he said, “but I must add also the information that not more than seven goals were scored in any match”.

I’m afraid it was too much for me, but I hope that the readers will be able to find out the score in each match.

(Each team is eventually going to play each other once).

[puzzle63]

Enigma 1092: A prime age

From New Scientist #2248, 22nd July 2000

Marge, April, May, June, Julia and Augusta have all celebrated their birthday today. They are all teenagers and with the exception of the one pair of twins their ages are all different.

Today, only Marge and April have ages which are prime numbers, but the sum of the ages of all the girls is also a prime number. On their birthday last year, only May and June had ages which were prime numbers, but again the sum of the ages of all the girls was a prime number. On their birthday two years before that, only May and Julia had ages which were prime numbers, but even then, the sum of the ages of all the girls was again a prime number.

How old is Augusta?

[enigma1092]

Enigma 418: Let us divide

From New Scientist #1568, 9th July 1987 [link]

In the following division sum each letter stands for a different digit:

Re-write the sum with the letters replaced by digits.

[enigma418]

Tantalizer 471: Hop, skip and jump

From New Scientist #1022, 14th October 1976 [link]

Hop, Skip and Jump live in different houses in Tantalus St., which is numbered from 1 to 100. Here is what they have to say about the matter:

Hop: “My number is divisible by 7. Skip is much too fat. Jump’s number is twice mine.”

Skip: “Hop lives at 28. My number is one third of Jump’s. Jump and I are not both even.”

Jump: “Hop lives at 91. Skip lives at 81. My number is divisible by 4.”

One of them has thus made three true statements, another three false and the remaining fellow has alternated, uttering either true, false, true or false, true, false.

Who lives where? And is Skip much too fat?

A correction to this puzzle was published with Tantalizer 473. The problem statement above has been revised accordingly.

[tantalizer471]

Enigma 1093: Primed to spend

From New Scientist #2249, 29th July 2000

Bill’s credit card has the usual four four-digit numbers, which are in ascending order of size. All are prime numbers and the sum of the digits of each is the same.

The digits in the first number are all different and the third number is the first number reversed. The digits in the second number are all different and the fourth number is the second number reversed. The last digits of the four numbers are all different.

He has a hopeless memory for figures, but he can always work out his four-digit PIN from his card, because he can remember that it is equal to the difference between the first and third numbers (or the difference between the second and fourth numbers, which is the same) and happens to be a perfect square.

What is the fourth number?

[enigma1093]

Enigma 417: Snooker triangle

From New Scientist #1567, 2nd July 1987 [link]

We have a small snooker table at home, everything being in a reduced form of the real thing. The point system is the same: that is, 1 for a red, with each potted red enabling the player to try for one of six colours with points from 2 to 7. (For example, the blue is worth 5). At the end of the frame the six colours are potted in turn.

Last Saturday, I played with my daughter and the frame was completed in just one visit to the table by each of us. I opened, potted a red with my first shot, then potted a colour (which, of course, was brought out again) and then, whenever I successfully potted a colour after a red, it was always that same colour. Then I made a mistake (without any penalties) and my daughter took over. She, too, always followed a red by a particular colour, but a different one from mine. She cleared the table and we drew on points: we decided to replay the next day.

Surprisingly, all that I said about Saturday’s frame could be said about Sunday’s, but this time we drew with one more point each than on the previous day.

How many times, in total for the two frames, did I pot the blue?

How many balls does my small table have?

[enigma417]

Puzzle 64: Addition: digits all wrong

From New Scientist #1115, 10th August 1978 [link]

Each digit in the addition sum below is wrong. But the same wrong digit stands for the same correct digit wherever it appears, and the same correct digit is always represented by the same wrong digit.

Find the correct addition sum.

[puzzle64]

Enigma 1094: De-fence

From New Scientist #2250, 5th August 2000

In my garden there is a circular pond less than two metres across. Because my young nephew was coming to stay I asked a local handyman to erect a fence around it. He did this by taking three straight lengths of fencing, two of them equal, and each of them a whole number of metres long. He formed these into a triangle which fitted around the pond.

I complained that this took up too much space, so he adapted the construction to make a hexagonal fence around the pond. Opposite sides of the hexagon were parallel, three of the sides used bits of the original triangular fence without moving them, and all six sides touched the edge of the pond. The total perimeter of the new hexagonal fence was precisely half of that of the original triangular fence.

What were the lengths of the three original straight pieces of fencing?

[enigma1094]

Enigma 416: Short notice

From New Scientist #1566, 25th June 1987 [link]

I am making a noticeboard from a sheet of cork. In my search for some wood to back it, I came across two pieces having the same area as the cork, but different dimensions. To make the first piece fit, it would have been necessary to cut A feet off the cork and B feet off the wood, and to fit the second would have required C feet to be cut off the cork and D feet off the wood.

When I arrived at the timber yard I had forgotten the dimensions of my piece of cork. I remember only that, in measuring A, B, C and D, I obtained 1 foot, 2 feet and 4 feet only, with one measurement occurring twice. Which one occurred twice and in what order I obtained these measurements I forget.

All I can remember is that the cork measured a whole number of inches along each side and that none of its sides measured a whole number of feet.

Can you help me to deduce the size of wood I need to buy before the woodyard closes?

(Answers in inches, please: 1 foot = 12 inches).

[enigma416]

Tantalizer 472: Regular soldiers

From New Scientist #1023, 21st October 1976 [link]

The republic of Popularia has the largest police force and the longest pedestrator in the world. The latter is a moving pavement which rolls at uniform speed in both directions between the Palace of Justice and the Ministry of Fun. Rolling along with it are armed guards, standing stiffly at attention and posted at regular intervals.

If you too stood at attention on the pedestrator and timed one minute, starting and ending half way between two guards coming the other way, you would be surprised how many guards rolled past you during the minute. Or perhaps you would not. Anyway the number would be eight times the speed of the pedestrator in miles per hour.

You probably long to know the speed of the device. But that is a state secret. So you will have to be content to discover how far apart the guards are posted.

This issue of New Scientist also contains an article of the computer assisted proof of The Four Colour Theorem.

[tantalizer472]

Enigma 1096: Prime break

From New Scientist #2252, 19th August 2000

At snooker a player scores 1 point for potting one of the 15 red balls, but scores better for potting any of the 6 coloured balls: 2 points for yellow, 3 for green, 4 for brown, 5 for blue, 6 for pink, 7 for black.

Davies potted his first red ball, followed by his first coloured ball, then his second red ball followed by his second coloured ball, and so on until he had potted all 15 red balls, each followed by a coloured ball. Since the coloured balls are at this stage always put back on the table after being potted, it is possible to pot the same coloured ball repeatedly.

Davies’ break was interesting as after he had potted each of the 15 coloured balls his cumulative score called by the referee was always a prime number.

After potting the 15 red balls and 15 coloured balls, a player’s final task is to attempt to pot (in this order) yellow, green, brown, blue, pink and black. I won’t tell you how many of those Davies managed to pot, nor could you be sure how many of them he potted even if I told you his total score for the break.

What was that total score?

[enigma1096]

Enigma 415: Buses galore

From New Scientist #1565, 18th June 1987 [link]

The Service Bus Company runs buses on the route shown by the map:

Enigma 415

Each bus starts its journey at the Terminus, T, and goes towards A. At each crossroads it goes straight across. The bus eventually enters T from B and leaves for C. It finally arrives at T from D, to complete its journey. The time to go from one crossroads to the next is three minutes and so it takes one hour to complete the journey.

Buses are timetabled to leave T on the hour and at various multiples of three minutes after the hour. When a bus completes a journey it immediately begins its next journey and so the timetable repeats each hour.

This means each bus reaches a crossroads at times 00, 03, 06, 09, …, 54, 57. The buses are timetabled so that no two buses ever reach the same crossroads at the same time. Also the buses are timetabled so that the maximum number of buses are running on the route.

How many buses are running on the route?

[enigma415]

Puzzle 65: Division: figures all wrong

From New Scientist #1116, 17th August 1978 [link]

In the following, obviously incorrect, division sum the pattern is correct, but every single figure is wrong.

The correct division, of course, comes out exactly. All the digits in the answer are only 1 out, but all the other digits may be incorrect by any amount.

Find the correct figures.

[puzzle65]

Enigma 1097: Chessboard triangles

From New Scientist #2253, 26th August 2000

Take a square sheet of paper of side 1 kilometre and divide it into small squares of side 1 centimetre. Colour the small squares so as to give a chessboard pattern of black and white squares.

When we refer to a triangle, we mean a triangle OAB, where O is the bottom left corner of the square of paper, A is on the bottom edge of the paper and B is on the left hand edge of the paper.

Whenever we draw a triangle then we can measure how much of its area is black and how much is white. The score of our triangle is the difference between the black and white areas, in square centimetres. For example if OA = 3 cm and OB = 2 cm then we find the score of the triangle is 1/6 cm².

Question 1. What is the score of the triangle with OA = 87,654 cm and OB = 45,678 cm?

Question 2. What is the score of the triangle with OA = 97,531 cm and OB = 13,579 cm?

Question 3. Is it possible to draw a triangle on the paper with a score greater than 16,666 cm²?

[enigma1097]

Enigma 414: Nicely bungled, Sir!

From New Scientist #1564, 11th June 1987 [link]

My Uncle, I fear, has done it again. He has been taking great interest in the activities of four local football teams — A, B, C and D — and he managed to obtain some details, not very complete ones, I am afraid, of the matches played, won, lost, drawn and so on. But no one will be surprised, perhaps not even Uncle Bungle, to hear that one of the figures given was incorrect.

The details that he had looked like this:

Enigma 414

Which figure was wrong? What was the score in the matches that had been played?

[enigma414]

Tantalizer 473: Pigeon post

From New Scientist #1024, 28th October 1976 [link]

In the name of democracy the officers of our Pigeon Fanciers Club announce that they would not stand for re-election this year. This cheered the rest of us no end, until we found that it applied only individually. Collectively they planned to retain all five offices for the umpteenth year running.

To allay suspicions, the plot was a mite complex. There would be no direct swaps. Bumble would take the post of the man who was to become Organiser. Crumble would take the post of the man who was to become Treasurer. Dimwit would take the post of the man who would take Amble’s post. The current Vice-President would take the post vacated by the new President. Eggfrith would become Secretary, despite his wish to become the Organiser.

It all worked flawlessly, of course.

Who was and is what?

[tantalizer473]

Enigma 1098: Soccer heroes

From New Scientist #2254, 2nd September 2000

There are seven teams in our local football league. Each team plays each of the others once during the season. We are approaching the end of the season and I have constructed a table of the situation so far, with the teams in alphabetical order.

Here are the first two rows of the table, but with digits consistently replaced by letters, different letters being used for different digits.

What was the score when Albion played Borough?

[enigma1098]

Enigma 413: Quargerly dues

From New Scientist #1563, 4th June 1987 [link]

A native of Kipwarm had a gold necklace consisting of links joined together to form one long unbroken loop of chain.

He has fallen on hard times and to pay his gas bill he is going to give the gas board one link of his gold necklace every day.

He has broken just a certain number of links (thus forming that number of individual links and some other variously-sized pieces of chain). By giving away and taking back certain pieces he can ensure that, at the rate of one a day, his total of links decreases and the board’s increases. Furthermore, had his necklace had one more link, it would have been necessary to break one more in order to pay the board in this way.

His necklace will last him a whole number of quargers (a Kipwarmian period of a certain number of days, less than one year). But the board has offered him an alternative way of paying. His first quarger’s gas will be free, the next will cost him one link, the next two links, the next quarger’s will cost him four links, and so on, doubling each quarger. At that rate the necklace will pay for the same number of days’ gas.

How many days are there in a Kipwarmian quarger?

[enigma413]

Puzzle 66: Hopes and successes on the island

From New Scientist #1117, 24th August 1978 [link]

I had been away from the Island of Imperfection for some time and I was amused — and rather distressed — on a recent visit to find that there was now another tribe there.

But I had better explain. In the old carefree days, which I knew so well, there had been three tribes on the island. The Pukkas, who always told the truth, the Wotta-Woppas, who never told the truth, and the Shilla-Shallas, who made statements which were alternately true and false or false and true. I cannot pretend to know how it happened but now there is another tribe who call themselves the Jokers. I am afraid that all I can tell you about them is that in making three statements their truth-telling rules are any rules that are different from those of the other three tribes. Just to be different! That seems to be all they are interested in, and I find it hard to restrain myself from making some acid comments about the modern generation. They don’t seem to be much interested in fun or laughter but in achievement. And it is no doubt because of this that the main currency of the island is called a Success, and it made up of 100 Hopes.

Four men, ABC and D (one from each tribe), make statements as follows:

A: (1) B makes more true statements than D does.
A: (2) My income is 7 Successes and 50 Hopes per week more or less than D‘s income.
A: (3) C is a Wotta-Woppa.

B: (1) A‘s income is 2 Successes and 50 Hopes per week more or less than mine.
B: (2) D‘s second statement is true.
B: (3) C‘s income is 8 Successes and 50 Hopes per week.

C: (1) D is a Joker.
C: (2) My income is 10 Successes per week.
C: (3) B is a Pukka.

D: (1) B is a Joker.
D: (2) My income is 1 Success per week more or less than C‘s income.
D: (3) C is not a Joker.

It was rather interesting to notice that the more truthful a man the less was his income. All their incomes were a multiple of 50 Hopes.

Find the tribes to which ABC and D belong and their weekly incomes.

[puzzle66]