# Nine dots puzzle

The nine dots puzzle is a mathematical puzzle whose task is to connect nine squarely arranged points with a pen by four (or fewer) straight lines without lifting the pen or retracing any lines.
The puzzle has appeared under various other names over the years.

## History

In 1867, in the French chess journal Le Sphinx, an intellectual precursor to the nine dots puzzle appeared credited to Sam Loyd. Said chess puzzle corresponds to a "64 dots puzzle", i.e., marking all dots of an 8-by-8 square lattice, with an added constraint.
In 1907, the nine dots puzzle appears in an interview with Sam Loyd in The Strand Magazine:
    "[...] Suddenly a puzzle came into my mind and I sketched it for him. Here it is. [...] The problem is to draw straight lines to connect these eggs in the smallest possible number of strokes. The lines may pass through one egg twice and may cross. I called it the Columbus Egg Puzzle."
In the same year, the puzzle also appeared in A. Cyril Pearson's puzzle book. It was there named a charming puzzle and involved nine dots.
Both versions of the puzzle thereafter appeared in newspapers. From at least 1908, Loyd's egg-version ran as advertising for Elgin Creamery Co in Washington, DC., renamed to The Elgin Creamery Egg Puzzle. From at least 1910, Pearson's "nine dots"-version appeared in puzzle sections.
In 1914, Sam Loyd's Cyclopedia of Puzzles is published posthumously by his son (also named Sam Loyd). The puzzle is therein explained as follows:
    The funny old King is now trying to work out a second puzzle, which is to draw a continuous line through the center of all of the eggs so as to mark them off in the fewest number of strokes. King Puzzlepate performs the feat in six strokes, but from Tommy's expression we take it to be a very stupid answer, so we expect our clever puzzlists to do better; [...]
Sam Loyd's naming of the puzzle is an allusion to the story of Egg of Columbus.

## Solution

It is possible to mark off the nine dots in four lines. To do so, one goes outside the confines of the square area defined by the nine dots themselves. The phrase thinking outside the box, used by management consultants in the 1970s and 1980s, is a restatement of the solution strategy. According to Daniel Kies, the puzzle seems hard because we commonly imagine a boundary around the edge of the dot array.
The inherent difficulty of the puzzle has been studied in experimental psychology.

### Changing the rules

Various published solutions break the implicit rules of the puzzle in order to achieve a solution with even fewer than four lines. For instance, if the dots are assumed to have some finite size, rather than to be infinitesimally-small mathematical grid points, then it is possible to connect them with only three slightly slanted lines. Or, if the line is allowed to be arbitrarily thick, then one line can cover all of the points.
Another way to use only a single line involves rolling the paper into a three-dimensional cylinder, so that the dots align along a single helix (which, as a geodesic of the cylinder, could be considered to be in some sense a straight line). Thus a single line can be drawn connecting all nine dots—which would appear as three lines in parallel on the paper, when flattened out. It is also possible to fold the paper flat, or to cut the paper into pieces and rearrange it, in such a way that the nine dots lie on a single line in the plane (see fold-and-cut theorem).

## Planar generalization

Instead of the 3-by-3 square lattice, generalizations have been proposed in the form of the least amount of lines needed on an n-by-n square lattice. Or, in mathematical terminology, the minimum-segment unicursal polygonal path covering an n × n array of dots.
Various such extensions were stated as puzzles by Dudeney and Loyd with different added constraints.
In 1955, Murray S. Klamkin showed that if n > 2, then 2n − 2 line segments are sufficient and conjectured that it is necessary too. In 1956, the conjecture was proven by John Selfridge.
In 1970, Solomon W. Golomb and John Selfridge showed that the unicursal polygonal path of 2n − 2 segments exists on the n × n array for all n > 3 with the further constraint that the path be closed, i.e., it starts and ends at the same point. Moreover, the further constraint that the closed path remain within the convex hull of the array of dots can be satisfied for all n > 5. Finally, various results for the a × b array of dots are proven.

## The Nine Dots Prize

The Nine Dots Prize, named after the puzzle, is a competition-based prize for "creative thinking that tackles contemporary societal issues." It is sponsored by the Kadas Prize Foundation and supported by the Cambridge University Press and the Centre for Research in the Arts, Social Sciences and Humanities at the University of Cambridge.