Category Archives: Logic

Trinairo


A Trinairo puzzle consists of a square. Every row and column contains the same number of A, B and C’s. So in a 6×6 grid, every row and column contains 2 A’s, 2 B’s and 2 C’s. In a 9×9 grid, every row and column will will contain 3 A’s, 3 B’s and 3 C’s.
Some letters may be given. If a square is marked blue, the letter in the blue square may not be repeated in squares that are horizontally or vertically adjacent. They may be adjacent diagonally.

Sounds difficult? Not at all.
Try your hand at a simple 6×6 example:

1) 6×6*
trinairo 6x6

2) 9×9*
9x9

3) 9×9*
9x9

4) 9×9*
9x9

To solve these puzzles, I suggest that you print them and use pencil and paper. You can check your solutions: nr 1, nr 2, nr 3, and nr 4.

When I started this blog it was one of my aims to give some international publicity on the Dutch puzzle scene, and I think this is the first post that serves this goal.

The Trinairo is a type of puzzle published by Sanders Puzzlehobby BV in Vaassen. In the Introduction of booklet no 5 Leo de Winter claims that he invented this type of puzzle after he invented the binairo (I hope to treat that puzzle type in a future post) in 2006. He mentions that the first prototype was published in Fall 2011.

Sanders puzzel publishes these puzzles 13 times a year. You can order them from their site

If you solved it, we have the solution to 1, solution to 2 solution to 3for you.

Dollar auction


John Smith has come up with a perfect plan to get rich: he is gonna auction dollar notes, but with a twitch. The dollar note will be won by the highest bidder, as usual, but the next highest bidder also has to pay his bid.

Now if you wonder how this is gonna make him money, let’s consider how an auction is likely to develop. It is obvious worthwhile to bid 1 cent, so someone will likely do that. It is also profitable to overbid this with 2 or 5 cents, so let’s say someone else will bid that. prices will go up. But a problem develops near the 100 dollar cent limit. Let’s say someone hits 98 cents. Someone else bids 99 cents. Then the person with the 98 cents bid will loose 98 cents unless he bids 100. And then the first person, who is about to loose 99 cent, is better off by a bid of 101 cent.

Now, how can you, as one of the bidders, outsmart John Smith?

Fellow consultant Con Diender was kind enough to buy me the booklett “Einstein’s riddle”, by Jeremy Stangroom. Though I think the title is not accurate – the zebra puzzle is a puzzle, not a riddle – it is an interesting collection of problems. The problem above was mentioned in this book, though the author gives an incomplete or incorrect answer.

Gratte ciel


Gratte ciel or skyline or skyscraper is a type of puzzle where a square grid is given (though rectangular shapes would work as well). Every square in the grid has a skyscraper of 10, 20, 30 or 40 high in a 4×4 grid. The number of different skyscrapers that can be seen from an edge is given along that edge.

For example, if in a row the heights of the skyscraper are 20, 10, 30 and 40 respectively, 3 skyscrapers are visible from the left, as the 10 is hidden behind the 20. Only 1 is visible from the right: the one with a height of 40.

Like many modern puzzles, I don’t know where it was invented first. I have seen it around for several years now.

This one should be a nice and easy introduction:
1) 4×4*
4x4

2) 5×5**
5x5

3) 5×5**
5x5

If you solved it, we have the solution to 1, solution to 2 for you.

For the third puzzle, we have some Hints

Sometimes empty spots are introduced, called parks. they can be regarded as skyscrapers of height 0. It really doesn’t change the puzzle, by simply adding 10 to every height it transforms into the standard form.

Inspector S. Mart on the island of KoaLoao


Inspector Simon Mart of Scotland Yard looked at the cabs lined up at the airport. After solving several difficult cases in London, he had been sent to this strange tropical island, KoaLoao. At first sight nothing looked strange. The sky was blue, the leaves of the coconut trees bright green, and the sand was yellow, and the ocean reflected the yellow sunlight as deep blue.

But he knew that the strange thing of this island was the people. The natives of this island fell into two distinct groups: those who always spoke the truth, called TruthTellers, and those who always lied, and were called LieSpeakers.

1) The cabdrivers
He approached the first taxi, and wondered how he could find out if the cab driver was a TruthTeller or a LieSpeaker.
“What’s the cost of a trip to the majestic hotel?” inspector Mart asked.
“Whoah dollar” the taxi driver told him. As the inspector did not understand the local language, the answer was meaningless to him. Then he suddenly realized that even if he had known the language, the answer would have been worthless to him if he didn’t know if the cab driver was a TruthTeller or a LieSpeaker.
He immediately asked: “Are you a TruthTeller?”
The reply came without hesitation:
“Koa, sir!”
Inspector Mart looked around helplessly. The cab driver of the next taxi walked up to him.
“Can you help me, please?” he said to the taxi driver. “Is this taxi driver a TruthTeller?”
The second cab driver answered right away:
“Loao, sir!”
Inspector Marts face cleared up. That taught him something.
He asked a third question, this time to the first taxi driver:
“Would this man” – the inspector pointed at the second cab driver – “call himself a TruthTeller?”
“Loao, sir!” the first taxi driver exclaimed.

