Let $k'=\mathbb{F}_q$ and $k=\mathbb{F}_p$, where $q=p^d$. We may regard $k'$ as a $d$-dimensional $k$-algebra via $k\hookrightarrow k'$. For any choice of $k$-basis $\{e_1,\ldots,e_d\}$ we obtain structure constants $a_{ij}^l$ giving the multiplication of basis elements:
$$e_i\cdot e_j=\sum_{l=1}^da_{ij}^le_l$$
I'm trying to define this algebra structure on $\mathbb{F}_q$ in Magma, so I need an explicit description of the $a_{ij}^l$. Is there a way to pick a particularly nice basis so that we can arrive at a formula for the $a_{ij}^l$?
I tried starting with $e_1$, a generator of the multiplicative units of $k'$, and considering the basis of the images of $e_1$ under the Galois group, that is, $e_i=e_1^{p^i}$. But it is not clear to me how to express $e_1^{p^i+p^j}$ as a linear combination of the $e_l$.
Eltseq, when applied to, e.g., an element ofGF(q)will give you the coefficients of an element of $\mathbb{F}_q$ relative to the power basis. I'm not sure if you have to construct the field in a special way to get this to work.Are you sure whatever you're trying to do can't be done with magma's finite field functionality instead?