Dễ thấy y + 2018 > y + 2017 nên 2x > 2z
\(\Rightarrow2^x⋮2^z\)
hay y + 2018 \(⋮\) y + 2017
=> y + 2017 + 1 \(⋮\) y + 2017
Vì y + 2017 \(⋮\) y + 2017 nên 1 \(⋮\) y + 2017
\(y+2017\in\left\{\pm1\right\}\)
+) \(y+2017=1\Rightarrow y=-2016\)
Lúc đó x = 1; z = 0 (tm)
+) \(y+2017=-1\Rightarrow y=-2018\)
Lúc đó \(2^z=-1\)(vô lí)
Vậy x = 1;y = -2016;z=0