As part of a combinatorics question I was able to simplify it into evaluating $(1+x)(1+x^2)\ldots (1+x^{p-1})$ at pth roots of unity for odd primes p.
I have guessed and checked with a computer that this product is always $1$ except for when we use the root of unity $1$, in which case it's $2^{p-1}$ (the latter case is trivial)
I'm not sure how to prove that the product is $1$ for non $1$ pth roots of unity.
What I've tried:
Let $z$ be a pth root of unity that isn't equal to $1$.
Hence the product equals $$ \prod_{k=1}^{\frac{p-1}2}(1+z^k)(1+z^{-k}) \quad\quad\text{(pairing opposite factors)}$$ $$ = \prod_{k=1}^{\frac{p-1}2}\left(2\cdot\cos\left(\frac{k\pi}{p}\right)\right)^2$$
However I see no way to go forward from here and prove the product equals $1$.