1-(2-(3-(...(2015-(2016-x)))))=2017
1-2+(3-(...(2015-(2016-x))))=2017
1-2+3-...(2015-(2016-x)))=2017
...
1-2+3-...+2015-2016+x=2017
1+3+...+2015+x=2017+(2+4+...+2016)
уменьшаем 2, 4, ..., 2016 на 1, 3, ..., 2015
x=2017+(1+1+...+1) / единиц 2016/2=1008 штук
х=2017+1008=3025