\(\left\{{}\begin{matrix}x+xy+y=1\\y+yz+z=3\\z+zx+x=7\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}x\left(y+1\right)+\left(y+1\right)=2\\y\left(z+1\right)+\left(z+1\right)=4\\z\left(x+1\right)+\left(x+1\right)=8\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}\left(x+1\right)\left(y+1\right)=2\\\left(y+1\right)\left(z+1\right)=4\\\left(z+1\right)\left(x+1\right)=8\end{matrix}\right.\)
\(\Rightarrow\left[\left(x+1\right)\left(y+1\right)\left(z+1\right)\right]^2=64\)
\(\Rightarrow\left(x+1\right)\left(y+1\right)\left(z+1\right)=8\) ( do x,y,z không âm )
\(\Rightarrow\left\{{}\begin{matrix}x+1=2\\y+1=1\\z+1=4\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}x=1\\y=0\\z=3\end{matrix}\right.\)
\(\Rightarrow P=3^{2017}+1\)