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)?
- A. 576
- B. 288
- C. 144
- 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
- In the game of Nim with piles of 9, 12, 17, 21, 30 and 6 stones, a move removes any positive number of stones from a single pile. How many…
- Let F(0) = 0, F(1) = 1, F(n) = F(n − 1) + F(n − 2). What are the last two decimal digits of F(2024)?
- How many different equivalence relations can be defined on a set of 5 elements?
- How many onto (surjective) functions exist from a 5-element set to a 3-element set?
- In how many ways can 6 distinct letters be placed into their 6 addressed envelopes (one per envelope) so that no letter is in its own…
- What is the smallest positive integer x with x ≡ 2 (mod 3), x ≡ 3 (mod 5) and x ≡ 2 (mod 7)?