GATE Computer ScienceVery hardGATE CS

How many Latin squares of order 4 are there (4 × 4 arrays over {1, 2, 3, 4} in which every row and every column contains each symbol exactly once)?

  1. A. 576
  2. B. 288
  3. C. 144
  4. D. 96

Correct answer: A. 576

There are 4 reduced Latin squares (first row and first column in natural order). Each reduced square gives 4! · 3! = 144 distinct squares, so the total is 4 × 144 = 576, confirmed by exhaustive backtracking.

More Discrete Mathematics questions

Exams that ask this topic