Question 114
Find all positive integers $n$ for which every coefficient of the polynomial
$$
P_n(x) = (x^2 + x + 1)^n - (x^2 + x)^n - (x^2 + 1)^n - (x + 1)^n + x^{2n} + x^n + 1
$$
is divisible by $7$.
$$
P_n(x) = (x^2 + x + 1)^n - (x^2 + x)^n - (x^2 + 1)^n - (x + 1)^n + x^{2n} + x^n + 1
$$
is divisible by $7$.