Maximum cardinality of S

1.Let $S$ be a subset of ${1,2,…,n}$ such that for every $a,b$ in $S$ $a+b$ not is square
What is the maximum cardinality of $S$

The numbers of form $4k+1$