Sudoku an alternative history

Similar documents
Sudoku: Is it Mathematics?

Taking Sudoku Seriously

T H E M A T H O F S U D O K U

You ve seen them played in coffee shops, on planes, and

Latin squares and related combinatorial designs. Leonard Soicher Queen Mary, University of London July 2013

ON 4-DIMENSIONAL CUBE AND SUDOKU

Latin Squares for Elementary and Middle Grades

Permutations and codes:

On magic squares. Leonhard Euler

Solutions to Exercises Chapter 6: Latin squares and SDRs

of Nebraska - Lincoln

The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis. Abstract

REVIEW ON LATIN SQUARE

arxiv: v2 [math.ho] 23 Aug 2018

Some results on Su Doku

Applications of Advanced Mathematics (C4) Paper B: Comprehension INSERT WEDNESDAY 21 MAY 2008 Time:Upto1hour

Applications of Advanced Mathematics (C4) Paper B: Comprehension WEDNESDAY 21 MAY 2008 Time:Upto1hour

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015

Lecture 6: Latin Squares and the n-queens Problem

Dividing Ranks into Regiments using Latin Squares

Food for Thought. Robert Won

The remarkably popular puzzle demonstrates man versus machine, backtraking and recursion, and the mathematics of symmetry.

A variation on the game SET

Zsombor Sárosdi THE MATHEMATICS OF SUDOKU

Sudoku. How to become a Sudoku Ninja: Tips, Tricks and Strategies

Mathematics of Magic Squares and Sudoku

An Introduction to Discrete Mathematics in the Classroom: Latin Squares. Students Guide

Modified Method of Generating Randomized Latin Squares

LATIN SQUARES. New Developments in the Theory and Applications

MATHEMATICS ON THE CHESSBOARD

SUDOKU Colorings of the Hexagonal Bipyramid Fractal

Math 1111 Math Exam Study Guide

Take Control of Sudoku

MAS336 Computational Problem Solving. Problem 3: Eight Queens

BMT 2018 Combinatorics Test Solutions March 18, 2018

Grade 6 Math Circles March 7/8, Magic and Latin Squares

Chapter 1. The alternating groups. 1.1 Introduction. 1.2 Permutations

UK JUNIOR MATHEMATICAL CHALLENGE. April 25th 2013 EXTENDED SOLUTIONS

Using KenKen to Build Reasoning Skills 1

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

Another Form of Matrix Nim

Mobile SuDoKu Harvesting App

1 Algebraic substructures

The number of mates of latin squares of sizes 7 and 8

completing Magic Squares

Magic Squares. Lia Malato Leite Victoria Jacquemin Noemie Boillot

INFLUENCE OF ENTRIES IN CRITICAL SETS OF ROOM SQUARES

Kenken For Teachers. Tom Davis January 8, Abstract

Staircase Rook Polynomials and Cayley s Game of Mousetrap

Senior Math Circles February 10, 2010 Game Theory II

Non-overlapping permutation patterns

ON OPTIMAL (NON-TROJAN) SEMI-LATIN SQUARES WITH SIDE n AND BLOCK SIZE n: CONSTRUCTION PROCEDURE AND ADMISSIBLE PERMUTATIONS

The mathematics of Septoku

Weighted Polya Theorem. Solitaire

The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant]

No-Three-in-Line, Intransitive Dice, and Other Amusements in Mathematics

Sudoku Squares as Experimental Designs

Math 1111 Math Exam Study Guide

How Many Mates Can a Latin Square Have?

2006 Pascal Contest (Grade 9)

code V(n,k) := words module

CPSC 467: Cryptography and Computer Security

Yet Another Organized Move towards Solving Sudoku Puzzle

UN DOS TREZ Sudoku Competition. Puzzle Booklet for Preliminary Round. 19-Feb :45PM 75 minutes

Tilings with T and Skew Tetrominoes

A Group-theoretic Approach to Human Solving Strategies in Sudoku

Twenty-sixth Annual UNC Math Contest First Round Fall, 2017

arxiv: v2 [math.co] 7 Jul 2016

ProCo 2017 Advanced Division Round 1

Symmetric-key encryption scheme based on the strong generating sets of permutation groups

Week 1. 1 What Is Combinatorics?

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game.

