<s>[INST] Finding necessary and sufficient condition for $x^3+y^3+z^3+kxyz$ to be divisible by $x+y+z$ My question is that:

Find the necessary and sufficient condition for $x^3+y^3+z^3+kxyz$ to be divisible by $x+y+z$.

I know that answer is $k=-3$, as I know that $x^3+y^3+z^3-3xyz=(x+y+z)(x^2+y^2+z^2-xy-yz-zx)$.
But I can't prove that $k=-3$ is also a necessary condition. A mathematical proof is needed.
Thanks.
 [/INST] A low key answer is: We have $x^3+y^3+z^3+kxyz = (3+k)xyz + (x+y+z)(x^2+y^2+z^2-xy-yz-zx)$. Thus this means $(3+k)xyz$ must be divisible to $x+y+z$ for all $x,y,z$ integers. Put $x = y = 1$ we have $(3+k)z$ is divisible to $z+2$, thus you can write $(3+k)z = n(z+2)$, for all $z$ integer. Thus $n = \dfrac{(k+3)z}{z+2} = k+3 - \dfrac{2k+6}{z+2} \in \mathbb{Z}$ for all $z$ integers. Thus $2k+6 = 0 \implies k = -3$ as claimed.
</s>