TOPICS
Search

Greatest Common Divisor Matrix


The greatest common divisor matrix on distinct positive integers x_1<...<x_n is the matrix G whose (i,j) entry is the greatest common divisor GCD(x_i,x_j).

Let T be the set of all positive divisors of the x_i, ordered increasingly. The divisibility matrix E has rows indexed by the x_i and columns indexed by d in T, with E_(i,d)=1 if d divides x_i and 0 otherwise. Let D_phi be the diagonal matrix with entries phi(d) for d in T, where phi(d) is the totient function. The identity sum_(d|m)phi(d)=m gives

 G=ED_phiE^T.

The columns indexed by the x_i form a lower triangular matrix with 1 on the diagonal, so E has full row matrix rank. Since each phi(d)>0, the factorization shows that G is positive definite.

If the set of x_i contains every positive divisor of each member, then E itself is square and has determinant 1. In this case Smith's (1875) formula gives

 detG=product_(i=1)^nphi(x_i).

In particular, the formula applies to {1,...,n}. The reciprocal of each entry of the corresponding least common multiple matrix is G_(ij)/(x_ix_j), so that matrix of reciprocals has determinant detG/(x_1...x_n)^2.


See also

Determinant, Greatest Common Divisor, Least Common Multiple Matrix, Totient Function

Explore with Wolfram|Alpha

References

Smith, H. J. S. "On the Value of a Certain Arithmetical Determinant." Proc. London Math. Soc. 7, 208-213, 1875. https://doi.org/10.1112/plms/s1-7.1.208.

Cite this as:

Weisstein, Eric W. "Greatest Common Divisor Matrix." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GreatestCommonDivisorMatrix.html

Subject classifications