Proof. Suppose that there is a
matrix
with integral elements and determinant
whose first row is
, so that
for
. The development of the determinant following the first line is written
where
is the cofactor of
in the matrix
(and
the corresponding minor).
Then the relation
shows that
.
We prove the converse by induction. For
, this is the result of Problem 3. Since
, there exist integers
such that
, thus
, so
To introduce the method, we treat the case
, before showing the general case. It it is just for explaining things, so you can skip this part and go to the general method.
Suppose that
. Put
. Then
.
If
, then
, and
. Then we can take
Suppose now that
. Put
. Then
. The case
shows that there are integers
such that
, which gives
.
Then we search integers
such that
Here
thus
This shows that
if and only if
. To prove the existence of such integers
, we choose the integers
such that
Since
, such an integer
exists. Moreover
(because
), therefore there are integers
such that
(Note that it is useless to solve this equation by the Bézout’s algorithm, because
, thus
, so
is a solution.)
Then, by equations (1), (2), and (3),
so that
.
For instance, take
. Then
, and
, so we can take
. Equation (2) is
, so we can take
. Then
, so that
Now we treat the general case. Suppose that for some integer
, and for any
such that
, we can find a matrix
such that
.
Take now
integers
such that
. Put
.
If
, then
, and
. We can take
such that
.
If
, put
. Then
. If we apply the induction hypothesis to
, we obtain a matrix
Therefore
satisfies
. We prove the existence of integers
such that
By expanding
along the last column, we obtain
where
Here
, where
is the cofactor of
in
, and
Therefore equation (4) gives
Since
, there exist integers
and
such that
Moreover, we can find
such that
Indeed,
, so
. More explicitly, since
, we obtain
, so a solution is
Then equations (5), (6) and (7) show that
for this choice of
, and so the induction is done.
There is a
matrix with integral elements and determinant
whose first row is
, if and only if
. □