![x^2+x+1=(x^3-1)/(x-1)](https://img.qammunity.org/2021/formulas/mathematics/high-school/7rrrtbaog2ow66vwrbw0gitb0ix68wf2li.png)
so we know
has roots equal to the cube roots of 1, not including
itself, which are
![\omega=e^(2i\pi/3)\text{ and }\omega^2=e^(4i\pi/3)](https://img.qammunity.org/2021/formulas/mathematics/high-school/ywesre4byyqfy5np3s2depalopzq7do5hz.png)
Any polynomial of the form
is divisible by
if both
and
(this is the polynomial remainder theorem).
This means
![p(\omega)=\omega^(2n)+1+(1+\omega)^(2n)=0](https://img.qammunity.org/2021/formulas/mathematics/high-school/7qjs0qqpajrtceo5scjl81magiv1ltluks.png)
But since
is a root to
, it follows that
![\omega^2+\omega+1=0\implies1+\omega=-\omega^2](https://img.qammunity.org/2021/formulas/mathematics/high-school/7gnqbkspekaltobrkhzrlsuqe3nibwdy3h.png)
![\implies\omega^(2n)+1+(-\omega^2)^(2n)=0](https://img.qammunity.org/2021/formulas/mathematics/high-school/bz87ty6waoof80raa8wi0rjrofdatz7uoo.png)
![\implies\omega^(4n)+\omega^(2n)+1=0](https://img.qammunity.org/2021/formulas/mathematics/high-school/xle2aisp8yum278jq82kba6vopkietjo3k.png)
and since
, we have
so that
![\implies\omega^(2n)+\omega^n+1=0](https://img.qammunity.org/2021/formulas/mathematics/high-school/cwdetf5r5dsc1jv586i9x26gb2figs0vf1.png)
From here, notice that if
for some integer
, then
![\omega^(2(3k))+\omega^(3k)+1=1+1+1=3\\eq0](https://img.qammunity.org/2021/formulas/mathematics/high-school/r70c1q1q15wzsyjm6hnshcaqpchhw2oj8u.png)
![\omega^(4(3k))+\omega^(2(3k))+1=1+1+1=3\\eq0](https://img.qammunity.org/2021/formulas/mathematics/high-school/op6aqg8c5y3nj0nvkx9sszw5vfgah3adk7.png)
which is to say,
is divisible by
for all
in the given range that are *not* multiples of 3, i.e. the integers
and
for
.
Since 2005 = 668*3 + 1, it follows that there are
integers
such that
.
Finally,
.