Skip to content
DAH
Wiki/CombinatoricsTheoryActive

Mutually orthogonal Latin squares and the function N(n)

Latin squares that can be overlaid so every pair of symbols appears once. How many can exist at order n is known only for some n; order 10 is open.

On this page16 sections
Why other work relies on it

Mutually orthogonal Latin squares are equivalent to orthogonal arrays and, at the top, to finite affine and projective planes, so they link design theory, finite geometry and experimental design, and they supply ingredients for coding-theory and graph constructions.

Grids of symbols that can be laid over each other without repeating any pair. How many such grids fit together is mostly unknown.

  1. 1Latin square: each symbol once per row and column
  2. 2Two squares orthogonal: all pairs distinct
  3. 3N(n): most squares that fit together
  4. 4Upper bound n-1, tight for projective planes
  5. 5Preprint raises bounds at 33 orders

Definitions. A Latin square of order nn is an n×nn\times n array over nn symbols with each symbol once in each row and each column. Two squares A,BA,B are orthogonal if the n2n^2 pairs (Aij,Bij)(A_{ij},B_{ij}) are all distinct, i.e. every ordered pair of symbols occurs exactly once. N(n)N(n) is the largest size of a set of mutually orthogonal Latin squares (MOLS).

An example you can build. For a prime pp, define La(i,j)=ai+j mod pL_a(i,j)=ai+j \bmod p for a=1,…,p−1a=1,\dots,p-1. Each LaL_a is Latin since aa is invertible. For a≠ba\ne b the pair (La,Lb)(L_a,L_b) determines ii and jj: subtracting gives (a−b)i(a-b)i, and a−ba-b is invertible mod pp. So N(p)≥p−1N(p)\ge p-1. The same idea over a finite field Fq\mathbb F_q gives q−1q-1 for any prime power qq.

Upper bound. At most n−1n-1 squares are possible. A set of n−1n-1 MOLS is equivalent to a finite affine plane of order nn, which extends to a projective plane. So N(n)=n−1N(n)=n-1 exactly when a projective plane of order nn exists. Planes are known for prime powers, the Bruck-Ryser theorem excludes orders 6 and 14, and a computer search by Lam (1991) excludes 10. Euler's 36 officers problem asks whether N(6)≥2N(6)\ge2, which Tarry showed false in 1901. Bose, Shrikhande and Parker (1959) showed pairs exist at every order except 2 and 6.

Orthogonal arrays. A set of k−2k-2 MOLS of order nn is the same as an orthogonal array OA(n2,k,n,2)(n^2,k,n,2): a table with n2n^2 rows and kk columns, entries from nn symbols, in which every two columns contain each ordered pair exactly once. Take the first two columns as the cell position (i,j)(i,j); each further column then gives the symbol placed in that cell by one square.

Difference matrices. To construct arrays by computer for large nn, take a group GG of order nn (for example Zn\mathbb Z_n). A difference matrix is a matrix over GG in which, for any two rows, the entrywise differences hit every element of GG the same number of times. Adding every group element to every column gives an orthogonal array. A quasi-difference matrix allows a few special 'infinity' entries, so it can handle orders such as 22 that are not the order of a group acting in the right way: the preprint's order-22 example uses Z21\mathbb Z_{21} and one infinity symbol, with 23⋅21+1=484=22223\cdot21+1=484=22^2 rows.

The record. Previously N(n)≥3N(n)\ge3 was known for all n>10n>10. A November 2026 preprint by Rosin (arXiv:2611.16299) reports 4 MOLS of order 22 and improved bounds at 32 other orders up to 494. Its abstract says the constructions were found by an AI model; the squares are published as text files with a checking script, and checking is cheap: the Latin property plus (42)=6\binom{4}{2}=6 orthogonality checks of 22222^2 pairs each. DARC has not run the check. Order 10 is still open: 2≤N(10)≤62\le N(10)\le6.

Go deeper

The full technical text.

Latin squares

A Latin square of order nn is an n×nn\times n grid filled with nn symbols so that each symbol occurs exactly once in every row and every column. Two Latin squares of the same order are orthogonal if, when one is laid over the other, every ordered pair of symbols occurs exactly once. A set of squares that are pairwise orthogonal is a set of mutually orthogonal Latin squares (MOLS). Write N(n)N(n) for the largest number of MOLS of order nn.

Euler's officers

Euler's 36 officers problem asks for a 6×66\times6 arrangement of officers from six regiments and six ranks in which every row and column contains each regiment and each rank once. That is a pair of orthogonal Latin squares of order 6, also called a Graeco-Latin square. Euler conjectured that none exist whenever n≡2(mod4)n\equiv2\pmod 4. Tarry confirmed in 1901, by exhaustion, that order 6 has none. In 1959 Bose, Shrikhande and Parker showed that Euler's conjecture is false for every n≥7n\ge7 (Bose and Shrikhande built order-22 counterexamples, and Parker found one of order 10 by computer search), so a pair of orthogonal Latin squares exists for every order except 2 and 6.

Upper bounds and planes

