DR.WANG Mathematics中文

2023 AIME I · Question 10

Algebra · floor and ceiling functions · summation · modular arithmetic · number-theory

Problem outline

Let U=∑n=12023⌊(n2−an)/5⌋U=\sum_{n=1}^{2023}\lfloor(n^2-an)/5\rfloor. Exactly one positive integer aa makes −1000<U<1000-1000<U<1000. Find a+Ua+U.

Show answer and methods 1 methods

Answer

944

Method 1 Cancel the unrounded sum

Without floors the sum equals (1349−a)∑n=12023n/5(1349-a)\sum_{n=1}^{2023}n/5, since ∑n2/∑n=(2⋅2023+1)/3=1349\sum n^2/\sum n=(2\cdot2023+1)/3=1349. A change of one in aa shifts this by over 400000400000; the total floor error is less than 20232023. Thus only a=1349a=1349 can work.

Now n2−an≡n(n+1)(mod5)n^2-an\equiv n(n+1)\pmod5. Its least nonnegative residues for n=1,2,3,4,5n=1,2,3,4,5 are 2,1,2,0,02,1,2,0,0. Their sum over 404404 periods and three extra terms is 404⋅5+5=2025404\cdot5+5=2025.

The unrounded sum is zero, and subtracting the residues gives U=−2025/5=−405U=-2025/5=-405. Hence a+U=944a+U=944.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)