Latin Squares

As part of the seminar course in Eötvös József College I gave a 2 times 90 min lecture on the topics of latin squares in 2021. The content was aimed at a level, so that already with minimal college level math education people could follow, but interesting results are included in the note with proper references, for people more interested. My original interest arised based in the topics based on the following question I got:

If you want to organize a night orienteering race series during the winter and you have n participant is it possible to arange them in a way, so every participant starts at each position during an n race series and each pair of participants start rigth after each other in both order?

The motivation was that in night orienteering with probably snow both your order in the start list influence your chance as how many people created the path in the snow beforhand. Also the people you are likely to catch up are the one starting rigth ahead and after you. As in night orienteering the mistakes are more common and you can see the lights of the others from far away it is common to meet with the one starting around you.

At around 16 years old this was the mathematical formulation I come up with. Through my sister this problem arived to the organizing team of Durer competition, where someone found an answer for which n it is possible. This concept is called Row-complete latin squares in mathematics. For the final of the given year in the given math contest there was a problem created based on this idea with the text reflecting on the problems origin. (Problem D.4. on 2016/17 Final)

Lecture Notes

Part 1 - Introduction 1

Definitions: (Latin rectangle, Latin square, normalized, reduced)

A Latin rectangle of size \( k \times n \) (\(n \leq k\)) is an \( k \times n \) array \( L \) with symbols from \( Z_n \) (the set of symbols {1, 2, ..., n}), such that each row and each column contains only distinct symbols. If \( k = n \), then \( L \) is a Latin square of order \( n \).

Let \( L_{k,n} \) be the number of \( k \times n \) Latin rectangles.

A Latin rectangle is called normalized if the first row is \( (1, 2, \ldots, n) \).

A Latin rectangle is called reduced if it is normalized and the first column is \( (1, 2, \ldots, k)^T \).

Let \( K_{k,n} \) denote the number of normalized \( k \times n \) Latin rectangles, and let \( R_{k,n} \) denote the number of reduced \( k \times n \) Latin rectangles.

Example: A Sudoku board is a Latin square.


Question 1: Does an \(n\times k\) Latin rectangle exist for all values of \(n, k\)?

Question 2: What is the relationship between the \(L_{k,n} ,K_{k,n} \) and \(R_{k,n} \) values for given n and k?


Notes: In general the number of latin rectangles, or squars are not known in a closed form. There are known results, which gives exact formula using combinatorial calculations. Exact number is known up to \(n=11\) since 2005 2.

Assimptotics results are known, which give us a feeling how fast the number of latin squares are growing 3:

\[L_{n,n} \sim (\frac{n}{e^2}) ^{n^2}\]

To be continued…




  1. Stones, Douglas S. “The Many Formulae for the Number of Latin Rectangles.” The Electronic Journal of Combinatorics, June 14, 2010, A1–A1. https://doi.org/10.37236/487

  2. McKay, B.D., Wanless, I.M. On the Number of Latin Squares. Ann. Comb. 9, 335–344 (2005). https://doi.org/10.1007/s00026-005-0261-7 

  3. Timashov, A.N.. (2002). On permanents of random doubly stochastic matrices and asymptotic estimates of the numbers of Latin rectangles and Latin squares. Discrete Mathematics and Applications. 12., p. 431–452, https://doi.org/10.1515/dma-2002-0502