Orthogonal Latin Square Calculator

Euler's 36 officers

CalculatorsFreeNo Signup
4.5(58 reviews)
All Tools

Loading tool...

About Orthogonal Latin Square Calculator

An orthogonal Latin square calculator generating MOLS pairs where superimposing gives all n² ordered pairs. For prime n: use multiplication tables of GF(n). Max MOLS(n) ≤ n-1. Euler's conjecture: no MOLS(6) — confirmed! Client-side.

Orthogonal Latin Square Calculator Features

  • MOLS pair
  • Superposition
  • GF(p) method
  • n=6 failure
  • Max MOLS
Orthogonal Latin squares: two n×n Latin squares L1, L2 where superimposing gives all n² ordered pairs. MOLS(n) = max mutually orthogonal set. For prime p: MOLS(p)=p-1 via finite fields. Euler's 36 officers: MOLS(6)=1 (no pair of orthogonal 6×6).

How to Use

Enter n:

  • Pair: Two orthogonal squares
  • Super: Superposition check
  • MOLS: Maximum set size

Euler's Problem

Euler (1782): can 36 officers (6 ranks × 6 regiments) be arranged in a 6×6 square so each row/column has all ranks and regiments? He conjectured NO for all n≡2(mod4). Tarry (1901) proved n=6 impossible, but Bose-Shrikhande-Parker (1960) found solutions for all other n≡2(mod4), n≥10!

Bounds

MOLS(n) ≤ n-1. Equality when n=p^k (prime power). MOLS(2)=1, MOLS(6)=1, MOLS(10)≥2. For non-prime-powers: MOLS(n) ≥ n^{1/14.8} (MacNeish-Mann bound is not tight). The exact value of MOLS(10) is still unknown!

Step-by-Step Instructions

  1. 1Enter n.
  2. 2Generate MOLS.
  3. 3Check superposition.
  4. 4Count pairs.
  5. 5Compare bounds.

Orthogonal Latin Square Calculator — Frequently Asked Questions

Why was Euler wrong?+

Euler conjectured no MOLS(n) for n≡2(mod4). He was right for n=2 and n=6, but WRONG for n=10,14,18,... Bose, Shrikhande, and Parker shocked the mathematical world in 1960 by constructing MOLS for all n≡2(mod4), n≥10.

How do finite fields help?+

For prime p: square A has A[i][j]=(i+j) mod p, square B has B[i][j]=(i+2j) mod p. More generally, A_k[i][j]=(i+kj) mod p gives p-1 MOLS. For prime powers p^k, use GF(p^k) arithmetic.

What's MOLS(10)?+

We know 2 ≤ MOLS(10) ≤ 9. The exact value is one of the biggest open problems in combinatorics. Computer searches have found pairs but exhausted the search space for larger sets. It's believed MOLS(10)=2 but this hasn't been proven.

Share this tool: