Answer: The two solutions are (0,0) and (0,2).
Since 2017a is always odd, b must be even, so b=2c, c integer. Therefore, 2017a=64(c6−c)+1 and thus 2017a≡1(mod64). But we find 2017≡33(mod64) and 20172≡(1+32)2=1+2⋅32+322≡1(mod64), so that the powers of 2017 modulo 64 alternate between 1 and 33. Therefore, a is even and 2017a is a perfect square. We denote the polynomial on the right-hand side of the given equation by r(b)=b6−32b+1 and show that it lies between two consecutive squares for b>4:
Let b>4. We have r(b)<b6=(b3)2 for b>0. On the other hand, r(b)>(b3−1)2 because b6−32b+1>b6−2b3+1⇔b>4. Since the square 2017a is now between two consecutive squares, there are no solutions in this case.
Since b is even, it remains to check b=4, b=2 and b=0.
For b=4, we regard the equation modulo 3 and get 1≡1−2+1=0, therefore, there is no solution in this case.
For b=2, we get 2017a=26−26+1, so we get the solution (a,b)=(0,2).
For b=0, we get 2017a=1, so we get the solution (a,b)=(0,0).
Therefore, (0,0) and (0,2) are the only solutions.