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 5 of 5: Conclude
k∈{1,100,101,201}k\in\{1,100,101,201\}
Detailed analysis

Combining the trivial case k=1k=1 (from n=101n=101) with the three candidates confirmed by explicit constructions, the full answer is k∈{1,100,101,201}k\in\{1,100,101,201\}.