## Monday, December 28, 2009 ... //

### Einstein's puzzle

My sister gave me the following puzzle to solve. It's likely that she has solved it somewhat faster than I did. ;-) Some sources claim that as many as 98% of the people can't solve it at all.

The puzzle is sometimes attributed to Albert Einstein although it's questionable whether he would waste time with similar nonsense. More likely, someone borrowed Einstein's name to promote the riddle. If Einstein has something to do with it, the reason he invented it was probably to get rid of annoying students. :-)

The problem

At any rate, there are five houses. Each of them has one of five different left-right positions, five different colors, five different nationalities of the owners, five different favorite cigarette brands they like, five different beverages they drink, and five different species of pets they shelter. Moreover,

1. The Englishman lives in the red house.
2. The Swede keeps dogs.
3. The Dane drinks tea.
4. The green house is just to the left of the white one.
5. The owner of the green house drinks coffee.
6. The Pall Mall smoker keeps birds.
7. The owner of the yellow house smokes Dunhills.

8. The man in the center house drinks milk.
9. The Norwegian lives in the first house.
10. The Blend smoker has a neighbor who keeps cats.
11. The man who smokes Blue Masters drinks bier.
12. The man who keeps horses lives next to the Dunhill smoker.
13. The German smokes Prince.
14. The Norwegian lives next to the blue house.
15. The Blend smoker has a neighbor who drinks water.
Who keeps fish?

Can you write a Mathematica program that makes the solution automatic?

Warning: many TRF readers are both bright enough & patient as well as lucky (assuming that they haven't copied the solution from an internet source) ;-) so don't open the comments if you want to avoid spoilers.

For a brutally complete spoiler, see:
Einstein's puzzle: a step-by-step solution
by your humble correspondent.

#### snail feedback (0) :

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-1828728-1', 'auto'); ga('send', 'pageview');