Lower Bounds for the Number of Bends in Three-Dimensional Orthogonal Graph Drawings

Score. Please print legibly. School / Team Names. Directions: Answers must be left in one of the following forms: 1. Integer (example: 7)

Problem 2A Consider 101 natural numbers not exceeding 200. Prove that at least one of them is divisible by another one.

1st UKPA Sudoku Championship

Simple Counting Problems

An improved strategy for solving Sudoku by sparse optimization methods

Ivan Guo. Broken bridges There are thirteen bridges connecting the banks of River Pluvia and its six piers, as shown in the diagram below:

Constructing pandiagonal magic squares of arbitrarily large size

It Stands to Reason: Developing Inductive and Deductive Habits of Mind

MATH CIRCLE, 10/13/2018

Counting Things. Tom Davis March 17, 2006

Three of these grids share a property that the other three do not. Can you find such a property? + mod

European Journal of Combinatorics. Staircase rook polynomials and Cayley s game of Mousetrap

THE ASSOCIATION OF MATHEMATICS TEACHERS OF NEW JERSEY 2018 ANNUAL WINTER CONFERENCE FOSTERING GROWTH MINDSETS IN EVERY MATH CLASSROOM

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

UK JUNIOR MATHEMATICAL CHALLENGE. April 26th 2012

arxiv: v1 [math.ho] 26 Jan 2013

4. Magic Squares, Latin Squares and Triple Systems Robin Wilson

Cryptography CS 555. Topic 20: Other Public Key Encryption Schemes. CS555 Topic 20 1

MAT 115: Finite Math for Computer Science Problem Set 5

A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square

Introduction to Mathematical Reasoning, Saylor 111

Some t-homogeneous sets of permutations

An Exploration of the Minimum Clue Sudoku Problem

GET OVERLAPPED! Author: Huang Yi. Forum thread:

Grade 7/8 Math Circles. Visual Group Theory

N-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February

Transcription:

Sudoku an alternative history Peter J. Cameron p.j.cameron@qmul.ac.uk Talk to the Archimedeans, February 2007

Sudoku There s no mathematics involved. Use logic and reasoning to solve the puzzle. Instructions in The Independent

Sudoku There s no mathematics involved. Use logic and reasoning to solve the puzzle. Instructions in The Independent But who invented Sudoku? Leonhard Euler W. U. Behrens John Nelder Howard Garns Robert Connelly

Euler Euler posed the following question in 1782. Of 36 officers, one holds each combination of six ranks and six regiments. Can they be arranged in a 6 6 square on a parade ground, so that each rank and each regiment is represented once in each row and once in each column?

NO!!

But he could have done it with 16 officers... (thanks to Liz McMahon and Gary Gordon)

Why was Euler interested? A magic square is an n n square containing the numbers 1,..., n 2 such that all rows, columns, and diagonals have the same sum. Magic squares have interested mathematicians for millennia, and were an active research area in the time of Arab mathematics.

Why was Euler interested? A magic square is an n n square containing the numbers 1,..., n 2 such that all rows, columns, and diagonals have the same sum. Magic squares have interested mathematicians for millennia, and were an active research area in the time of Arab mathematics. Here is Dürer s Melancholia.

Why was Euler interested? A magic square is an n n square containing the numbers 1,..., n 2 such that all rows, columns, and diagonals have the same sum. Magic squares have interested mathematicians for millennia, and were an active research area in the time of Arab mathematics. Here is Dürer s Melancholia. 16 3 2 13 5 10 11 8 9 6 7 12 4 15 14 1

Euler s construction Suppose we have a solution to Euler s problem with n 2 officers in an n n square. Number the regiments and the ranks from 0 to n 1; then each officer is represented by a 2-digit number in base n, in the range 0... n 2 1. Add one to get the range 1... n 2. It is easy to see that the row and column sums are constant. A bit of rearrangement usually makes the diagonal sums constant as well.

Euler s construction Suppose we have a solution to Euler s problem with n 2 officers in an n n square. Number the regiments and the ranks from 0 to n 1; then each officer is represented by a 2-digit number in base n, in the range 0... n 2 1. Add one to get the range 1... n 2. It is easy to see that the row and column sums are constant. A bit of rearrangement usually makes the diagonal sums constant as well. Euler called such an arrangement a Graeco-Latin square.

