Given a finite field
and a
positive integer
, we give
a procedure to count the
matrices with entries in
with all eigenvalues in the field. We give an exact value for any field for values of
up to
, and prove
that for fixed
,
as the size of the field increases, the proportion of matrices with all eigenvalues in the field
approaches
.
As a corollary, we show that for large fields almost all matrices with
all eigenvalues in the field have all eigenvalues distinct. The proofs of
these results rely on the fact that any matrix with all eigenvalues in
is similar
to a matrix in Jordan canonical form, and so we proceed by enumerating the number
of
Jordan forms, and counting how many matrices are similar to each one. A key step in
the calculation is to characterize the matrices that commute with a given Jordan
form and count how many of them are invertible.