In
combinatorics
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and an end in obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many a ...
, two
Latin square
In combinatorics and in experimental design, a Latin square is an ''n'' × ''n'' array filled with ''n'' different symbols, each occurring exactly once in each row and exactly once in each column. An example of a 3×3 Latin sq ...
s of the same size (''order'') are said to be ''orthogonal'' if when superimposed the ordered paired entries in the positions are all distinct. A set of Latin squares, all of the same order, all pairs of which are orthogonal is called a set of mutually orthogonal Latin squares. This concept of
orthogonality in combinatorics is strongly related to the concept of
blocking in statistics, which ensures that independent variables are truly independent with no hidden confounding correlations. "Orthogonal" is thus synonymous with "independent" in that knowing one variable's value gives no further information about another variable's likely value.
An outdated term for pair of orthogonal Latin squares is ''Graeco-Latin square'', found in older literature.
Graeco-Latin squares
A Graeco-Latin square or Euler square or pair of orthogonal Latin squares of order over two
sets and (which may be the same), each consisting of symbols, is an arrangement of cells, each cell containing an
ordered pair
In mathematics, an ordered pair (''a'', ''b'') is a pair of objects. The order in which the objects appear in the pair is significant: the ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a'') unless ''a'' = ''b''. (In co ...
, where is in and is in , such that every row and every column contains each element of and each element of exactly once, and that no two cells contain the same ordered pair.
GraecoLatinSquare-Order3.svg, Order 3
GrecoLatinSquare-Order4.svg, Order 4
GraecoLatinSquare-Order5.png, Order 5
The arrangement of the -coordinates by themselves (which may be thought of as Latin characters) and of the -coordinates (the Greek characters) each forms a
Latin square
In combinatorics and in experimental design, a Latin square is an ''n'' × ''n'' array filled with ''n'' different symbols, each occurring exactly once in each row and exactly once in each column. An example of a 3×3 Latin sq ...
. A Graeco-Latin square can therefore be decomposed into two orthogonal Latin squares. Orthogonality here means that every pair from the
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets ''A'' and ''B'', denoted ''A''×''B'', is the set of all ordered pairs where ''a'' is in ''A'' and ''b'' is in ''B''. In terms of set-builder notation, that is
: A\ ...
occurs exactly once.
Orthogonal Latin squares were studied in detail by
Leonhard Euler
Leonhard Euler ( , ; 15 April 170718 September 1783) was a Swiss mathematician, physicist, astronomer, geographer, logician and engineer who founded the studies of graph theory and topology and made pioneering and influential discoveries in ma ...
, who took the two sets to be , the first upper-case letters from the
Latin alphabet
The Latin alphabet or Roman alphabet is the collection of letters originally used by the ancient Romans to write the Latin language. Largely unaltered with the exception of extensions (such as diacritics), it used to write English and the ...
, and ,
the first lower-case letters from the
Greek alphabet
The Greek alphabet has been used to write the Greek language since the late 9th or early 8th century BCE. It is derived from the earlier Phoenician alphabet, and was the earliest known alphabetic script to have distinct letters for vowels as ...
—hence the name Graeco-Latin square.
Existence
When a Graeco-Latin square is viewed as a pair of orthogonal Latin squares, each of the Latin squares is said to have an ''orthogonal mate''. In an arbitrary Latin square, a selection of positions, one in each row and one in each column whose entries are all distinct is called a ''transversal'' of that square. Consider one symbol in a Graeco-Latin square. The positions containing this symbol must all be in different rows and columns, and furthermore the other symbol in these positions must all be distinct. Hence, when viewed as a pair of Latin squares, the positions containing one symbol in the first square correspond to a transversal in the second square (and vice versa).
A given Latin square of order n possesses an orthogonal mate if and only if it has n disjoint transversals.
The
Cayley table Named after the 19th century British mathematician Arthur Cayley, a Cayley table describes the structure of a finite group by arranging all the possible products of all the group's elements in a square table reminiscent of an addition or multipl ...
(without borders) of any
group
A group is a number of persons or things that are located, gathered, or classed together.
Groups of people
* Cultural group, a group whose members share the same cultural identity
* Ethnic group, a group whose members share the same ethnic ide ...
of odd order forms a Latin square which possesses an orthogonal mate.
Thus Graeco-Latin squares exist for all odd orders as there are groups that exist of these orders. Such Graeco-Latin squares are said to be ''group based''.
Euler was able to construct Graeco-Latin squares of orders that are multiples of four,
and seemed to be aware of the following result.
No group based Graeco-Latin squares can exist if the order is an odd multiple of two (that is, equal to 4 + 2 for some positive integer ).
History
Although recognized for his original mathematical treatment of the subject, orthogonal Latin squares predate Euler. In the form of an old puzzle involving
playing card
A playing card is a piece of specially prepared card stock, heavy paper, thin cardboard, plastic-coated paper, cotton-paper blend, or thin plastic that is marked with distinguishing motifs. Often the front (face) and back of each card has a ...
s, the construction of a 4 x 4 set was published by
Jacques Ozanam
Jacques Ozanam (16 June 1640, in Sainte-Olive, Ain – 3 April 1718, in Paris) was a French mathematician.
Biography
Jacques Ozanam was born in Sainte-Olive, Ain, France.
In 1670, he published trigonometric and logarithmic tables more accura ...
in 1725. The problem was to take all aces, kings, queens and jacks from a standard deck of cards, and arrange them in a 4 x 4 grid such that each row and each column contained all four suits as well as one of each face value. This problem has several solutions.
A common variant of this problem was to arrange the 16 cards so that, in addition to the row and column constraints, each diagonal contains all four face values and all four suits as well.
According to
Martin Gardner
Martin Gardner (October 21, 1914May 22, 2010) was an American popular mathematics and popular science writer with interests also encompassing scientific skepticism, micromagic, philosophy, religion, and literatureespecially the writings of L ...
, who featured this variant of the problem in his November 1959
Mathematical Games column
Over a period of 24 years (January 1957 – December 1980), Martin Gardner wrote 288 consecutive monthly "Mathematical Games" columns for ''Scientific American'' magazine. During the next years, through June 1986, Gardner wrote 9 more columns, ...
,
the number of distinct solutions was incorrectly stated to be 72 by
Rouse Ball
Walter William Rouse Ball (14 August 1850 – 4 April 1925), known as W. W. Rouse Ball, was a British mathematician, lawyer, and fellow at Trinity College, Cambridge, from 1878 to 1905. He was also a keen amateur magician, and the founding ...
. This mistake persisted for many years until the correct value of 144 was found by
Kathleen Ollerenshaw
Dame Kathleen Mary Ollerenshaw, (''née'' Timpson; 1 October 1912 – 10 August 2014) was a British mathematician and politician who was Lord Mayor of Manchester from 1975 to 1976 and an advisor on educational matters to Margaret Thatcher's g ...
. Each of the 144 solutions has eight reflections and rotations, giving 1152 solutions in total. The 144×8 solutions can be categorized into the following two
equivalence class
In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements ...
es:
For each of the two solutions, 24×24 = 576 solutions can be derived by permuting the four suits and the four face values, independently. No permutation will convert the two solutions into each other, because suits and face values are different.
Thirty-six officers problem

A problem similar to the card problem above was circulating in
St. Petersburg
Saint Petersburg ( rus, links=no, Санкт-Петербург, a=Ru-Sankt Peterburg Leningrad Petrograd Piter.ogg, r=Sankt-Peterburg, p=ˈsankt pʲɪtʲɪrˈburk), formerly known as Petrograd (1914–1924) and later Leningrad (1924–1991), i ...
in the late 1700s and, according to folklore,
Catherine the Great asked Euler to solve it, since he was residing at her court at the time. This problem is known as the ''thirty-six officers problem'', and Euler introduced it as follows:
Euler's conjecture and disproof

Euler was unable to solve the problem, but in this work he demonstrated methods for constructing Graeco-Latin squares where is odd or a multiple of 4. Observing that no order two square exists and being unable to construct an order six square, he conjectured that none exist for any
oddly even number The non-existence of order six squares was confirmed in 1901 by
Gaston Tarry
Gaston Tarry (27 September 1843 – 21 June 1913) was a French mathematician. Born in Villefranche de Rouergue, Aveyron, he studied mathematics at high school before joining the civil service in Algeria. He pursued mathematics as an amateur.
In ...
through a
proof by exhaustion
Proof by exhaustion, also known as proof by cases, proof by case analysis, complete induction or the brute force method, is a method of mathematical proof in which the statement to be proved is split into a finite number of cases or sets of equiv ...
. However, Euler's conjecture resisted solution until the late 1950s, but the problem has led to important work in
combinatorics
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and an end in obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many a ...
.
In 1959,
R.C. Bose and
S. S. Shrikhande constructed some counterexamples (dubbed the ''Euler spoilers'') of order 22 using mathematical insights. Then
E. T. Parker
Ernest Tilden Parker (1926–1991) was a professor emeritus of the University of Illinois at Urbana–Champaign. He is notable for his breakthrough work along with R. C. Bose and S. S. Shrikhande in their disproof of the famous conjecture made by ...
found a counterexample of order 10 using a one-hour computer search on a
UNIVAC 1206 Military Computer while working at the
UNIVAC
UNIVAC (Universal Automatic Computer) was a line of electronic digital stored-program computers starting with the products of the Eckert–Mauchly Computer Corporation. Later the name was applied to a division of the Remington Rand company and ...
division of
Remington Rand
Remington Rand was an early American business machine manufacturer, originally a typewriter manufacturer and in a later incarnation the manufacturer of the UNIVAC line of mainframe computers. Formed in 1927 following a merger, Remington Rand w ...
(this was one of the earliest combinatorics problems solved on a
digital computer
A computer is a machine that can be programmed to carry out sequences of arithmetic or logical operations (computation) automatically. Modern digital electronic computers can perform generic sets of operations known as programs. These progra ...
).
In April 1959, Parker, Bose, and Shrikhande presented their paper showing Euler's conjecture to be false for all Thus, Graeco-Latin squares exist for all orders except In the November 1959 edition of Scientific American, Martin Gardner published this result.
The front cover is the 10 × 10 refutation of Euler's conjecture.
Thirty-six entangled officers problem

Extensions of mutually orthogonal Latin squares to the quantum domain have been studied since 2017.
In these designs, instead of the uniqueness of symbols, the elements of an array are quantum states that must be orthogonal to each other in rows and columns.
In 2021, a Indian-Polish team of physicists (Rather, Burchardt, Bruzda, Rajchel-Mieldzioć, Lakshminarayan, and
Życzkowski) found an array of quantum states that provides an example of mutually orthogonal quantum Latin squares of size 6; or, equivalently, an arrangement of 36 officers that are entangled
.
This setup solves a generalization of the 36 Euler's officers problem, as well as provides a new
quantum error detection code, allowing to encode a 6-level system into a three 6-level system that certifies occurrence of one error.
Examples of mutually orthogonal Latin squares (MOLS)
A set of Latin squares of the same order such that every pair of squares are orthogonal (that is, form a Graeco-Latin square) is called a set of mutually orthogonal Latin squares (or pairwise orthogonal Latin squares) and usually abbreviated as MOLS or MOLS(''n'') when the order is made explicit.
For example, a set of MOLS(4) is given by:
:
And a set of MOLS(5):
:
While it is possible to represent MOLS in a "compound" matrix form similar to the Graeco-Latin squares, for instance,
:
for the MOLS(5) example above, it is more typical to compactly represent the MOLS as an orthogonal array (see
below
Below may refer to:
*Earth
* Ground (disambiguation)
* Soil
* Floor
* Bottom (disambiguation)
* Less than
*Temperatures below freezing
* Hell or underworld
People with the surname
* Ernst von Below (1863–1955), German World War I general
* Fr ...
).
In the examples of MOLS given so far, the same alphabet (symbol set) has been used for each square, but this is not necessary as the Graeco-Latin squares show. In fact, totally different symbol sets can be used for each square of the set of MOLS. For example,
is a representation of the compounded MOLS(5) example above where the four MOLS have the following alphabets, respectively:
* the background color:
black
Black is a color which results from the absence or complete absorption of visible light. It is an achromatic color, without hue, like white and grey. It is often used symbolically or figuratively to represent darkness. Black and white ha ...
,
maroon
Maroon ( US/ UK , Australia ) is a brownish crimson color that takes its name from the French word ''marron'', or chestnut. "Marron" is also one of the French translations for "brown".
According to multiple dictionaries, there are var ...
,
teal
alt=American teal duck (male), Green-winged teal (male)
Teal is a greenish-blue colour. Its name comes from that of a bird — the Eurasian teal (''Anas crecca'') — which presents a similarly coloured stripe on its head. The word is oft ...
,
navy
A navy, naval force, or maritime force is the branch of a nation's armed forces principally designated for naval and amphibious warfare; namely, lake-borne, riverine, littoral, or ocean-borne combat operations and related functions. It include ...
, and
silver
Silver is a chemical element with the Symbol (chemistry), symbol Ag (from the Latin ', derived from the Proto-Indo-European wikt:Reconstruction:Proto-Indo-European/h₂erǵ-, ''h₂erǵ'': "shiny" or "white") and atomic number 47. A soft, whi ...
* the foreground color:
white
White is the lightness, lightest color and is achromatic (having no hue). It is the color of objects such as snow, chalk, and milk, and is the opposite of black. White objects fully diffuse reflection, reflect and scattering, scatter all the ...
,
red
Red is the color at the long wavelength end of the visible spectrum of light, next to orange and opposite violet. It has a dominant wavelength of approximately 625–740 nanometres. It is a primary color in the RGB color model and a seconda ...
,
lime
Lime commonly refers to:
* Lime (fruit), a green citrus fruit
* Lime (material), inorganic materials containing calcium, usually calcium oxide or calcium hydroxide
* Lime (color), a color between yellow and green
Lime may also refer to:
Botany
...
,
blue
Blue is one of the three primary colours in the RYB colour model (traditional colour theory), as well as in the RGB (additive) colour model. It lies between violet and cyan on the spectrum of visible light. The eye perceives blue when ...
, and
yellow
Yellow is the color between green and orange on the spectrum of light. It is evoked by light with a dominant wavelength of roughly 575585 nm. It is a primary color in subtractive color systems, used in painting or color printing. In ...
* the text: ''
fjord
In physical geography, a fjord or fiord () is a long, narrow inlet with steep sides or cliffs, created by a glacier. Fjords exist on the coasts of Alaska, Antarctica, British Columbia, Chile, Denmark, Germany, Greenland, the Faroe Islands, Icela ...
s'', ''
jawbox
Jawbox is an American alternative rock band from Washington, D.C., formed in 1989 by J. Robbins (vocals/guitar), Kim Coletta (bass), and Adam Wade (drums). After the trio released the album '' Grippe'' in 1991, Bill Barbot (guitar/vocals) joi ...
'', ''
phlegm
Phlegm (; , ''phlégma'', "inflammation", "humour caused by heat") is mucus produced by the respiratory system, excluding that produced by the nasal passages. It often refers to respiratory mucus expelled by coughing, otherwise known as sputum. ...
'', ''
qiviut
Qiviuq gor qiviut l( ; Inuktitut syllabics: ᕿᕕᐅᖅ; Inuinnaqtun: qiviuq; Inupiaq: qiviu or qiviuqWolf A. Seiler (2012)Iñupiatun Eskimo Dictionary/ref> (sometimes spelled qiveut)) is the inner wool of the muskox. In Inuinnaqtun the same ...
'', and ''
zinc
Zinc is a chemical element with the symbol Zn and atomic number 30. Zinc is a slightly brittle metal at room temperature and has a shiny-greyish appearance when oxidation is removed. It is the first element in group 12 (IIB) of the periodic t ...
ky''
* the typeface family:
serif,
sans-serif,
slab-serif
In typography, a slab serif (also called ''mechanistic'', ''square serif'', ''antique'' or ''Egyptian'') typeface is a type of serif typeface characterized by thick, block-like serifs. Serif terminals may be either blunt and angular ( Rockwell), ...
,
cursive
Cursive (also known as script, among other names) is any style of penmanship in which characters are written joined in a flowing manner, generally for the purpose of making writing faster, in contrast to block letters. It varies in functional ...
, and
monospaced
A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with variable-width fonts, where the letters and spaci ...
.
The number of mutually orthogonal latin squares
The mutual orthogonality property of a set of MOLS is unaffected by
* Permuting the rows of all the squares simultaneously,
* Permuting the columns of all the squares simultaneously, and
* Permuting the entries in any square, independently.
Using these operations, any set of MOLS can be put into ''standard form'', meaning that the first row of every square is identical and normally put in some natural order, and one square has its first column also in this order. The MOLS(4) and MOLS(5) examples at the start of this section have been put in standard form.
By putting a set of MOLS() in standard form and examining the entries in the second row and first column of each square, it can be seen that no more than squares can exist. A set of − 1 MOLS() is called a ''complete set of MOLS''. Complete sets are known to exist when is a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
or
power
Power most often refers to:
* Power (physics), meaning "rate of doing work"
** Engine power, the power put out by an engine
** Electric power
* Power (social and political), the ability to influence people or events
** Abusive power
Power may ...
of a prime (see
Finite field construction below). However, the number of MOLS that may exist for a given order is not known for general , and is an area of research in
combinatorics
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and an end in obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many a ...
.
Projective planes
A set of − 1 MOLS() is equivalent to a finite
affine plane
In geometry, an affine plane is a two-dimensional affine space.
Examples
Typical examples of affine planes are
*Euclidean planes, which are affine planes over the reals equipped with a metric, the Euclidean distance. In other words, an affine ...
of order (see
Nets below).
As every finite affine plane is uniquely extendable to a
finite projective plane of the same order, this equivalence can also be expressed in terms of the existence of these projective planes.
As mentioned above, complete sets of MOLS() exist if is a prime or prime power, so projective planes of such orders exist. Finite projective planes with an order different from these, and thus complete sets of MOLS of such orders, are not known to exist.
The only general result on the non-existence of finite projective planes is the
Bruck–Ryser theorem, which says that if a projective plane of order exists and or ≡ 2 (mod 4), then must be the sum of two (integer) squares. This rules out projective planes of orders 6 and 14 for instance, but does not guarantee the existence of a plane when satisfies the condition. In particular, = 10 satisfies the conditions, but no projective plane of order 10 exists, as was shown by a very long computer search, which in turn implies that there do not exist nine MOLS of order 10.
No other existence results are known. the smallest order for which the existence of a complete set of MOLS is undetermined is thus 12.
McNeish's theorem
The minimum number of MOLS() is known to be 2 for all except for = 2 or 6, where it is 1. However, more can be said, namely,
''MacNeish's Theorem'': If
is the factorization of the integer into powers of distinct primes
then
::
MacNeish's theorem does not give a very good lower bound, for instance if ≡ 2 (mod 4), that is, there is a single 2 in the prime factorization, the theorem gives a lower bound of 1, which is beaten if > 6. On the other hand, it does give the correct value when is a power of a prime.
For general composite numbers, the number of MOLS is not known. The first few values starting with = 2, 3, 4... are 1, 2, 3, 4, 1, 6, 7, 8, ... .
The smallest case for which the exact number of MOLS() is not known is = 10. From the Graeco-Latin square construction, there must be at least two and from the non-existence of a projective plane of order 10, there are fewer than nine. However, no set of three MOLS(10) has ever been found even though many researchers have attempted to discover such a set.
For large enough , the number of MOLS is greater than