Đặt:
(dfrac{x}{2}=dfrac{y}{5}=dfrac{z}{7}=kRightarrowleft{{}egin{matrix}x=2k\y=5k\z=7kend{matrix} ight.)
(P=dfrac{x-y+z}{x+2y-z}=dfrac{2k+5k-7k}{2k+10k-7k}=0)
(Q=dfrac{x^2-2017^2+1002.z^2}{x^2+2017y^2-1003z^2})
(Q=dfrac{4k^2-2017^2+1002.49k^2}{4k^2+2017.25k^2-1003.49k^2})
Tính ra,cái này dái quá