Let
P(x)=x3+x+1, so the product is
∏k=06P(ωk), where
ω0,…,ω6 are all seventh roots of unity. Since
x7−1=∏k(x−ωk), writing the factorization
P(x) =(x−β1)(x−β2)(x−β3) and swapping the order of the double product gives
k=0∏6P(ωk)=j=1∏3k=0∏6(ωk−βj)=j=1∏3(−(βj7−1))=j=1∏3(1−βj7).
For a root
β of
P, repeatedly using
β3=−β−1 gives
β4=−β2−β, β5=−β2+β+1, β6=β2+2β+1, and
β7=2β2−1. Hence
1−β7=2(1−β)(1+β), and
j∏(1−βj7)=23j∏(1−βj)j∏(1+βj)=8⋅P(1)⋅(−P(−1))=8⋅3⋅1=24.
So the requested product equals
24.