Euler s construction Suppose we have a solution to Euler s problem with n 2 officers in an n n square. Number the regiments and the ranks from 0 to n 1; then each officer is represented by a 2-digit number in base n, in the range 0... n 2 1. Add one to get the range 1... n 2. It is easy to see that the row and column sums are constant. A bit of rearrangement usually makes the diagonal sums constant as well. Euler called such an arrangement a Graeco-Latin square. Cβ Aγ Bα Aα Bβ Cγ Bγ Cα Aβ

Euler s construction Suppose we have a solution to Euler s problem with n 2 officers in an n n square. Number the regiments and the ranks from 0 to n 1; then each officer is represented by a 2-digit number in base n, in the range 0... n 2 1. Add one to get the range 1... n 2. It is easy to see that the row and column sums are constant. A bit of rearrangement usually makes the diagonal sums constant as well. Euler called such an arrangement a Graeco-Latin square. Cβ Aγ Bα Aα Bβ Cγ Bγ Cα Aβ 21 01 10 00 11 22 12 20 01

Euler s construction Suppose we have a solution to Euler s problem with n 2 officers in an n n square. Number the regiments and the ranks from 0 to n 1; then each officer is represented by a 2-digit number in base n, in the range 0... n 2 1. Add one to get the range 1... n 2. It is easy to see that the row and column sums are constant. A bit of rearrangement usually makes the diagonal sums constant as well. Euler called such an arrangement a Graeco-Latin square. Cβ Aγ Bα Aα Bβ Cγ Bγ Cα Aβ 21 01 10 00 11 22 12 20 01 8 3 4 1 5 9 6 7 2

Latin squares A Latin square of order n is an n n array containing the symbols 1,..., n such that each symbol occurs once in each row and once in each column. The name was invented by the statistician R. A. Fisher in the twentieth century, as a back-formation from Graeco-Latin square in the case where we have only one set of symbols.

Latin squares A Latin square of order n is an n n array containing the symbols 1,..., n such that each symbol occurs once in each row and once in each column. The name was invented by the statistician R. A. Fisher in the twentieth century, as a back-formation from Graeco-Latin square in the case where we have only one set of symbols. The Cayley table of a group is a Latin square. In fact, the Cayley table of a binary system (A, ) is a Latin square if and only if (A, ) is a quasigroup. (This means that left and right division are uniquely defined, i.e. the equations a x = b and y a = b have unique solutions x and y for any a and b.)

Latin squares A Latin square of order n is an n n array containing the symbols 1,..., n such that each symbol occurs once in each row and once in each column. The name was invented by the statistician R. A. Fisher in the twentieth century, as a back-formation from Graeco-Latin square in the case where we have only one set of symbols. The Cayley table of a group is a Latin square. In fact, the Cayley table of a binary system (A, ) is a Latin square if and only if (A, ) is a quasigroup. (This means that left and right division are uniquely defined, i.e. the equations a x = b and y a = b have unique solutions x and y for any a and b.) Example a b c a b a c b a c b c c b a

About Latin squares There is still a lot that we don t know about Latin squares.

About Latin squares There is still a lot that we don t know about Latin squares. The number of different Latin squares of order n is not far short of n n2 (but we don t know exactly). (By contrast, the number of groups of order n is at most about n c(log 2 n)2, with c = 2 27.)

About Latin squares There is still a lot that we don t know about Latin squares. The number of different Latin squares of order n is not far short of n n2 (but we don t know exactly). (By contrast, the number of groups of order n is at most about n c(log 2 n)2, with c = 2 27.) There is a Markov chain method to choose a random Latin square. But we don t know much about what a random Latin square looks like.

About Latin squares There is still a lot that we don t know about Latin squares. The number of different Latin squares of order n is not far short of n n2 (but we don t know exactly). (By contrast, the number of groups of order n is at most about n c(log 2 n)2, with c = 2 27.) There is a Markov chain method to choose a random Latin square. But we don t know much about what a random Latin square looks like. For example, the second row is a permutation of the first; this permutation is a derangement (i.e. has no fixed points). Are all derangements roughly equally likely?

