INCLUDE_DATA

Archive for the ‘General’ Category

How many Sudoku games?

Monday, July 21st, 2008

A quick way to estimate the number of sudoku solutions:

First, defining terminology:
A sudoku grid is a 9×9 grid broken up into 9 3×3 grids. Let A, B, C, D, E, F, G, H, J be 3×3 grids then
A B C
D E F
G H J

is a sudoku board. Letter each grid the same using lower case letters. Thus Aa is the top left corner of the sudoku board and Jj is the bottom right corner.

Now, some assumptions that reduce the number of solutions to be calculated:

  • If A, B, C, D, G are known, there are 4 solutions since there are 4 unfilled grids.
  • Assume that the top row begins 1, 2, 3, 4 and that within a grid, the entries of the top row ascend in value.
  • Assume that grid A is filled 1…9 in order moving left to right, top to bottom.

As it turns out, this underestimates the real number by less than 4% (because the first assumption isn’t true). Here’s the calculation:

Number of ways to choose grid B given the above assumptions:

  • Choose 4, 5, 6 for Ba, Bb, Bc. This forces the rest of the rows of grids B and C.
  • Choose 4 for Ba and any other legal choices for Bb and Bc. This leads to 3 distinct ways of filling the rows of grids B and C. There are 9 such choices (5 choose 2 - 1), so this leads to 27 row possibilities.

3 * 9 = 27 + 1 = 28

Now, the top three rows have been partitioned. Permitting permutations of the second and third row of grids B and C gives 6 * 6 * 6 * 6 = 1296 orderings for each of the 28 partitionings. This gives 28 * 1296 = 36,288 different possibilities for grids A, B, C. Taking advantage of the symmetry of the sudoku board, there are also 36,288 possibilities for A, B, G. Crossing the two, gives 36288 * 36288 = 1,316,818,944 possibilities for the corner grids. It was assumed that each of these would lead to four solutions:
1,316,818,944 * 4 = 5,267,275,776 solutions.

Ed Russel and Frazer Jarvis worked out the actual number as 5,472,730,538. You can see how here.

Balance in Written Mathematics

Saturday, July 19th, 2008

Ideally, authors should write with a target audience in mind. If a writer is skillful, this will increase the enjoyment of the reader. It is, perhaps, nowhere more important to keep the audience in mind than when writing mathematics.

The more mathematically sophisticated the intended reader, the more information which can be communicated in a short space. Consider the difference beween
\[ {{10}\choose{2}}\qquad \frac{10!}{2!8!}\qquad 45 \]

The expressions decrease in clarity of intent from left to right. The binomial (the left-hand expression) expresses clearly that the result is the number of pairs possible from a grouping of 10 choices. The central expression is slightly more ambiguous as to intent: it might be choosing 2 of 10, 8 of 10, or not the result of a choice at all. The right expression is devoid of intent.

However, the expressions increase in clarity of value from left to right. Less and less mathematical knowledge or calculation is required to discern the basic value of the expression.

It is a tension between these two goals, clarity of intent and clarity of value, that makes writing mathematics, aside from doing mathematics, such a difficult endeavor.