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 3 of 5: Reduce modulo the prime 101
101∣k(k+1) ⟹ k∈{100,101,201}(1≤k<202)101\mid k(k+1)\ \Longrightarrow\ k\in\{100,101,201\}\quad(1\le k<202)
Detailed analysis

Reducing nk(k+1)−404z=202knk(k+1)-404z=202k modulo 101101 (noting 202=2⋅101202=2\cdot101 and 404=4⋅101404=4\cdot101) gives 101∣nk(k+1)101\mid nk(k+1). Since 101101 is prime and 101∤n101\nmid n, this forces 101∣k(k+1)101\mid k(k+1), i.e. 101∣k101\mid k or 101∣k+1101\mid k+1. Together with 1≤k<2021\le k<202 this leaves exactly k∈{100,101,201}k\in\{100,101,201\}.