How many 3 by 3 Latin squares?
A Latin square of order 3 is a 3 by 3 grid filled with the symbols 1, 2, 3 so that each symbol appears exactly once in every row and exactly once in every column.
How many 3 by 3 Latin squares are there? Then explain why the count for order 4 is much larger (576) and why exact counts are known only up to order 11.
Show a hint
Fix the first row as 1 2 3 and count the ways to complete the square; then multiply by the number of possible first rows.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Handshakes at a partyLocks and keys for a majority of fiveSplitting a team and scoring the products100 prisoners and the light bulbAnts on a triangle
All questions →