Đặt \(\left(y+z;x+z;x+y\right)=\left(a;b;c\right)\) \(\Rightarrow\left\{{}\begin{matrix}x=\frac{b+c-a}{2}\\y=\frac{a+c-b}{2}\\z=\frac{a+b-c}{2}\end{matrix}\right.\) và \(\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=\frac{1}{2017}\)
\(P=\frac{1}{2a+b+c}+\frac{1}{a+2b+c}+\frac{1}{a+b+2c}\)
\(P\le\frac{1}{16}\left(\frac{2}{a}+\frac{1}{b}+\frac{1}{c}+\frac{1}{a}+\frac{2}{b}+\frac{1}{c}+\frac{1}{a}+\frac{1}{b}+\frac{2}{c}\right)\)
\(P\le\frac{1}{4}\left(\frac{1}{a}+\frac{1}{b}+\frac{1}{c}\right)=\frac{2017}{4}\)
Dấu "=" xảy ra khi \(a=b=c=6051\) hay \(x=y=z=\frac{6051}{2}\)