So this is part of an exercise sheet where I thought I had figured it out but turns out I didn't.
Theory from lecture:
We know for a prime $p$ the finite field $\mathbb{F}_{p^n}$ is isomorphic to $\mathbb{F}_{p}[x]/(m)$ where $m$ is some monic irreducible (over $\mathbb{F}_{p}$) polynomial of degree n. We also know the multiplicative group $\mathbb{F}_p^*$ has order $p-1$ for a finite field $\mathbb{F}_p$ and $p$ prime.
Part 1 (solved): For $p^n=9$ find such a minimal polynomial.
We have $\mathbb{F}_{9}=\mathbb{F}_{3²}\simeq \mathbb{F}_{3}[x]/(m_2)$ where $m_2$ has degree 2 and is monic and irreducible over $\mathbb{F}_3$.
I guessed $m_2(x) = x²+1$ which is irreducible over $\mathbb{F}_3$ since $m_2(0) = 0²+1=1\neq0$, $m_2(1) = 1²+1=2\neq0$ and $m_2(2)=2²+1=2\neq0$.
Remains to check a root $\alpha$ of $m_2$ is really a generator of $\mathbb{F}_3^*$. We therefore check the order of $\alpha$:
Firstly, note $\alpha$ a root $\implies$ $m_2(\alpha)=0=\alpha²+1 \iff \alpha² = - 1 = 2 \in\mathbb{F}_3$
Then,
$\alpha³=\alpha\alpha²=2\alpha$
$\alpha⁴=(\alpha²)²=4=1 \in \mathbb{F}_3$. Hence, the order of $\alpha$ is $4\neq8\implies\alpha$ is not a generator.
Taking an educated guess and trying $(\alpha+1)$ yields
$(\alpha+1)²=\alpha²+2\alpha+1=2\alpha$ (since $\alpha²=-1$)
$(\alpha+1)³=(\alpha+1)(\alpha+1)²=2\alpha(\alpha+1)=2\alpha²+2\alpha=2\alpha-2$
$(\alpha+1)⁴=((\alpha+1)²)²=4\alpha²=-4=-1\in\mathbb{F}_3$
Hence, $1=(-1)²=((\alpha+1)⁴)²=(\alpha+1)⁸\implies \alpha+1$ has order 8 and is hence a generator of $\mathbb{F}_3^*$. Now we need to find a minimal polynomial of $\alpha+1$. Above we find $(\alpha+1)²=2\alpha \iff (\alpha+1)²-2\alpha=0 \iff (\alpha+1)²-2(\alpha+1)+2=0$ hence $\alpha+1$ is a root of $m_2'=x²-2x+2=x²+x+2 \in\mathbb{F}_3$. This is our desired polynomial.
Part 2 (need help): For $p^n=16$ find such a minimal polynomial.
Like above we find $\mathbb{F}_{16}=\mathbb{F}_{2⁴}\simeq \mathbb{F}_{2}[x]/(m_4)$ where $m_4$ has degree 4 and is monic and irreducible over $\mathbb{F}_2$.
I guessed $m_4(x) = x⁴+x+1$ which is irreducible over $\mathbb{F}_2$ since $m_4(0) =1\neq0$ and $m_4(1) = 1\neq0$.
Remains to check a root $\alpha$ of $m_4$ is really a generator of $\mathbb{F}_{16}^*$, hence has order 15. We therefore check the order of $\alpha$:
Firstly, note $\alpha$ a root $\implies m_4(\alpha) = \alpha⁴+\alpha+1=0 \iff \alpha=\alpha⁴+1 \in \mathbb{F}_2$ Then,
$\alpha²=(\alpha⁴+1)²=\alpha⁸+2\alpha⁴+1=\alpha⁸+1$
$\alpha³=\alpha\alpha²=\alpha⁹+\alpha$
$\alpha⁴=(\alpha²)²=\alpha^{16}+1$
$\alpha⁵=\alpha^{17}+\alpha$ but $\alpha^{15}=(\alpha⁵)³=(\alpha^{17}+\alpha)³=\alpha^{51}+3\alpha^{35}+3\alpha^{19}+\alpha³\neq1\implies \alpha$ not a generator? Please tell me there is a more intelligent way than guessing and computing all the orders of $\alpha+1$ and $\alpha-1$?