Engineering MathematicsVery hardGATE CS (PYQ pattern)

Let A be the 5×5 matrix with entries aᵢⱼ = |i − j|. What is det(A)?

  1. A. −32
  2. B. 16
  3. C. 32
  4. D. 64

Correct answer: C. 32

This is the distance matrix of a path on 5 vertices; for a tree on n vertices det = (−1)ⁿ⁻¹ (n − 1) 2ⁿ⁻² (Graham–Pollak). For n = 5 this is 4·8 = 32 (it would be −12 for n = 4 and −80 for n = 6).

More Engineering Mathematics (GATE) questions

Exams that ask this topic