1 Introduction

Classifying finite-dimensional algebras over a given field is usually a very hard problem. The first general result was a classification by Hendersson and Searle of 2-dimensional algebras over the base field \({\mathbb {R}}\), which appeared in 1992 ([1]). This was generalised in 2000 by Petersson ([3]), who managed to give a full classification of 2-dimensional algebras over an arbitrary base field. The methods employed in these papers are quite involved and rely on a large amount of previous work by many illustrious authors.

Our aim in this paper is to give perhaps not a classification but at least a way to compute the exact number of non-isomorphic n-dimensional algebras over a fixed finite field by elementary means. Indeed, nothing more complicated than linear algebra and some very basic results about group actions will be needed: we describe isomorphism classes of n-dimensional K-algebras as orbits of a certain \(\mathrm {GL}_{n}(K)\)-action on \(\mathrm {Mat}_{n}(K)^{n}\) and use a basic result about group actions to count these orbits. In the first three sections, we give a proof based on concrete calculations, while Sect. 4 is dedicated to a more abstract alternative which avoids all computations. In Sect. 5, we work out the concrete example \(n=2\), \(K={\mathbb {F}}_{2}\).

2 Notation and Basics

Fix a field K. In this article, an algebra is understood to be a K-vector space A equipped with a multiplication, i.e. a bilinear map \(A\times A\rightarrow A\). If ab are in A, we will write ab for the image of (ab) under this map. We do not assume algebras to have a unit or to be associative. By the dimension of an algebra we mean its dimension as a K-vector space. Two algebras A and \(A'\) will be called isomorphic if there exists a K-linear bijection \(f:A\rightarrow A'\) with \(f(ab)=f(a)f(b)\) for all ab in A. The isomorphism class of an algebra A will be denoted by [A]. For \(n\in {\mathbb {N}}\), we define \(\mathrm {Alg}_{n}(K)\) to be the set of isomorphism classes of n-dimensional algebras.

Given a vector \({\mathcal {M}}=(M_{i})_{i=1,\ldots ,n}\) of n \((n\times n)\)-matrices over K, we can define an algebra \(\mathrm {alg}({\mathcal {M}})\) which is \(K^{n}\) as a K-vector space and for which multiplication is defined to be the unique bilinear map \(K^{n}\times K^{n}\rightarrow K^{n}\) with

$$\begin{aligned} e_{i}e_{j}=\sum _{k}(M_{i})_{kj}e_{k} \end{aligned}$$

where the \(e_{i}\) are the canonical basis vectors of \(K^{n}\). Intuitively, this means that multiplying an element \(a\in \mathrm {alg}({\mathcal {M}})\) on the left with \(e_{i}\) is multiplying the coordinate vector of a (with respect to the canonical basis) with \(M_{i}\) and interpreting the result again as a coordinate vector (with respect to the canonical basis). This allows us to define the map

$$\begin{aligned} \left[ \mathrm {alg}\right] :\mathrm {Mat}_{n}(K)^{n}\rightarrow \mathrm {Alg}_{n}(K),{\mathcal {M}}\mapsto [\mathrm {alg}({\mathcal {M}})] \end{aligned}$$

which will play an important role in this paper.

Lemma 1.1

The map \(\left[ \mathrm {alg}\right] \) defined above is surjective.

Proof

Let A be an n-dimensional algebra with basis \(a_{1},\ldots ,a_{n}\). There are \(\alpha _{ij,k}\) in K such that \(a_{i}a_{j}=\sum _{k}\alpha _{ik,j}a_{k}\) for all \(1\le i,j\le n\). Define the matrix \(M_{i}\) by putting \((M_{i})_{jk}=\alpha _{ij,k}\) and set \({\mathcal {M}}=(M_{i})_{i=1,\ldots ,n}\in \mathrm {Mat}_{n}(K)^{n}\). There is a unique linear map \(\mathrm {alg}({\mathcal {M}})\rightarrow A,e_{i}\mapsto a_{i}\) which is clearly bijective and which, by construction, preserves multiplication. Hence \([A]=[\mathrm {alg}({\mathcal {M}})]\). \(\square \)

On the other hand, \(\left[ \mathrm {alg}\right] \) is clearly not injective, since for any \({\mathcal {M}}=(M_{i})_{i=1,\ldots ,n}\) and \(\alpha \in K^{*}\), for example, we have \([\mathrm {alg}({\mathcal {M}})]=[\mathrm {alg}(\alpha {\mathcal {M}})]\).

