OML Search

Sudoku Number Puzzle


Sudoku Rules And Sample

Try to fill the grid below with the integers 1 to 9 such that each row, column, and box (3 × 3 regions bordered by thick lines) contains a single instance of all the integers from 1 to 9. Click on the image to see the solution.

sudoku puzzle

Learn How To Solve Sudoku

Solving Sudoku involves several different logical methods or strategies which take lots of practice to master.

Or you may want to try out the following Sudoku puzzle. You can also select the difficulty level and generate a new puzzle.


History Of Sudoku

The puzzle seems to have first been published in New York in the late 1970s by the specialist puzzle publisher Dell in its magazine Math Puzzles and Logic Problems, under the title Number Place. The person who designed the puzzle and composed the first of its kind is not recorded, but it was probably Walter Mackey, one of Dell's puzzle constructors.

The puzzle was introduced in Japan by Nikoli in the paper Monthly Nikolist in April 1984 as "Sūji wa dokushin ni kagiru (数字は独身に限る)", which can be translated as "the numbers must be single" or "the numbers must occur only once" (独身 literally means "single; celibate; unmarried"). The puzzle was named by Kaji Maki (鍜治 真起), the president of Nikoli. At a later date, the name was abbreviated to Sudoku (数独, pronounced sue-do-koo; sū = number, doku = single); it is a common practice in Japanese to take only the first kanji of compound words to form a shorter version. In 1986, Nikoli introduced two innovations which guaranteed the popularity of the puzzle: the number of givens was restricted to no more than 30 and puzzles became "symmetrical" (meaning the givens were distributed in rotationally symmetric cells). It is now published in mainstream Japanese periodicals, such as the Asahi Shimbun. Nikoli still holds the trademark for the name Sudoku; other publications (at least in Japan) use other names.

In 1997, retired Hong Kong judge Wayne Gould, 59, a New Zealander, was enticed by seeing a partly completed puzzle in a Japanese bookshop. He went on to develop a computer program that spontaneously produces puzzles; this took over six years. He promoted the puzzle to The Times in Britain, which launched it on 12 November 2004. Three days later The Daily Mail began to publish the puzzle under the name "Codenumber". Nationwide News Pty Ltd began publishing the puzzle in The Daily Telegraph on 20th May 2005; five puzzles with solutions were printed that day. The puzzles by Pappocom, Wayne Gould's software house, have been printed daily ever since. The immense popularity of Sudoku in British newspapers and internationally has led to it being dubbed in the world media in 2005 variously as "the Rubik's cube of the 21st century" or the "fastest growing puzzle in the world".

Bringing the process full-circle, Kappa reprints Nikoli Sudoku in GAMES Magazine under the name Squared Away; the New York Post is now also publishing the puzzle. It is also often included in puzzle anthologies, such as The Giant 1001 Puzzle Book (under the title Nine Numbers).

Curiously, Dell, the apparent inventors of the puzzle, have made no attempts to cash in on this phenomenon, or even release a public statement about it.

Mathematical Trivia

The general problem of solving Sudoku puzzles on n2×n2 boards of n×n blocks is known to be NP-complete. This gives some vague indication of why Sudoku is hard to play, but on ordinary 9×9 or 16×16 boards the problem is finite and can be solved by a deterministic finite automaton that knows the entire game tree. However, for a non-trivial starting board, the game tree is very large and so this method is not feasible. The problem of solving a puzzle that is known to have only one solution is in UP.

Solving Sudoku puzzles can be expressed as a graph coloring problem. The aim of the puzzle in its standard form is to construct a proper 9-coloring of a particular graph, given a partial 9-coloring. The graph in question has 81 vertices, one vertex for each cell of the grid. The vertices can be labeled with the ordered pairs x, y, where x and y are integers between 1 and 9. In this case, two distinct vertices labeled by x, y and x', y' are joined by an edge if and only if:

  • x=x', or,
  • y=y', or,
  • x/3 and y/3

The puzzle is then completed by assigning an integer between 1 and 9 to each vertex, in such a way that vertices that are joined by an edge do not have the same integer assigned to them.

A valid Sudoku solution grid is also a Latin square. There are significantly fewer valid Sudoku solution grids than Latin squares because Sudoku imposes the additional regional constraint. Nonetheless, the number of valid Sudoku solution grids for the standard 9×9 grid was calculated by Bertram Felgenhauer in 2005 to be 6,670,903,752,021,072,936,960, which is roughly the number of micrometers to the nearest star. The result was derived through logic and brute force computation. The derivation of this result was considerably simplified by analysis provided by Frazer Jarvis and the figure has been confirmed independently by Ed Russell. The number of valid Sudoku solution grids for the 16×16 derivation is not known.

The maximum number of givens that can be provided while still not rendering the solution unique, regardless of variation, is four short of a full grid; if two instances of two numbers each are missing and the cells they are to occupy are the corners of an orthogonal rectangle, there are two ways the numbers can be added. The inverse of this - the fewest givens that render a solution unique - is an unsolved problem, although the lowest number yet found for the standard variation without a symmetry constraint is 17, a number of which have been found by Japanese puzzle enthusiasts, and 18 with the givens in rotationally symmetric cells.

Rotate to landscape screen format on a mobile phone or small tablet to use the Mathway widget, a free math problem solver that answers your questions with step-by-step explanations.

You can use the free Mathway calculator and problem solver below to practice Algebra or other math topics. Try the given examples, or type in your own problem and check your answer with the step-by-step explanations.

OML Search

We welcome your feedback, comments and questions about this site or page. Please submit your feedback or enquiries via our Feedback page.

[?] Subscribe To This Site

follow us in feedly
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines