Solution:
It suffices to show that for n≥18, the total number of colorings (without restriction) exceeds those that make some n-term arithmetic sequence monochromatic.
There are 22017 colorings of a set with 2017 elements. The number of colorings that make a fixed n-term sequence monochromatic is 2⋅22017−n=22018−n, since the terms not in the sequence can be colored without restriction, while those in the sequence can be colored either all red or all white.
We now find the number of n-term arithmetic sequences that can be obtained from A. Such a sequence a,a+r,…,a+(n−1)r is completely determined by the first term a and common ratio r, subject to the constraint a+(n−1)r≤2017. For each value of a, there are ⌊n−12017−a⌋ sequences that start with a. This means that the number of arithmetic sequences does not exceed
a=1∑2017n−12017−a=2(n−1)2016⋅2017
Therefore, the total number of colorings that make at least one arithmetic sequence monochromatic does not exceed
22018−n⋅2(n−1)2016⋅2017
But for n≥18,
22018−n⋅2(n−1)2016⋅2017≤22018−n⋅2(n−1)2048⋅2048=n−122039−n≤1722021<22017