3 A Group Action on \(\mathrm {Mat}_{n}(K)^{n}\)

Recall that for a given set X and a group G with neutral element e, a (right) G-action on X is a map \(\phi :X\times G\rightarrow X\) such that

  1. (1)

    \(\phi (x,e)=x\) for any \(x\in X\),

  2. (2)

    \(\phi (x,gg')=\phi (\phi (x,g),g')\) for all \(g,g'\in G\), \(x\in X\).

If \(\phi \) is a G-action on X, then the \(\phi \)-orbit of an element \(x\in X\) is the set \(G(x)=\left\{ \phi (x,g)\mid g\in G\right\} \). The set of \(\phi \)-orbits is denoted by X/G. The fixpoints of a \(g\in G\) are the elements of \(X^{g}=\left\{ x\in X\mid \phi (x,g)=x\right\} \).

Lemma 2.1

The map

$$\begin{aligned} \phi :\mathrm {Mat}_{n}(K)^{n}\times \mathrm {GL}_{n}(K)\rightarrow \mathrm {Mat}_{n}(K)^{n},\left( \begin{bmatrix} M_{1}\\ \vdots \\ M_{n}\end{bmatrix},G\right) \mapsto \begin{bmatrix}G^{-1}\sum _{i}G_{i1} M_{i}G\\ \vdots \\ G^{-1}\sum _{i}G_{in}M_{i}G\end{bmatrix} \end{aligned}$$

is a \(\mathrm {GL}_{n}(K)\)-action on \(\mathrm {Mat}_{n}(K)^{n}\).

Proof

It is clear that \(\phi ({\mathcal {M}},\mathbb {1}_{n})={\mathcal {M}}\) for all \({\mathcal {M}}\) in \(\mathrm {Mat}_{n}(K)^{n}\). Take \({\mathcal {M}}=(M_{i})_{i=1,\ldots ,n}\) in \(\mathrm {Mat}_{n}(K)^{n}\) and \(G,G'\) in \(\mathrm {GL}_{n}(K)\). We have to show \(\phi ({\mathcal {M}},GG')=\phi (\phi ({\mathcal {M}},G),G')\). The term on the right is

$$\begin{aligned} \phi \left( \begin{bmatrix} G^{-1}\sum _{i}G_{i1}M_{i}G\\ \vdots \\ G^{-1}\sum _{i}G_{in}M_{i}G \end{bmatrix},G'\right)&=\begin{bmatrix} G'^{-1}\sum _{j}G'_{j1}\left( G^{-1}\sum _{i}G_{ij}M_{i}G\right) G'\\ \vdots \\ G'^{-1}\sum _{j}G'_{jn}\left( G^{-1}\sum _{i}G_{ij}M_{i}G\right) G' \end{bmatrix}\\&= \begin{bmatrix} (GG')^{-1}\sum _{i}(GG')_{i1}M_{i}GG'\\ \vdots \\ (GG')^{-1}\sum _{i}(GG')_{in}M_{i}GG' \end{bmatrix} \end{aligned}$$

which is the term on the left. \(\square \)

Lemma 2.2

Two elements \({\mathcal {M}},{\mathcal {M}}'\) of \(\mathrm {Mat}_{n}(K)^{n}\) are in the same \(\phi \)-orbit if and only if \(\mathrm {alg}({\mathcal {M}})\) and \(\mathrm {alg}({\mathcal {M}}')\) are isomorphic, i.e. if and only if \(\left[ \mathrm {alg}({\mathcal {M}})\right] =\left[ \mathrm {alg}({\mathcal {M}}')\right] \).

Proof

Assume \(\mathrm {alg}({\mathcal {M}})\) and \(\mathrm {alg}({\mathcal {M}}')\) to be isomorphic for some \({\mathcal {M}}=(M_{i})_{i=1,\ldots ,n}\) and \({\mathcal {M}}'=(M'_{i})_{i=1,\ldots ,n}\) in \(\mathrm {Mat}_{n}(K)^{n}\). Take an isomorphism \(f:\mathrm {alg}({\mathcal {M}})\rightarrow \mathrm {alg}({\mathcal {M}}')\). Since \(\mathrm {alg}({\mathcal {M}})\) and \(\mathrm {alg}({\mathcal {M}}')\), considered as K-vector spaces, are just \(K^{n}\), there must be a \(G\in \mathrm {GL}_{n}(K)\) such that f(x) is just Gx for all \(x\in \mathrm {alg}({\mathcal {M}}')\). As f is an isomorphism, we find

$$\begin{aligned} G\sum _{i}x_{i}M_{i}y&=f(xy)=f(x)f(y)=Gx\cdot Gy=\sum _{i}\left( \sum _{j}G_{ij}x_{j}M_{i}'\right) Gy \end{aligned}$$

for arbitrary \(x,y\in \mathrm {alg}({\mathcal {M}})\). In particular, if \(x=e_{l}\), we find \(GM_{l}y=\sum _{i}G_{il}M_{i}'Gy\) for all y, so \(M_{l}=G^{-1}\sum _{i}G_{il}M_{i}'G\) showing \(\phi ({\mathcal {M}}',G)={\mathcal {M}}\).

Suppose now that, for given \({\mathcal {M}}\) and \({\mathcal {M}}'\) in \(\mathrm {Mat}_{n}(K)^{n}\), there is some \(G\in \mathrm {GL}_{n}(K)\) with \(\phi (\mathcal {M'},G)={\mathcal {M}}\). G induces a function \(f:K^{n}\rightarrow K^{n},x\mapsto Gx\) which is bijective as G is invertible. To prove that f is an isomorphism between \(\mathrm {alg}({\mathcal {M}})\) and \(\mathrm {alg}({\mathcal {M}}')\), it suffices to show \(f(e_{i}e_{j})=f(e_{i})f(e_{j})\) for all i, j since f is linear. We find

$$\begin{aligned} f(e_{i})f(e_{j})=(Ge_{i})(Ge_{j})= & {} \left( \sum _{k}G_{ki}M'_{k}\right) (Ge_{j}) =\left( \sum _{k}G_{ki}M'_{k}G\right) e_{j}\\= & {} GG^{-1}\left( \sum _{k}G_{ki}M'_{k}G\right) e_{j}=GM_{i}e_{j}= f(e_{i}e_{j}), \end{aligned}$$

the penultimate equality following from \(\phi ({\mathcal {M}}',G)={\mathcal {M}}\). \(\square \)

4 Counting Orbits

From now on, we assume K to be a finite field with q elements. As a consequence of Lemma 2.2, we find that \(\mathrm {alg}\) induces a well-defined, injective map

$$\begin{aligned} {\overline{\mathrm {alg}}}:\mathrm {Mat}_{n}(K)^{n}/\mathrm {GL}_{n}(K)\rightarrow \mathrm {Alg}_{n}(K), (\mathrm {GL}_{n}(K))({\mathcal {M}})\mapsto [\mathrm {alg}({\mathcal {M}})] \end{aligned}$$

which is also surjective by Lemma 1.1. The number of isomorphism classes of n-dimensional K-algebras therefore equals the number of \(\phi \)-orbits of \(\mathrm {Mat}_{n}(K)^{n}\). The following well-known result from the theory of group actions will help us count the latter:

Proposition 3.1

(Burnside’s lemma). Suppose \(\phi \) is an action of a finite group G on a finite set X. Then

$$\begin{aligned} |X/G|=\frac{1}{|G|}\sum _{g\in G}|X^{g}|. \end{aligned}$$

Proof

Cf. e.g. [5], p.58. \(\square \)

To use this lemma, we need to know the number of fixpoints of a given invertible matrix M. For that, we need the following definition:

Definition 3.2

For a matrix \(M\in \mathrm {Mat}_{k\times l}(K)\), the vectorisation of M is the vector \(\mathrm {vec}(M)\in K^{kl}\) obtained by stacking the columns of M, the first column being on top. For an element \({\mathcal {M}}=(M_{i})_{i=1,\ldots ,n}\in \mathrm {Mat}_{n}(K)^{n}\), we write \(\mathrm {Vec}({\mathcal {M}})\) for the single vector consisting of the vectorisations of all the \(M_{i}\). For more on the vectorisation operation, we refer to [2].

Lemma 3.3

For an invertible matrix M, we have

$$\begin{aligned} \left| \left( \mathrm {Mat}_{n}(K)^{n}\right) ^{M}\right| =q^{\dim \mathrm {Eig}_{1}(M^{T}\otimes M^{T}\otimes M^{-1})} \end{aligned}$$

where \(\mathrm {Eig}_{1}(A)\) denotes the eigenspace of the matrix A with eigenvalue 1.

Proof

Suppose \({\mathcal {N}}=(N_{i})_{i=1,\ldots ,n}\) is a fixpoint of M, i.e.

figure a

It is known (see e.g. [2]) that, for arbitrary ABC in \(\mathrm {Mat}_{n}(K)\), we have \((B^{T}\otimes A)\mathrm {vec}(C)=\mathrm {vec}(ACB)\). From this, we conclude:

$$\begin{aligned} \begin{aligned} \mathrm {Vec}\left( (M^{-1}N_{i}M)_{i=1,\ldots ,n}\right) =( \mathbb {1}_{n}\otimes M^{T}\otimes M^{-1})\mathrm {Vec}({\mathcal {N}}). \end{aligned} \end{aligned}$$

We have furthermore that \(\mathrm {Vec}((\sum _{i} M_{il}O_{i})_{l=1,\ldots ,n})=(M^{T}\otimes \mathbb {1}_{n}\otimes \mathbb {1}_{n})\mathrm {Vec}({\mathcal {O}})\) for any \({\mathcal {O}}=(O_{i})_{i=1,\ldots ,n}\in \mathrm {Mat}_{n}(K)^{n}\). Consequently, (\(\dagger \)) is equivalent to

$$\begin{aligned} \mathrm {Vec}({\mathcal {N}})&=(M^{T}\otimes \mathbb {1}_{n}\otimes \mathbb {1}_{n})(\mathbb {1}_{n}\otimes M^{T}\otimes M^{-1})\mathrm {Vec}({\mathcal {N}})\\&= (M^{T}\otimes M^{T}\otimes M^{-1})\mathrm {Vec}({\mathcal {N}}), \end{aligned}$$

so \({\mathcal {N}}\) is a fixpoint of M if and only if \(\mathrm {Vec}({\mathcal {N}})\) is an eigenvector of \(M^{T}\otimes M^{T}\otimes M^{-1}\) with eigenvalue 1. \(\square \)

Theorem 3.4

The number of non-isomorphic n-dimensional K-algebras is

$$\begin{aligned} |\mathrm {Alg}_{n}(K)|=\frac{1}{|\mathrm {GL}_{n}(K)|}\sum _{M\in \mathrm {GL}_{n}(K)}q^{\dim \mathrm {Eig}_{1}(M^{T}\otimes M^{T}\otimes M^{-1})}. \end{aligned}$$

Proof

By Lemma 2.2, the number of non-isomorphic n-dimensional k-algebras is the number of \(\phi \)-orbits. By 3.1 and 3.3, this is equal to the given formula.

\(\square \)

5 A Computation-Free Road to Rome

In this section, we will outline a version of the proof which avoids all concrete computations. Grateful use has been made of an anonymous referee’s report.

Suppose A is a K-algebra. We can express a choice of basis for A as a K-vector space isomorphism \(b:K^{n}\rightarrow A\). An algebra with basis can then be seen as a pair (Ab). We call two such pairs (Ab), \((A',b')\) isomorphic if there is a K-algebra isomorphism \(f:A\rightarrow A'\) with \(f\circ b=b'\). We denote the isomorphism class of (Ab) as \(\widetilde{(A,b)}\) and the set of isomorphism classes of n-dimensional K-algebras with basis as \(\mathrm {AlgBas}_{n}(K)\).

For a K-algebra A, we write \(\mu _{A}:A\otimes A\rightarrow A,x\otimes y\mapsto xy\). Similarly, if M is an element of \(\mathrm {Hom}(K^{n}\otimes K^{n},K^{n})\), we write \(\mathrm {alg}(M)\) for the algebra which is \(K^{n}\) as a K-vector space and with multiplication given by \(xy=M(x\otimes y)\) for all xy in \(K^{n}\). We can identify the set \(\mathrm {AlgBas}_{n}(K)\) with \(\mathrm {Hom}(K^{n}\otimes K^{n},K^{n})\) by the following maps

$$\begin{aligned} \mathrm {AlgBas}_{n}(K)\rightarrow \mathrm {Hom}(K^{n}\otimes K^{n},K^{n}),&\quad \widetilde{(A,b)}\mapsto b^{-1}\circ \mu _{A}\circ (b\otimes b)\\ \mathrm {Hom}(K^{n}\otimes K^{n},K^{n})\rightarrow \mathrm {AlgBas}_{n}(K),&\quad M\mapsto \widetilde{(\mathrm {alg}(M),\mathrm {Id})} \end{aligned}$$

which can be checked to be well-defined and inverse to each other.

We can define a \(\mathrm {GL}_{n}(K)\)-action \(\phi \) on \(\mathrm {AlgBas}_{n}(K)\) by \(\phi ((A,b),g)=(A,b\circ g^{-1})\). The \(\mathrm {GL}_{n}(K)\)-orbits correspond to the fibers of the forgetful functor

$$\begin{aligned} \mathrm {AlgBas}_{n}(K)\rightarrow \mathrm {Alg}_{n}(K),(A,b)\mapsto A, \end{aligned}$$

so we can count the number of non-isomorphic n-dimensional K-algebras by counting the \(\mathrm {GL}_{n}(K)\)-orbits of \(\phi \). By the above correspondence, we get a \(\mathrm {GL}_{n}(K)\)-action on \(\mathrm {Hom}(K^{n}\otimes K^{n},K^{n})\) as well and we can count the orbits of that action instead. In order to apply Burnside’s lemma, we need to find the \(M\in \mathrm {Hom}(K^{n}\otimes K^{n},K^{n})\) fixed by a given element \(g\in \mathrm {GL}_{n}(K)\). These are precisely those M which satisfy \(g^{-1}M(g\otimes g)=M\).

Let us recall a few results from basic linear algebra. For any two finite-dimensional K-vector spaces VW we have, if we write \(V^{*}\) for the dual space of V, \(\mathrm {Hom}_{K}(V,W)\simeq V^{*}\otimes W\) via the isomorphism

$$\begin{aligned} \Phi :V^{*}\otimes W\rightarrow \mathrm {Hom}_{K}(V,W),\phi \otimes w\mapsto (\Phi (\phi \otimes w):V\rightarrow W,v\mapsto \phi (v)w). \end{aligned}$$

Similarly, a map

$$\begin{aligned} \mathrm {Hom}_{K}(V,W)\rightarrow \mathrm {Hom}_{K}(V,W),f\mapsto a\circ f\circ b \end{aligned}$$

for some \(a\in \mathrm {End}_{K}(W),b\in \mathrm {End}_{K}(V)\) corresponds to the map

$$\begin{aligned} b^{*}\otimes a:V^{*}\otimes W\rightarrow V^{*}\otimes W \end{aligned}$$

where we have written \(b^{*}\) for the dual of b.

In particular, we can apply this with \(V=K^{n}\otimes K^{n}\) and \(W=K^{n}\). Writing \(\mathrm {vec}\) for the isomorphism \(\mathrm {Hom}_{K}(K^{n}\otimes K^{n},K^{n})\rightarrow (K^{n}\otimes K^{n})^{*}\otimes K^{n}\), we find that \(g^{-1}M(g\otimes g)=M\) is equivalent to

$$\begin{aligned} ((g\otimes g)^{T}\otimes g^{-1})\mathrm {vec}(M)=\mathrm {vec}(M). \end{aligned}$$

We conclude that \(\mathrm {vec}\) induces an isomorphism between the subvector space of \(\mathrm {Hom}_{K}(K^{n}\otimes K^{n},K^{n})\) consisting of elements fixed under g on the one hand and \(\mathrm {Eig}_{1}((g\otimes g)^{T}\otimes g^{-1})\) on the other hand.

6 Example: the Case \(n=2\), \(q=2\)

Any element of \(\mathrm {GL}_{2}(K)\) has, counting (algebraic) multiplicities, two eigenvalues in the algebraic closure \({\overline{K}}\) of K. Clearly, either both or none are elements of K which makes counting invertible matrices with eigenvalues in K considerably easier. Indeed, the only possible Jordan normal forms for a \(2\times 2\) matrix areFootnote 1

$$\begin{aligned} J_{1}=\begin{bmatrix} \alpha &{}\\ &{}\beta \end{bmatrix}\quad \text {and}\quad J_{2}= \begin{bmatrix}\alpha &{}1 \\ &{}\alpha \end{bmatrix} \end{aligned}$$

for some \(\alpha ,\beta \) in the algebraic closure of K. Since \(M=SJS^{-1}\), \(M'=S'J'S'^{-1}\) implies \(M\otimes M'=(S\otimes S')(J\otimes J')(S^{-1}\otimes S'^{-1})\) and since the Jordan normal form of M is also the Jordan normal form of \(M^{T}\), it follows that every \(M^{T}\otimes M^{T}\otimes M^{-1}\) must be conjugate either to

$$\begin{aligned} M_{\alpha ,\beta }=\begin{bmatrix}\alpha &{}&{}&{}&{}&{}&{}&{} \\ &{}\alpha &{}&{}&{}&{}&{}&{} \\ &{}&{}\alpha &{}&{}&{}&{}&{} \\ &{}&{}&{}\alpha ^{2}\beta ^{-1}&{}&{}&{}&{} \\ &{}&{}&{}&{}\alpha ^{-1}\beta ^{2}&{}&{}&{} \\ &{}&{}&{}&{}&{}\beta &{}&{} \\ &{}&{}&{}&{}&{}&{}\beta &{} \\ &{}&{}&{}&{}&{}&{}&{}\beta \end{bmatrix} \end{aligned}$$

or to

$$\begin{aligned} N_{\alpha }=\begin{bmatrix} \alpha &{}-1&{}1&{}-\alpha ^{-1}&{}1&{}-\alpha ^{-1}&{}\alpha ^{-1}&{}-\alpha ^{-2}\\ &{}\alpha &{}&{}1&{}&{}1&{}&{}\alpha ^{-1}\\ &{}&{}\alpha &{}-1&{}&{}&{}1&{}-\alpha ^{-1}\\ &{}&{}&{}\alpha &{}&{}&{}&{}1\\ &{}&{}&{}&{}\alpha &{}-1&{}1&{}-\alpha ^{-1}\\ &{}&{}&{}&{}&{}\alpha &{}&{}1\\ &{}&{}&{}&{}&{}&{}\alpha &{}-1\\ &{}&{}&{}&{}&{}&{}&{}\alpha \end{bmatrix}. \end{aligned}$$

for some \(\alpha ,\beta \in {\overline{K}}\). Note that \(\dim \mathrm {Eig}_{1}(N_{1})=3\) unless the characteristic of K is 2, in which case \(\dim \mathrm {Eig}_{1}(N_{1})=4\). If \(\alpha \ne 1\), we obviously have \(\dim \mathrm {Eig}_{1}(N_{\alpha })=0\). For \(M_{\alpha ,\beta }\), the dimension of the eigenspace associated to 1 depends heavily on \(\alpha \) and \(\beta \), ranging from 8 if \(\alpha =\beta =1\) to 0 if \(1\notin \left\{ \alpha ,\beta ,\alpha ^{2}\beta ^{-1},\alpha ^{-1}\beta ^{2}\right\} \).

We will do the computations explicitly for the concrete example of \(K={\mathbb {F}}_{2}\). There are 6 invertible matrices, namely

$$\begin{aligned} \mathbb {1}_{2},\quad \begin{bmatrix} 0&{}\quad 1\\ 1&{}\quad 0\end{bmatrix},\quad \begin{bmatrix} 1&{}\quad 0\\ 1&{}\quad 1\end{bmatrix},\quad \begin{bmatrix} 1&{}\quad 1\\ 0&{}\quad 1\end{bmatrix},\quad \begin{bmatrix} 0&{}\quad 1\\ 1&{}\quad 1\end{bmatrix},\quad \begin{bmatrix} 1&{}\quad 1\\ 1&{}\quad 0\end{bmatrix}. \end{aligned}$$

The identity obviously yields a contribution of \(2^{8}\). The next three are conjugate to \(J_{2}\) with \(\alpha =1\), therefore yielding a contribution of \(2^{4}\) each. The last two have no eigenvalues over K. Their eigenvalues are the roots \(t_{1},t_{2}\) of the polynomial \(x^{2}+x+1\). As these roots satisfy \(t_{1}^{2}=t_{2},t_{2}^{2}=t_{1}\), both matrices give a contribution of \(2^2\). This gives a total of \(2^{8}+3\cdot 2^{4}+2\cdot 2^{2}=312\) which divided by the total number of invertible matrices gives \(312/6=52\). This number fits the formulae which were obtained, using completely different methods, by Petersson and Scherer in [4].

7 Outlook

Theorem 3.4 suggests the following question: how many invertible \(n\times n\)-matrices M have

$$\begin{aligned} \dim \mathrm {Eig}_{1}(M^{T}\otimes M^{T}\otimes M^{-1})=k \end{aligned}$$

for a given \(k\in {\mathbb {N}}\)? If q and n are fixed, this is a finite problem and can therefore be calculated, but this is rather tedious and time-consuming. Having a closed formula in q and n would be nice.

On the algebraic side, it would be interesting to see whether the method described in this paper can also be used to count certain subclasses of algebras, like alternating algebras, associative algebras, or division algebras.