Orthogonal Latin squares Two Latin squares A and B are orthogonal if, given any k, l, there are unique i, j such that A ij = k and B ij = l. Thus, a Graeco-Latin square is a pair of orthogonal Latin squares.

Orthogonal Latin squares Two Latin squares A and B are orthogonal if, given any k, l, there are unique i, j such that A ij = k and B ij = l. Thus, a Graeco-Latin square is a pair of orthogonal Latin squares. Euler was right that there do not exist orthogonal Latin squares of order 6; they exist for all other orders greater than 2.

Orthogonal Latin squares Two Latin squares A and B are orthogonal if, given any k, l, there are unique i, j such that A ij = k and B ij = l. Thus, a Graeco-Latin square is a pair of orthogonal Latin squares. Euler was right that there do not exist orthogonal Latin squares of order 6; they exist for all other orders greater than 2. But we don t know how many orthogonal pairs of Latin squares of order n there are;

Orthogonal Latin squares Two Latin squares A and B are orthogonal if, given any k, l, there are unique i, j such that A ij = k and B ij = l. Thus, a Graeco-Latin square is a pair of orthogonal Latin squares. Euler was right that there do not exist orthogonal Latin squares of order 6; they exist for all other orders greater than 2. But we don t know how many orthogonal pairs of Latin squares of order n there are; the maximum number of mutually orthogonal Latin squares of order n;

Orthogonal Latin squares Two Latin squares A and B are orthogonal if, given any k, l, there are unique i, j such that A ij = k and B ij = l. Thus, a Graeco-Latin square is a pair of orthogonal Latin squares. Euler was right that there do not exist orthogonal Latin squares of order 6; they exist for all other orders greater than 2. But we don t know how many orthogonal pairs of Latin squares of order n there are; the maximum number of mutually orthogonal Latin squares of order n; how to choose at random an orthogonal pair.

Projective planes A projective plane is a geometry of points and lines such that any two points lie on a unique line and any two lines intersect in a unique point (together with a non-degeneracy condition to rule out trivial cases: there should exist four points with no three collinear).

Projective planes A projective plane is a geometry of points and lines such that any two points lie on a unique line and any two lines intersect in a unique point (together with a non-degeneracy condition to rule out trivial cases: there should exist four points with no three collinear). A finite projective plane has n 2 + n + 1 points and the same number of lines, for some integer n > 1 called the order of the plane.

Projective planes A projective plane is a geometry of points and lines such that any two points lie on a unique line and any two lines intersect in a unique point (together with a non-degeneracy condition to rule out trivial cases: there should exist four points with no three collinear). A finite projective plane has n 2 + n + 1 points and the same number of lines, for some integer n > 1 called the order of the plane. A projective plane of order n exists if and only if there are n 1 pairwise orthogonal Latin squares of order n.

Projective planes A projective plane is a geometry of points and lines such that any two points lie on a unique line and any two lines intersect in a unique point (together with a non-degeneracy condition to rule out trivial cases: there should exist four points with no three collinear). A finite projective plane has n 2 + n + 1 points and the same number of lines, for some integer n > 1 called the order of the plane. A projective plane of order n exists if and only if there are n 1 pairwise orthogonal Latin squares of order n. It is known that there is a projective plane of any prime power order, and that there is none of order 6 or 10. (The latter non-existence result comes from a huge computation by Clement Lam and others.)

Latin squares in cryptography The only provably secure cipher is a one-time pad correctly used.

Latin squares in cryptography The only provably secure cipher is a one-time pad correctly used. This encrypts a string of symbols in a fixed alphabet. It requires a key, a random string of the same length in the same alphabet, and an encryption table, a Latin square with rows and columns labelled by the alphabet. To encrypt data symbol x with key symbol y, we look in row x and column y of the encryption table, and put the symbol z in this cell in the ciphertext.

Latin squares in cryptography The only provably secure cipher is a one-time pad correctly used. This encrypts a string of symbols in a fixed alphabet. It requires a key, a random string of the same length in the same alphabet, and an encryption table, a Latin square with rows and columns labelled by the alphabet. To encrypt data symbol x with key symbol y, we look in row x and column y of the encryption table, and put the symbol z in this cell in the ciphertext. If the encryption table is not a Latin square, then either the message fails to be uniquely decipherable, or some information is leaked to the interceptor.

