Problem 988: (2023 AIME II, 8)
Let $\omega = \cos\frac{2\pi}{7} + i \cdot \sin\frac{2\pi}{7},$ where $i = \sqrt{-1}.$ Find the value of the product \[\prod_{k=0}^6 \left(\omega^{3k} + \omega^k + 1\right).\]
- The $k=0$ factor is $3$. For $k\ne0$, $\omega^k$ runs over the roots $x$ of $\Phi_7$, so we need $\prod_x(x^3+x+1)$.
- If $r_1,r_2,r_3$ are the roots of $g(t)=t^3+t+1$, this equals $\prod_j\Phi_7(r_j)=\prod_j\frac{r_j^7-1}{r_j-1}$. Reducing with $r^3=-r-1$, we get $r^7=2r^2-1$, so the ratio is $2(r+1)$.
- $\prod_j2(r_j+1)=8\cdot(-g(-1))=8$. The product is $3\cdot8=24$. The answer is $\boxed{024}$.
Let $\omega = \cos\frac{2\pi}{7} + i \cdot \sin\frac{2\pi}{7},$ where $i = \sqrt{-1}.$ Find the value of the product \[\prod_{k=0}^6 \left(\omega^{3k} + \omega^k + 2\right).\]