Let $k \ge 1$ be an integer.
If $S$ is a set of positive integers with $|S| = N$, then there is a subset $T \subset S$ with $|T| = k+1$ such that for every $a,b \in T$, the number $a^2-b^2$ is divisible by $10$.
What is the smallest value of $N$ as a function of $k$ so that the above statement is true?
I have observed that perfect squares end with $0,1,4,5,6$ and $9$. If we have two perfect squares that end with the same as one of $0,1,4,5,6$ and $9$, then we are done.
I think by PHP we should have $\left\lceil\frac{N}{k}\right\rceil = 6$.