Latin squares in cryptography The only provably secure cipher is a one-time pad correctly used. This encrypts a string of symbols in a fixed alphabet. It requires a key, a random string of the same length in the same alphabet, and an encryption table, a Latin square with rows and columns labelled by the alphabet. To encrypt data symbol x with key symbol y, we look in row x and column y of the encryption table, and put the symbol z in this cell in the ciphertext. If the encryption table is not a Latin square, then either the message fails to be uniquely decipherable, or some information is leaked to the interceptor. In the Second World War, the Japanese navy used this system with alphabet {0,..., 9}. Sometimes their encryption tables failed to be Latin squares.

Latin squares in statistics Latin squares are used to balance treatments against systematic variations across the experimental layout.

Latin squares in statistics Latin squares are used to balance treatments against systematic variations across the experimental layout. A Latin square in Beddgelert Forest, designed by R. A. Fisher.

Behrens The German statistician W. U. Behrens invented gerechte designs in 1956.

Behrens The German statistician W. U. Behrens invented gerechte designs in 1956. Take an n n grid divided into n regions, with n cells in each. A gerechte design for this partition involves filling the cells with the numbers 1,..., n in such a way that each row, column, or region contains each of the numbers just once. So it is a special kind of Latin square.

Behrens The German statistician W. U. Behrens invented gerechte designs in 1956. Take an n n grid divided into n regions, with n cells in each. A gerechte design for this partition involves filling the cells with the numbers 1,..., n in such a way that each row, column, or region contains each of the numbers just once. So it is a special kind of Latin square. Example Suppose that there is a boggy patch in the middle of the field. 1 2 3 4 5 4 5 1 2 3 2 3 4 5 1 5 1 2 3 4 3 4 5 1 2

Nelder The statistician John Nelder defined a critical set in a Latin square in 1977. This is a partial Latin square which can be completed in only one way.

Nelder The statistician John Nelder defined a critical set in a Latin square in 1977. This is a partial Latin square which can be completed in only one way. A trade in a Latin square is a collection of entries which can be traded for different entries so that another Latin square is formed. A subset of the entries of a Latin square is a critical set if and only if it intersects every trade.

Nelder The statistician John Nelder defined a critical set in a Latin square in 1977. This is a partial Latin square which can be completed in only one way. A trade in a Latin square is a collection of entries which can be traded for different entries so that another Latin square is formed. A subset of the entries of a Latin square is a critical set if and only if it intersects every trade. What is the size of the smallest critical set in an n n Latin square? It is conjectured that the answer is n 2 /4, but this is known only for n 8.

Nelder The statistician John Nelder defined a critical set in a Latin square in 1977. This is a partial Latin square which can be completed in only one way. A trade in a Latin square is a collection of entries which can be traded for different entries so that another Latin square is formed. A subset of the entries of a Latin square is a critical set if and only if it intersects every trade. What is the size of the smallest critical set in an n n Latin square? It is conjectured that the answer is n 2 /4, but this is known only for n 8. How difficult is it to recognise a critical set, or to complete one?

Garns It was Howard Garns, a retired architect, who put the ideas of Nelder and Behrens together and turned it into a puzzle in 1979, in Dell Magazines.

Garns It was Howard Garns, a retired architect, who put the ideas of Nelder and Behrens together and turned it into a puzzle in 1979, in Dell Magazines. A Sudoku puzzle is a critical set for a gerechte design for the 9 9 grid partitioned into 3 3 subsquares. The puzzler s job is to complete the square.

Garns It was Howard Garns, a retired architect, who put the ideas of Nelder and Behrens together and turned it into a puzzle in 1979, in Dell Magazines. A Sudoku puzzle is a critical set for a gerechte design for the 9 9 grid partitioned into 3 3 subsquares. The puzzler s job is to complete the square. Garns called his puzzle number place. It became popular in Japan under the name Sudoku in 1986 and returned to the West a couple of years ago.

Connelly Robert Connelly proposed a variant which he called symmetric Sudoku. The solution must be a gerechte design for all these regions: 3 5 9 2 4 8 1 6 7 4 8 1 6 7 3 5 9 2 7 2 6 9 1 5 8 3 4 8 1 4 7 3 6 9 2 5 2 6 7 1 5 9 3 4 8 5 9 3 4 8 2 6 7 1 6 7 2 5 9 1 4 8 3 9 3 5 8 2 4 7 1 6 1 4 8 3 6 7 2 5 9

