How to find element of order $q^2-1$ in $\text{GL}_2(\mathbb{F}_q)$? I am hoping to find field $\mathbb F_{q^2}$ as subalgebra of $2\times 2$ matrices over field $\mathbb F_q$ where $q$ is power of prime number. I was trying with element $\pmatrix {n&1 \\ 1&0}$ but it works only for $q=2,3,4,8,16$.
It is suggested that this is duplicate of question $GL_n(\mathbb F_q)$ has an element of order $q^n-1$
But I don't know how to find $\mathbb F_{q^2}$ in $M_2(\mathbb F_q)$.
Here is test in GAP for above matrix - $n$ is generator of the field multiplicative group.
gap> List([2,3,4,5,7,8,9,11,13,16,17,19,23,25,27,29,31,32,37,41],
> k->Order([[Z(k),1],[1,0]]*Z(k)^0));
[ 3, 8, 5, 12, 16, 9, 20, 24, 28, 17, 16, 40, 22, 52, 56, 20, 64, 31, 76, 40 ]
To give my motivation - I want to prove that algebra $M_2(\mathbb F_q)$ can be represented as ${a+bj}$ for $a,b$ belonging to $\mathbb F_{q^2}$ and multiplication given by Cayley-Dickson $$(a+bj)(c+dj)=ac+\bar db + (da+b\bar c)j,$$
where $j$ is matrix satisfying $\bar j=-j$.