MathLabs

Problem 1

Let n≥100n \ge 100 be an integer. Ivan writes the numbers n,n+1,…,2nn, n+1, \ldots, 2n each on a different card. He then shuffles these n+1n+1 cards and divides them into two piles. Prove that at least one of the piles contains two cards whose numbers sum to a perfect square.
Step 2 of 5: Find when a,b,ca,b,c all fit inside [n,2n][n,2n]
In plain words

Requiring the smallest of the triple to be at least nn and the largest at most 2n2n pins down exactly which nn work for a given kk.

Ik={n∈Z:k2+2k≤n≤2k2−4k}I_k=\{n\in\mathbb{Z}: k^2+2k\le n\le 2k^2-4k\}
Detailed analysis

The triple lies in [n,2n][n,2n] exactly when a≥na\ge n and c≤2nc\le 2n, i.e. 2k2−4k≥n2k^2-4k\ge n and k2+2k≤nk^2+2k\le n. So the triple works precisely for nn in the interval Ik={n∈Z:k2+2k≤n≤2k2−4k}I_k=\{n\in\mathbb{Z}: k^2+2k\le n\le 2k^2-4k\}.