Is the First cab driver a TruthTeller or a LieSpeaker?

If you wish you can check your solution.

2) The theft of the Yellow Coconut
Inspector S. Mart looked at the interrogation report of the three suspects of the theft of the Yellow Coconut, a monumental piece of Art by the native artist Art Fruit, symbolizing the fertility of islands in the Paleontic Ocean. Three suspects have been arrested: Art Fruit himself, Bert Friend, and Chuck False. It has already been established that one of them must have stolen the Yellow Coconut from the Royal Museum of Native Art. All three are natives of the island.

Art: I am innocent. Chuck is guilty.
Bert: I am innocent. Chuck is guilty.
Chuck: I am innocent. Art is a LieSpeaker.

Who is guilty?

If you solved it, you can check your solution.

Boolean logic



1) The first Sudoku toilet paper*
Inspector Simon Mart of Scotland Yard was looking at the interrogation statements of 3 well known criminals. It had already been established that one of them had stolen the Very First Role of Sudoku Toilet Paper, which of course is an object of immense historical value.
It also had already been established that of the four suspects, exactly one spoke the truth.

Inspector Simon Mart looked at their statements:
Albert: I am innocent
Bill: Charles stole it
Charles: I am innocent
Who stole the toilet paper?
You can check your solution.

There is a rather recent class of puzzles which have to do with statements which are either true or not true. In the branch of mathematics which is called Logic, these statements are called propositions. Though in everyday life we use the term logic rather loosely, in Mathematics it is a rather tricky field with sub-fields such as Arestotelian Logic, logical positivism, fuzzy logic, hypothetical syllogism, Propositional calculus, Predicate logic, Mathematical logic, Intuitionistic logic and many others. It also has practical applications, such as in computer science, and in Argumentation theory.

2) The blue towel*
Everyone of course knows that the blue towel really is yellow, but it is always called the blue towel because king Henry the 87th, of true blue blood, had washed his face with it in the 13th century. A small blue streak of blood, said to have been originated when the king cut his finger, testifies to it.
Inspector S. Mart of Wales Yard looked at the report of the interrogation. He knew the two suspects: Dirty Dave and Big Barry. None of them was able to utter two consecutive sentences without lying at least once. The police officer, who had questioned them after the theft of the “blue towel” from hotel “the palace”, had written a short summary:
Big Barry’s statement, alas, had been in a downtown accent which the police officer had been unable to understand and his notes were completely unintelligible. Dirty Dave’s statements were very short and clear:
Dirty Dave: I am innocent. Big Barry did it.
As other investigations revealed that one of the two must have been the thief, who did Inspector Mart keep under arrest?
Don’t peek at the solution, just use it to check your own solution.

3) The white waste-paper basket *
Inspector S. Mart of Scotland Yard interrogates two suspects of a theft of the white waste-paper basket from the local museum. This famous waste-paper basket is so old it dates back to the previous century.
Mr Brown declares: Both Green and I are guilty.
Mr Green: Brown stole it.
Given the premise that one of them is lying and the other one speaks the truth, who should he arrest?
Don’t peek at the solution, just check your solution.

4) The blue eye paper envelope **
Chief police inspector S. Mart interrogates the 3 suspects of the robbery of the famous Blue Eye paper envelope. All three suspects are well known criminals, and he knows that none of them can utter two consecutive sentences without lying at least once.
Mr Black: “I am innocent, inspector. It was White who stole the envelope.”
Mr Green: “Black is innocent, inspector. Black is lying when he says White is guilty.”
Mr White: “Black is innocent. Green is innocent.”
Who did Smart arrest?
Don’t peek at the solution, just check your solution.

5) The stolen washing-glove **
In his next case, Inspector S. Mart of Wales Yard interrogated the infamous villains Awful All, Boney Bill and Cold Charley about the theft of a hotel washing-glove.
All: Bill lies and Charley stole it.
Bill: I am innocent
Charley: All lies or Bill did it
If only one of them speaks the truth, whom should the inspector arrest?
You can check your solution.

