I am trying to find idempotent elements in $R:=\Bbb Z_2[x]/(x^7+1)$. Of course $0,1$ are idempotents.
My attempt: For $f \in \Bbb Z_2[x]$, let $\bar{f}$ denote its residue class. We may assume that $\deg (f)<7$. Suppose $\bar{f}$ is an idempotent. Then $\bar{f}^2-\bar{f}=0$ in $R$, so $f^2-f$ is a multiple of $x^7+1=x^7-1=(x-1)(x^6+x^5+x^4+x^3+x^2+x+1)$. But I can't find how to proceed. Any hints?
We can write any element of $R$ using the lowest degree polynomial in its coset. So if $I=\langle x^7+1\rangle$, then the general element $f$ looks like $$ f=\sum_{i=0}^6b_ix^i+I $$ with $b_i\in\Bbb{Z}_2$, $i=0,1,\ldots,6$.
The hints (prove these if you don't know them already):
When the fog has cleared up you should see a total of eight idempotents in this ring (you can freely choose a carefully picked subset of the $b_i$s but the other coefficients are constrained).