From Raymond Smullyan’s Logical Labyrinths (2009):
We now visit another knight/knave island on which, like on the ﬁrst one, all knights tell the truth and all knaves lie. But now there is another complication! For some reason, the natives refuse to speak to strangers, but they are willing to answer yes/no questions using a secret sign language that works like this:
Each native carries two cards on his person; one is red and the other is black. One of them means yes and the other means no, but you are not told which color means what. If you ask a yes/no question, the native will ﬂash one of the two cards, but unfortunately, you will not know whether the card means yes or no!
Problem 3.1. Abercrombie, who knew the rules of this island, decided to pay it a visit. He met a native and asked him: “Does a red card signify yes?” The native then showed him a red card.
From this, is it possible to deduce what a red card signiﬁes? Is it possible to deduce whether the native was a knight or a knave?
Problem 3.2. Suppose one wishes to ﬁnd out whether it is a red card or a black card that signiﬁes yes. What simple yes/no question should one ask?
Slightly adapted from Joseph Degrazia’s Math is Fun (1954):
Six Writers in a Railway Car
On their way to Chicago for a conference of authors and journalists, six writers meet in a railway club car. Three of them sit on one side facing the other three. Each of the six has his specialty. One writes short stories, one is a historian, another one writes humorous books, still another writes novels, the fifth is a playwright and the last a poet. Their names are Abbott, Blake, Clark, Duggan, Eccles and Farmer.* Each of them has brought one of his books and given it to one of his colleagues, so that each of the six is deep in a book which one of the other five has written.
Abbott reads a collection of short stories. Clark reads the book written by the colleague sitting just opposite him. Blake sits between the author of the short stories and the humorist. The short-story writer sits opposite the historian. Duggan reads a play. Blake is the brother-in-law of the novelist. Eccles sits next to the playwright. Abbott sits in a corner and is not interested in history. Duggan sits opposite the novelist. Eccles reads a humorous book. Farmer never reads poems.
These facts are sufficient to find each of the six authors’ specialties.
*In the original, the surnames were Blank, Bird, Grelly, George, Pinder and Winch.