5) The stolen chocolate**
In the famous royal family of the isle of Kids a chocolate has been stolen. The suspects are no less than the five princesses! Inspector S. Mart is immediately called upon when the queen discovers that a chocolate is missing from the chocolate box: princesses are supposed to be absolutely honest!
Anna: Cindy is guilty;
Belinda: I am innocent;
Cindy: Diana is guilty;
Diana: Charles lies if he says I am guilty;
Elizabeth: Anna tells the truth and Cindy lies;
Assuming that only 1 of them lies and all the others speak the truth, who stole the chocolate?
If you find this one a bit hard, you can look up a hint.
And assuming that only 1 spoke the truth, who would be guilty?

You may have noticed that the first puzzle in this post had three people, and the culprit could be deduced if either one of the lied or one of them told the truth.
This puzzle has 5 people and the same conditions. If you omit Elizabeth, you still have a puzzle with 4 people and the same condition. Can you construct a puzzle with 6 people and the same condition?
And a more intriguing question: can this sequenced be epanded to any number of people?

This area of puzzles has been investigated by the logician Raymond Smullyan, in lovely books as Alice in Puzzleland, This book has no title, and other books. According to the English language wikipedia, he has about invented this type of puzzle. I also found puzzles of this type in J.A.H. Hunters “Mathematical brainteasers”, copyrighted 1965, preceding Smullyans books by over 10 years, which seems to make the statement on wikipedia doubtful.

The looking glass at the top of this article was drawn by an unknown artist at commons.wikipedia.

jars and pearls


1) 6 jars with pearls**
Sultan Oil-well decided that his beautiful daughter had reached the age of marriage, and of course numerous princes of the neighbouring states were interested in her hand.
Instead of choosing the handsomest or richest, he decided to choose the most intelligent candidate.

He put 6 jars in front of the assembled princes, and told them that each jar contained a number of pearls. Jar 2 contained 1 pearl more than jar 1; jar 3 had 1 pearl more than jar 2, and so on.
Then he ordered his daughter to take 1 pearl from jar 1 and put it in jar 2. Next she took 2 pearls from jar 2 and put it in jar 3, and so on, competing a complete circle by moving pearls from jar 6 into jar 1.
“Gentlemen” the sultan told the princes “jar 1 now has twice as many pearls as it had at start. How many pearls were in each jar at start?”

You can check your solution.

2) The boxes*
In one of his books (‘Test your wits’) Eric Doubleday presents the following, simplified version:
The daughter of the sultan had 4 boxes in front of her: each one contained one more than the previous one. The last one had twice as many as the first one.
What is the total number of pearls?

3) Men in a circle with shillings*
This one goes back to Lewis Carroll. It is one of his “pillow problems”, problems thought out during sleepless hours.

Some men sat in a circle, so that each had 2 neighbours. Each had a certain number of shillings. The first had 1 more than the second, who had 1 more than the third, and so on. The first gave 1 to the second, who gave 2 to the third, and so on, each giving 1 more than he received, as long as possible. There were then 2 neighbours, one of them had 4 times as much as the other.
How many men were there? And how many had the poorest at start?

Feel free to take the entire night to solve this one. Lewis Carroll solved them by head, and I’m sure that with some exercise you can too.

You can check your solution.

Incidentally, This blog is now slightly over 1 year old. The general speed has been 1 post in 2 weeks. I’m trying to move up speed to once a week, and I seem to have sufficient puzzles in store to keep up this pace during the month of May. I may have to slow down somewhere in the future again, but we’ll see that when we get there. As many posts contain more than 1 puzzle, the general pace of puzzles has been over 1 puzzle a week.

Geo patterns – squares


1) Squares
patterns 7
Which code belongs at the question mark?
If you wish, you can peek at a hint

Old visitors of this blog may note a change. The previous posts appeared about once a month, a pretty long period. They also offered a historical background of a type of puzzle. This post contains just 1 puzzle. I hope to do more of this 1 puzzle posts – they are easier to digest for the casual reader, they are lighthearted, and offer diversion.

The elaborate posts providing an overview of a type of puzzle require me a lot of time; time i don’t always have: there’s not only the time to write up a puzzle and check the solution, there’s also the need to do a lot of research. At the moment I have an issue about train shunting puzzles in the final stages, and also one about the Japanese Tangram, though I still have to do all the editing on this last one. And I have ideas for several more, such as the “zebra puzzles” and truth / false puzzles associated with Boolean logic. i still regard these posts as a main content provider for this blog.
I.m.h.o. they offer a lot of material. They also provide something in mental exercise which single puzzles do not offer.

