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 4 of 5: Exhibit n for each candidate k
k=201,n=1;k=100,n=2;k=101,n=51k=201,n=1;\quad k=100,n=2;\quad k=101,n=51
Detailed analysis

For k=201k=201, take n=1n=1: the remainders of n,2n,…,knn,2n,\ldots,kn modulo 202202 are 1,2,…,2011,2,\ldots,201, averaging 101101. For k=100k=100, take n=2n=2: the remainders are 2,4,…,2002,4,\ldots,200, again averaging 101101. For k=101k=101, take n=51n=51; splitting the 101101 remainders into 2525 blocks of four plus one extra term, each block's average rises steadily and the overall average works out to exactly 101101, as a direct computation confirms.