a(2)=9, because the matrix ((1 2)(3 4)) has Delacorte Number
D(1,2) + D(1,3) + D(1,4) + D(2,3) + D(2,4) + D(3,4) =
gcd(1,2)*(1^2 + 0^2) +
gcd(1,3)*(0^2 + 1^2) +
gcd(1,4)*(1^2 + 1^2) +
gcd(2,3)*(1^2 + 1^2) +
gcd(2,4)*(0^2 + 1^2) +
gcd(3,4)*(1^2 + 0^2) = 1*1 + 1*1 + 1*2 + 1*2 + 2*1 + 1*1 = 9.
Putting (2,4) in a row or column gives the minimum value of the matrix, whereas putting this pair in one of the diagonals gives the maximum.
a(3)=126, because no arrangement of the matrix elements exists that produces a smaller Delacorte Number than e.g. ((1 2 4)(3 6 8)(5 9 7)).