Number theoryDifficulty 5.5AIME, harderProve itCroatia
S={0,1,1+2,1+2+3,…,1+2+3+⋯+(n−1)}.
a) If n is a power of 2, prove that all the elements of S have different remainders modulo n.
b) If n is not a power of 2, prove that there exist two elements of S with the same remainder modulo n.
Solution
Let k and l be positive integers such that 0≤k<l≤n−1. Sums 1+2+⋯+k and 1+2+⋯+l give the same remainder modulo n if and only if 21k(k+1)≡21l(l+1)(modn), i.e. if and only if l(l+1)−k(k+1)=(l−k)(l+k+1) is divisible by 2n. Notice that l−k and l+k+1 give a different remainder modulo 2.
a) Let n=2m. Then 2n=2m+1, and since l−k and l+k+1 give a different remainder modulo 2, one of them has to be divisible by 2m+1. On the other hand, clearly l−k<2m+1, and we have l+k+1≤2l<2n=2m+1, so none of those numbers is divisible by 2m+1. We conclude that distinct elements of the set S give different remainders modulo n.
b) Let n=2ms where s>1 is odd. We have to choose k and l, 0≤k<l≤n−1 such that (l−k)(l+k+1)=2n=2m+1s. If 2m+1≥s+1 we will choose them so that l+k+1=2m+1 and l−k=s, and if 2m+1≤s−1 then we will choose them so that l+k+1=s and l−k=2m+1. In the first case solving the system we get l=2m+2s−1 and k=2m−2s+1. Clearly 0≤k<l. Since 2<s≤2m+1−1, it follows that l=2m+2s−1≤2m+22m+1−2=2m+1−1<2ms−1. In the second case we get l=2s−1+2m and k=2s−1−2m. Again it is clear that 0≤k<l. Finally, we check l=2s−1+2m≤2s−1+2s−1=s−1≤2ms−1.
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.