**From New Scientist #1099, 20th April 1978** [link]

We live, we three, on the Imperfect Isle,

Where all is not just what it ought to be.

One is a Wotta-Woppa and he never

Tells what is true, in fact a liar he.

And then there is another one who cannot

Make up his mind. Oh, shall I tell a lie?

He is a Shilli-Shalla, and makes statements,

One true, one false. But which? The constant cry.

The third one is a Pukka and we find

Nothing but truth comes from the third man’s mind.

Single figures all our dwellings,

And each one is different.

Three statements each, so read with care

And use your loaf to find what’s meant.

**A:**

(1) First let me say no Shilli-Shalla I,

But I’m afraid I cannot tell you why!

(2) Then I point out that where numbers are concerned

The lower the truer; that’s the fact for which you yearned.

(3) Thirdly, no tricks,

My number’s less than six.

**B:**

(1) and (2) A Pukka, I, and live at number one.

That’s two statements in a single line.

(3) Perfect, you might say, but not as perfect as *C*‘s square.

**C****:**

(1) *A* and *B* live on either side of me.

(2) Who is the Wotta-Woppa? Why it’s *B*.

(3) And now our verse

Has done its worst.

Just to finish with a wink,

To get this right you’ll have to think.

And with a nod,

*A*‘s number is not odd.

Where do *A*, *B* and *C* live and what are their tribes?

[puzzle48]

### Like this:

Like Loading...

Solving this puzzle comes down to interpreting C’s statement (1) that “A and B live on either side of me”.

I originally took it to mean “A is my next door neighbour on one side, and B is my next door neighbour on the other side” (treated as a single statement). And assuming the houses are in a straight line numbered sequentially from 1 to 9 (or even from 0 to 9), I get 38 possible solutions (although it does include the published solution).

But taking the statement to mean: “A lives on one side of me (but not necessarily next door) and B lives on the other side of me (but not necessarily next door)” gives only one answer, which is the published solution, so this is probably what the setter had in mind.

I also had a bit of doubt over to the interpretation of B’s statement (3) “Perfect, you might say, but not as perfect as C‘s square”, but settled on: “C’s house number is a perfect square”.

There is also the issue of who is narrating the poem – it implies that it is one of the tribesmen themselves. I assumed that all the text of the poem before we get to statements is true, so it must be the Pukka narrating it. But each of A, B and C is referred to in the third person in the text.

This Python program runs in 98ms. (Note that the use of parameter unpacking on line 31 means this won’t execute directly under Python 3, but the [[

`unpack()`

]] function from theenigma.pylibrary can be used to work around this issue, as I have done in the code posted onrepl.it).Run:[ @repl.it ]Solution:A is a Shilli-Shalla, and lives at number 7. B is a Pukka, and lives at number 1. C is a Wotta-Woppa, and lives at number 9.