Since P(x)=f(x3)+xg(x3) is divisible by x2+x+1, both primitive cube roots of unity ω and ω2 (where ω=e2πi/3) are roots of P(x). Note that ω3=1.
Substituting x=ω: P(ω)=f(ω3)+ωg(ω3)=f(1)+ωg(1)=0. Substituting x=ω2: P(ω2)=f(1)+ω2g(1)=0.
Subtracting these two equations gives (ω−ω2)g(1)=0. Since ω=ω2, we conclude g(1)=0. Substituting back into either equation gives f(1)=0.
Therefore P(1)=f(1)+1⋅g(1)=0+0=0.