Let $p$ be a prime number and $n \in \mathbb{N}^+$. Let $H_n$ be the product of all monic irreducible polynomials in $\mathbb{F}_p[T]$ whose degree is equal to $n$. What is known about $H_n$? Is there an explicit formula? Where does it appear in the literature?
It is well-known that the product of all monic irreducible polynomials whose degree divides $n$ is equal to $T^{\large p^n}-T$. It follows that, if $\ell$ is a prime number, then $$H_{\ell} = (T^{\large p^\ell} - T)/(T^p - T).$$ More generally, if $n = \ell^s$ is a power of a prime number, then $$H_{\large \ell^s} = (T^{\large p^{\ell^s}} - T)/(T^{\large p^{\ell^{s-1}}} - T).$$ For the product of two primes it is also easy, but for $n = 12 = 2^2 \cdot 3$ we need the principle of inclusion-exclusion to find (if I am not mistaken) $$H_{12} = \dfrac{(T^{\large p^{12}} - T) (T^{\large p^2}-T)}{(T^{\large p^4}-T)(T^{\large p^6}-T)}.$$ I assume that a similar approach works in general. I am looking in particular for a good reference.