Choose a set S consisting of $\frac{n+1}{2}$ numbers from the first $n$ natural numbers($1,2,3,...,n$) ($n\geq 2017$, $n$ is odd). Prove that there must be three numbers in S which are a 3-term arithmetic progression.
I am thinking of using recursion but I find the condition $n \geq 2017$ quite weird. Some smaller cases like $n=7$ or $n=9$ is not true (1,2,4,5) (1,2,6,7,9).

An answer from a reputable source.
In 1936 Erdős and Turán [ET] for a natural number $n$ defined $r(n)$ as the largest size of a subset of $\{1,\dots, n\}$ without three-term arithmetic progressions. Bounds from $r(n)$ are well-studied, see this thread. Then your question is to show that $r(2n+1)\le n$ if $n\ge 1008$. Already the first theorem from [ET] stating that $r(2n)\le n$ if $n\ge 8$ provides almost the required bound. The needed improvement follows from obvious Inequality (3), stating $r(m+n)\le r(m)+r(n)$ and the equality $r(17)=8$, proved on the next page. It follows that $r(2n+1)\le n$ if $n\ge 25$. In fact, the values of $r(n)$ presented at the same page show that $r(2n+1)\le n$ if $n\ge 17$.
References
[ET] Paul Erdős, Paul Turán. On some sequences of integers, J. London Math. Soc., 11:4, (1936), 261–264. MR1574918, Zentralblatt JFM 62.1126.01.