MathLabs

Problem 3

Find all positive integers k<202k<202 for which there exists a positive integer nn such that {n202}+{2n202}+⋯+{kn202}=k2,\left\{\frac{n}{202}\right\}+\left\{\frac{2n}{202}\right\}+\cdots+\left\{\frac{kn}{202}\right\}=\frac{k}{2}, where {x}\{x\} denotes the fractional part of xx. (Here {x}\{x\} is the real number rr with 0≤r<10\le r<1 such that x−rx-r is an integer.)
Step 2 of 5: Clear denominators
nk(k+1)−404z=202k,z=∑i=1k⌊in202⌋nk(k+1)-404z=202k,\qquad z=\sum_{i=1}^{k}\left\lfloor\frac{in}{202}\right\rfloor
Detailed analysis

Writing {in/202}=in/202−⌊in/202⌋\{in/202\}=in/202-\lfloor in/202\rfloor and summing for i=1,…,ki=1,\ldots,k, the equation becomes n202⋅k(k+1)2−z=k2\frac{n}{202}\cdot\frac{k(k+1)}{2}-z=\frac{k}{2} where zz is the sum of the floors above. Multiplying by 404404 gives the integer identity shown.