Connelly Robert Connelly proposed a variant which he called symmetric Sudoku. The solution must be a gerechte design for all these regions: Rows 3 5 9 2 4 8 1 6 7 4 8 1 6 7 3 5 9 2 7 2 6 9 1 5 8 3 4 8 1 4 7 3 6 9 2 5 2 6 7 1 5 9 3 4 8 5 9 3 4 8 2 6 7 1 6 7 2 5 9 1 4 8 3 9 3 5 8 2 4 7 1 6 1 4 8 3 6 7 2 5 9

Connelly Robert Connelly proposed a variant which he called symmetric Sudoku. The solution must be a gerechte design for all these regions: 3 5 9 2 4 8 1 6 7 4 8 1 6 7 3 5 9 2 7 2 6 9 1 5 8 3 4 8 1 4 7 3 6 9 2 5 2 6 7 1 5 9 3 4 8 5 9 3 4 8 2 6 7 1 6 7 2 5 9 1 4 8 3 9 3 5 8 2 4 7 1 6 1 4 8 3 6 7 2 5 9 Columns

Connelly Robert Connelly proposed a variant which he called symmetric Sudoku. The solution must be a gerechte design for all these regions: 3 5 9 2 4 8 1 6 7 4 8 1 6 7 3 5 9 2 7 2 6 9 1 5 8 3 4 8 1 4 7 3 6 9 2 5 2 6 7 1 5 9 3 4 8 5 9 3 4 8 2 6 7 1 6 7 2 5 9 1 4 8 3 9 3 5 8 2 4 7 1 6 1 4 8 3 6 7 2 5 9 Subsquares

Connelly Robert Connelly proposed a variant which he called symmetric Sudoku. The solution must be a gerechte design for all these regions: 3 5 9 2 4 8 1 6 7 4 8 1 6 7 3 5 9 2 7 2 6 9 1 5 8 3 4 8 1 4 7 3 6 9 2 5 2 6 7 1 5 9 3 4 8 5 9 3 4 8 2 6 7 1 6 7 2 5 9 1 4 8 3 9 3 5 8 2 4 7 1 6 1 4 8 3 6 7 2 5 9 Broken rows

Connelly Robert Connelly proposed a variant which he called symmetric Sudoku. The solution must be a gerechte design for all these regions: 3 5 9 2 4 8 1 6 7 4 8 1 6 7 3 5 9 2 7 2 6 9 1 5 8 3 4 8 1 4 7 3 6 9 2 5 2 6 7 1 5 9 3 4 8 5 9 3 4 8 2 6 7 1 6 7 2 5 9 1 4 8 3 9 3 5 8 2 4 7 1 6 1 4 8 3 6 7 2 5 9 Broken columns

Connelly Robert Connelly proposed a variant which he called symmetric Sudoku. The solution must be a gerechte design for all these regions: 3 5 9 2 4 8 1 6 7 4 8 1 6 7 3 5 9 2 7 2 6 9 1 5 8 3 4 8 1 4 7 3 6 9 2 5 2 6 7 1 5 9 3 4 8 5 9 3 4 8 2 6 7 1 6 7 2 5 9 1 4 8 3 9 3 5 8 2 4 7 1 6 1 4 8 3 6 7 2 5 9 Locations

Coordinates We coordinatise the cells of the grid with F 4, where F is the integers mod 3, as follows: the first coordinate labels large rows; the second coordinate labels small rows within large rows; the third coordinate labels large columns; the fourth coordinate labels small columns within large columns.

Coordinates We coordinatise the cells of the grid with F 4, where F is the integers mod 3, as follows: the first coordinate labels large rows; the second coordinate labels small rows within large rows; the third coordinate labels large columns; the fourth coordinate labels small columns within large columns. Now Connelly s regions are cosets of the following subspaces: Rows x 1 = x 2 = 0 Columns x 3 = x 4 = 0 Subsquares x 1 = x 3 = 0 Broken rows x 2 = x 3 = 0 Broken columns x 1 = x 4 = 0 Locations x 2 = x 4 = 0