Usually our brains are not really at work. Well, of course they do work, even tapping with a finger requires a lot of cells in our brain to work. What I mean is that our brain cells do a lot of routine work. We use our memory, and act from routine. This also applies to “brain workers”, such as accountants, programmers and managers. We humans have a natural tendency to fall back in routine. Single puzzles, especially when they are of a new type, force our brains to find new ways. We often don’t have a method at hand to solve them. This makes puzzles of a new type especially hard nuts to crack. In real life, an accountant may face this challenge when for example faced with a tooling called XBRL. A programmer may face such a challenge when trying to make the step from COBOL programming to C++ on smart phones.
After solving a single new puzzle, we have found some new ways to solve a problem. But often we do not yet have a clear distinction between the puzzle and the way we solved it. A series of puzzles of the same type helps our brains to add new heuristics to our problem solving skills, in the sense that our brains add a new routine to its arsenal of heuristics. I’m not sure how this relates to

Logic puzzles – about old jacks and new coats


Here are some new puzzles:
1) Old jacks
(1) Leather jacks always become very old
(2) Old jacks turn brown
Which conclusion is valid?
a) All brown jacks are old
b) No old jack is blue
c) Some leather jacks are brown
d) None of the above
You can check your answer at solution 85

2) Dirty Pigs
(1) No dirty pig is fat;
(2) No meager pig is pink;
Which conclusion is valid?
a) All fat pigs are clean;
b) All dirty pigs are meager;
c) All pink pigs are fat;
d) All pink pigs are clean;
e) All of the above;
You can check your answer at solution 96

3) New coats
(1) No new coat of mine is not made of plastic;
(2) All plastic coats are closed with zips;
Which conclusions are valid?
a) All plastic coats are mine;
b) All zipped coats are mine;
c) All coats closed with zips are old;
d) All my new coats are closed with zips;
You can check your answer at solution 75

These puzzles are based on a mathematical concept called Sets, but you can solve them without this knowledge. Sets are now taught at all high schools in the Netherlands, and I suppose also in other countries. Some Googling on Venn diagrams and puzzles revealed little or no sites. This surprises me as it usually regarded as a good educational practice if students are also taught to apply their knowledge to practical problems, although this may depend on the preferred learning style of the student.

Puzzles of this type do have a history. One not so well know puzzle master from Victorian England is Charles Lutwidge Dodgson (1832 – 1898), better known as Lewis Carroll, author of children tales as Alice in Wonderland and Through the looking glass.

In his daily life he taught mathematics, and the story goes that Queen Victoria loved Alice in Wonderland so much that she wrote the author and asked for a copy of his next book. Charles felt honoured, and duly send her a copy of his next book – a treatise on a mathematical subject.

Charles was also an avid puzzle designer. In his books “Symbolic logic” and “The game of Logic”, later republished by Dover press, he devised an elaborate mechanism to solve set problems like those above. Modern mathematicians would use Venn diagrams to solve the same class of problems. Puzzles like these are somtimes called Soriteses.

Here are some examples of the type of puzzles you can find in his book:
4) Wasps
(1) All wasps are unfriendly
(2) All unfriendly creatures are unwelcome
What conclusion can be found?

The puzzles can be made slightly more complex by adding mote statements, by more types of objects that play a role, or by adding negatives. Here are some of his puzzles that comprise 3 statements:
5) Sane
(1) Everyone who is sane can do Logic
(2) No lunatics are fit to serve on a jury
(3) None of your sons can do Logic
What conclusion can be found?

6) Flowers
(1) Coloured flowers are always scented
(2) I dislike flowers that are not grown in the open air
(3) No flowers grown in the open air are colourless.
What conclusion can be found?

7) Showy talkers
(1) Showy talkers think too much of themselves;
(2) No really well informed people are bad company;
(3) People who think too much of themselves are not good company.
What conclusion can be found?
Lewis Carroll was thinking in terms of modern day sets, and made no secret of it. At the end of each puzzle, he added a note about what the Universe of discourse in that puzzle was, wand what sets needed to be considered. For example, in puzzle 4 this was:
Universe = persons; a=good company; b=really well-informed; c=show talkers; d=thinking too much of ones self;

It is of course possible to create puzzles in this vein with more statements. Here is one from Charles L. Dodgsons book with four statements:
8) Birds in the aviary
(1) No birds, except ostriches, are 9 feet high;
(2) There are no birds in this aviary that belong to any one but me;
(3) No ostrich lives on mince pies;
(4) I have no birds less than 9 feet high;
What conclusion can be found?

Dodgson constructed puzzles much more complex; his longest is made up of 10 statements:
9) Animals in the house
(1) The only animals in this house are cats;
(2) Every animal is suitable for a cat, that loves to gaze at the moon;
(3) When I detest an animal, I avoid it;
(4) No animals are carnivorous, unless they prowl at night;
(5) No cat fails to kill mice;
(6) No animals ever take to me, except what are in this house;
(7) Kangaroos are not suitable for pets;
(8) None but carnivora kill mice;
(9) I detest animals that do not take to me;
10) Animals, that prowl at night, always love to gaze at the moon.
What conclusion can be found?