How to Use
Enter n:
- Generate: Random Latin square
- Reduced: First row/column in order
- Verify: Check validity
Counting
L(n) grows super-exponentially: L(1)=1, L(2)=2, L(3)=12, L(4)=576, L(5)=161280, L(6)=812851200... No closed form exists. Computing L(n) is #P-complete for general n.
Applications
- Experimental design: balance treatments across conditions
- Sudoku: Latin square + box constraint
- Coding theory: orthogonal Latin squares → error-correcting codes
- Tournament scheduling
Step-by-Step Instructions
- 1Choose order n.
- 2Generate square.
- 3Verify validity.
- 4View reduced form.
- 5Check count.