No set of MOLS of order nn has more than n−1n-1 squares, so N(n)≤n−1N(n)\le n-1. A set of n−1n-1 MOLS, called a complete set, is equivalent to a finite affine plane of order nn, and every finite affine plane extends uniquely to a projective plane of the same order. Hence N(n)=n−1N(n)=n-1 exactly when a projective plane of order nn exists. Finite fields give complete sets whenever nn is a prime or a prime power. The Bruck-Ryser theorem rules out planes of orders 6 and 14. Lam's 1991 computer search ruled out order 10, so N(10)<9N(10)<9; combined with a theorem of Shrikhande the bound improves to N(10)<7N(10)<7.

Lower bounds, the order-10 puzzle and constructions

Lower bounds come from product constructions (MacNeish's theorem uses the prime factorization of nn) and from direct constructions built from algebraic data: difference matrices and quasi-difference matrices over a group, orthogonal arrays, and projective planes with deleted points or lines. A table of the best known lower bounds for n<500n<500 is kept in the Handbook of Combinatorial Designs and its updates; a 2024 compilation is the baseline of the preprint discussed below. Order 10 is the smallest order where the exact value is unknown: at least 2 MOLS exist, at most 6 are possible, and no set of three has ever been found despite many computer searches.

November 2026

On 12 November 2026 Christopher D. Rosin posted a preprint reporting new MOLS at 33 orders between 22 and 494, including 4 MOLS of order 22, which with earlier results gives N(n)≥4N(n)\ge4 for all n>10n>10 (the paper states that order 22 was the last open case). The abstract says the constructions were found by an AI model, GPT-6 Astra. The sets are published as text files with a checking script. The preprint is unrefereed.

Words on this page (8)
Words on this page
Latin square
An n by n grid of n symbols in which every symbol appears exactly once in each row and each column.
orthogonal Latin squares
Two Latin squares of the same size such that, laid over each other, every ordered pair of symbols occurs exactly once.
mutually orthogonal Latin squares (MOLS)
A set of Latin squares of one size in which every two squares are orthogonal.
orthogonal array
A table whose columns, taken two at a time, contain every ordered pair of symbols equally often; an array with n^2 rows and k columns encodes k-2 MOLS.
projective plane
A geometry of points and lines in which any two points lie on one line and any two lines meet in one point; a plane of order n exists exactly when n-1 MOLS of order n exist.
finite field
A finite set with addition, subtraction, multiplication and division, which exists exactly for prime-power sizes.
strongly regular graph
A graph in which every vertex has the same degree and the number of common neighbours of two vertices depends only on whether they are joined.
Euler's 36 officers problem
The puzzle of arranging 36 officers of six ranks and six regiments in a six by six square so each row and column has all ranks and all regiments; it has no solution.
New to this? Read first (4)
New to this? Read first
AI-reviewedAn AI drafted this explanation. Check it against the technical text.

Understanding map

map of the whole wiki →

What to read before Mutually orthogonal Latin squares and the function N(n) (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then

Open problems & questions

Progress timeline

  1. Nov 12, 2026
    Preprint reports 4 MOLS of order 22 and 32 other improved orders
    Related to: Improving the table of lower bounds on the number N(n) of mutually orthogonal Latin squares, starting with three MOLS of order 10

    Rosin's preprint reports improved lower bounds at 33 orders between 22 and 494, with N(n) >= 4 for all n > 10 and N(n) >= 6 for all n > 68; its abstract says the constructions were found by GPT-6 Astra. The sets are in a public repository with a checking script. Unrefereed.

    source
  2. Nov 12, 2026
    Preprint: improved lower bounds at 33 orders, AI-found

    Rosin's preprint reports 4 MOLS of order 22 (so N(n) >= 4 for all n > 10) and better lower bounds at 32 other orders up to 494, with constructions found by GPT-6 Astra and data and checking code in a public repository. Unrefereed; DARC has not run the check.

    source
  3. Jan 1, 1991
    No projective plane of order 10

    Lam's computer search showed there is no projective plane of order 10, so N(10) < 9. Date is the first of January of the year.

    source
  4. Jan 1, 1991
    No projective plane of order 10
    Related to: Improving the table of lower bounds on the number N(n) of mutually orthogonal Latin squares, starting with three MOLS of order 10

    Lam's computer search showed no projective plane of order 10 exists, so N(10) < 9. Date is the first of January of the year.

    source
  5. Apr 1, 1959
    Euler's conjecture disproved

    Bose, Shrikhande and Parker showed the conjecture is false for every n >= 7, so orthogonal pairs exist for every order except 2 and 6; Parker's order-10 pair came from a computer search. Date is the month, as given by the source.

    source
  6. Apr 1, 1959
    Pairs of orthogonal Latin squares exist for all n except 2 and 6
    Related to: Improving the table of lower bounds on the number N(n) of mutually orthogonal Latin squares, starting with three MOLS of order 10

    Bose, Shrikhande and Parker disproved Euler's conjecture for all n >= 7; Parker's order-10 pair came from a computer search. Date is the month, as given by the source.

    source
  7. Jan 1, 1901
    Tarry: order 6 has no pair

    Tarry confirmed by exhaustion that no pair of orthogonal Latin squares of order 6 exists. Date is the first of January of the year.

    source
  8. Jan 1, 1782
    Euler's 36 officers problem

    Euler posed the problem of a pair of orthogonal Latin squares of order 6 (written 1779, published 1782) and conjectured that none exist for orders congruent to 2 mod 4. Date is the first of January of the year.

    source