Affine spaces Let F be the field of integers mod 3. As we saw, the four-dimensional affine space over F has point set F 4.

Affine spaces Let F be the field of integers mod 3. As we saw, the four-dimensional affine space over F has point set F 4. A line is the set of points satisfying three independent linear equations, or equivalently the set of points of the form x = a + λb for fixed a, b F 4, where λ runs through F. Note that, if b i = 0, then x i = a i for any point x, while if b i = 0, then x i runs through the three values in F.

Affine spaces Let F be the field of integers mod 3. As we saw, the four-dimensional affine space over F has point set F 4. A line is the set of points satisfying three independent linear equations, or equivalently the set of points of the form x = a + λb for fixed a, b F 4, where λ runs through F. Note that, if b i = 0, then x i = a i for any point x, while if b i = 0, then x i runs through the three values in F. Conversely, a set of three points which are either constant or take all values in each coordinate is a line.

Affine spaces and SET R The card game SET has 81 cards, each of which has four attributes taking three possible values (number of symbols, shape, colour, and shading). A winning combination is a set of three cards on which either the attributes are all the same, or they are all different.

Affine spaces and SET R The card game SET has 81 cards, each of which has four attributes taking three possible values (number of symbols, shape, colour, and shading). A winning combination is a set of three cards on which either the attributes are all the same, or they are all different.

Affine spaces and SET R The card game SET has 81 cards, each of which has four attributes taking three possible values (number of symbols, shape, colour, and shading). A winning combination is a set of three cards on which either the attributes are all the same, or they are all different. Each card has four coordinates taken from F (the integers mod 3), so the set of cards is identified with the 4-dimensional affine space. Then the winning combinations are precisely the affine lines!

Perfect codes A code is a set C of words or n-tuples over a fixed alphabet F. The Hamming distance between two words v, w is the number of coordinates where they differ; that is, the number of errors needed to change the transmitted word v into the received word w.

Perfect codes A code is a set C of words or n-tuples over a fixed alphabet F. The Hamming distance between two words v, w is the number of coordinates where they differ; that is, the number of errors needed to change the transmitted word v into the received word w. A code C is e-error-correcting if there is at most one word at distance e or less from any codeword. [Equivalently, any two codewords have distance at least 2e + 1.] We say that C is perfect e-error-correcting if at most is replaced here by exactly.

Perfect codes and symmetric Sudoku Take a solution to a symmetric Sudoku puzzle, and look at the set S of positions of a particular symbol s. The coordinates of the points of S have the property that any two differ in at least three places; that is, they have Hamming distance at least 3. [For, if two of these words agreed in the positions 1 and 2, then s would occur twice in a row; and similarly for the other pairs.]

Perfect codes and symmetric Sudoku Take a solution to a symmetric Sudoku puzzle, and look at the set S of positions of a particular symbol s. The coordinates of the points of S have the property that any two differ in at least three places; that is, they have Hamming distance at least 3. [For, if two of these words agreed in the positions 1 and 2, then s would occur twice in a row; and similarly for the other pairs.] Counting now shows that any element of F 4 lies at Hamming distance 1 or less from a unique element of S; so S is a perfect 1-error-correcting code.

Perfect codes and symmetric Sudoku Take a solution to a symmetric Sudoku puzzle, and look at the set S of positions of a particular symbol s. The coordinates of the points of S have the property that any two differ in at least three places; that is, they have Hamming distance at least 3. [For, if two of these words agreed in the positions 1 and 2, then s would occur twice in a row; and similarly for the other pairs.] Counting now shows that any element of F 4 lies at Hamming distance 1 or less from a unique element of S; so S is a perfect 1-error-correcting code. So a symmetric Sudoku solution is a partition of F 4 into nine perfect codes.

All symmetric Sudoku solutions Now it can be shown that a perfect code C in F 4 is an affine plane, that is, a coset of a 2-dimensional subspace of F 4. To show this, we use the SET R principle: We show that if v, w C, then the word which agrees with v and w in the positions where they agree and differs from them in the positions where they differ is again in C.

All symmetric Sudoku solutions Now it can be shown that a perfect code C in F 4 is an affine plane, that is, a coset of a 2-dimensional subspace of F 4. To show this, we use the SET R principle: We show that if v, w C, then the word which agrees with v and w in the positions where they agree and differs from them in the positions where they differ is again in C. So we have to partition F 4 into nine special affine planes.

