My work:
I wrote it in this form $[(1+w)(1+w^2)(1+w^3)]^k$ where k is the number of repeat of this triplet in a product.
Every three things consecutive factors of $(1+w) ( 1+w^2) ( 1+w^3)$ count as one power to the exponent. I wrote $ k = \frac{q}{3}$ where $q$ is a number of terms in product, so I can group these products which give same value .
Here it is $q=2n$, so
$$ [ (1+w)(1+w^2)(1+w^3)]^{\frac{2n}{3}}$$
But this identity definitely doesn't seem to work for some powers like $n=2$, since
$$ (1+w)(1+w^2)(1+w^3)(1+w^4) = [(1+w)(1+w^2)^{\frac{1}{2}}(1+w^3)^{\frac{1}{2}}]^2$$ which doesn't match with derived identity