All symmetric Sudoku solutions Now it can be shown that a perfect code C in F 4 is an affine plane, that is, a coset of a 2-dimensional subspace of F 4. To show this, we use the SET R principle: We show that if v, w C, then the word which agrees with v and w in the positions where they agree and differs from them in the positions where they differ is again in C. So we have to partition F 4 into nine special affine planes. It is not hard to show that there are just two ways to do this. One solution consists of nine cosets of a fixed subspace. There is just one further type, consisting of six cosets of one subspace and three of another. [Take a solution of the first type, and replace three affine planes in a 3-space with a different set of three affine planes.]

All Sudoku solutions By contrast, Jarvis and Russell showed that the number of different types of solution to ordinary Sudoku is 5 472 730 538.

All Sudoku solutions By contrast, Jarvis and Russell showed that the number of different types of solution to ordinary Sudoku is 5 472 730 538. They used the Orbit-Counting Lemma: the number of orbits of a group on a finite set is equal to the average number of fixed points of the group elements.

All Sudoku solutions By contrast, Jarvis and Russell showed that the number of different types of solution to ordinary Sudoku is 5 472 730 538. They used the Orbit-Counting Lemma: the number of orbits of a group on a finite set is equal to the average number of fixed points of the group elements. An earlier computation by Felgenhauer and Jarvis gives the total number of solutions to be 6 670 903 752 021 072 936 960. Now for each conjugacy class of non-trivial symmetries of the grid, it is somewhat easier to calculate the number of fixed solutions.

Some open problems Given a n n grid partitioned into n regions each of size n:

Some open problems Given a n n grid partitioned into n regions each of size n: What is the computational complexity of deciding whether there exists a gerechte design?

Some open problems Given a n n grid partitioned into n regions each of size n: What is the computational complexity of deciding whether there exists a gerechte design? Assuming that there exists a gerechte design, how many are there (exactly or asymptotically), and how do we choose one uniformly at random?

Some open problems Given a n n grid partitioned into n regions each of size n: What is the computational complexity of deciding whether there exists a gerechte design? Assuming that there exists a gerechte design, how many are there (exactly or asymptotically), and how do we choose one uniformly at random? Assuming that there exists a gerechte design, what is the maximum number of pairwise orthogonal gerechte designs?

Some open problems Given a n n grid partitioned into n regions each of size n: What is the computational complexity of deciding whether there exists a gerechte design? Assuming that there exists a gerechte design, how many are there (exactly or asymptotically), and how do we choose one uniformly at random? Assuming that there exists a gerechte design, what is the maximum number of pairwise orthogonal gerechte designs? Which gerechte designs have good statistical properties?

Some open problems Given a n n grid partitioned into n regions each of size n: What is the computational complexity of deciding whether there exists a gerechte design? Assuming that there exists a gerechte design, how many are there (exactly or asymptotically), and how do we choose one uniformly at random? Assuming that there exists a gerechte design, what is the maximum number of pairwise orthogonal gerechte designs? Which gerechte designs have good statistical properties? If we are given a Latin square L, and we take the regions to be the positions of symbols in L, then a gerechte design is a Latin square orthogonal to L; so the above questions all generalise classical problems about orthogonal Latin squares.

Some open problems Given a n n grid partitioned into n regions each of size n: What is the computational complexity of deciding whether there exists a gerechte design? Assuming that there exists a gerechte design, how many are there (exactly or asymptotically), and how do we choose one uniformly at random? Assuming that there exists a gerechte design, what is the maximum number of pairwise orthogonal gerechte designs? Which gerechte designs have good statistical properties? If we are given a Latin square L, and we take the regions to be the positions of symbols in L, then a gerechte design is a Latin square orthogonal to L; so the above questions all generalise classical problems about orthogonal Latin squares. The last two questions are particularly interesting in the case where n = kl and the regions are k l rectangles.

References R. A. Bailey, P. J. Cameron and R. Connelly, Sudoku, Sudoku, gerechte designs, resolutions, affine space, spreads, reguli, and Hamming codes, American Math. Monthly, to appear. Preprint available from http://www.maths.qmul.ac.uk/~pjc/preprints/sudoku.pdf