There exists a unique positive integer a for which the sum
U=n=1∑2023⌊5n2−na⌋
is an integer strictly between −1000 and 1000. For that unique a, find a+U.
(Note that ⌊x⌋ denotes the greatest integer that is less than or equal to x.)
解析
Solution (Bounds and Decimal Part Analysis, Rigorous)
Define {x}=x−⌊x⌋.
First, we bound U.
We establish an upper bound of U. We have
U≤n=1∑20235n2−na=51n=1∑2023n2−5an=1∑2023n=51012⋅2023(1349−a)≜UB.
We establish a lower bound of U. We have
U=n=1∑2023(5n2−na−{5n2−na})=n=1∑20235n2−na−n=1∑2023{5n2−na}=UB−n=1∑2023{5n2−na}≥UB−n=1∑20231{5n2−na∈/Z}.
We notice that if 5∣n, then 5n2−na∈Z. Thus,
U≥UB−n=1∑20231{5n2−na∈/Z}≥UB−n=1∑20231{5∤n}=UB−(2023−⌊52023⌋)=UB−1619≜LB.
Because U∈[−1000,1000] and UB−LB=1619<(1000−(−1000)), we must have either UB∈[−1000,1000] or LB∈[−1000,1000].
For UB∈[−1000,1000], we get a unique a=1349. For LB∈[−1000,1000], there is no feasible a.
Therefore, a=1349. Thus UB=0.
Next, we compute U.
Let n=5q+r, where r=Rem(n,5).
We have
{5n2−na}={5(5q+r)2−(5q+r)(1350−1)}={5q2+2qr−(5q+r)270+q+5r2+r}={5r2+r}=⎩⎨⎧05251 if r=0,4 if r=1,3 if r=2.
Therefore,
We define U′=∑n=120235n2−na. Since for any real number x, ⌊x⌋≤x≤⌊x⌋+1, we have U≤U′≤U+2023. Now, since −1000≤U≤1000, we have −1000≤U′≤3023.
Now, we can solve for U′ in terms of a. We have:
U′=n=1∑20235n2−na=n=1∑20235n2−5na=n=1∑20235n2−n=1∑20235na=5∑n=12023n2−∑n=12023na=562023(2023+1)(2023⋅2+1)−2a⋅2023(2023+1)=302023(2024)(4047−3a)
So, we have U′=302023(2024)(4047−3a), and −1000≤U′≤3023, so we have −1000≤302023(2024)(4047−3a)≤3023, or −30000≤2023(2024)(4047−3a)≤90690. Now, 2023⋅2024 is much bigger than 90690 or 30000, and since 4047−3a is an integer, to satsify the inequalities, we must have 4047−3a=0, or a=1349, and U′=0.
Now, we can find U−U′. We have:
U−U′=n=1∑2023⌊5n2−1349n⌋−n=1∑20235n2−1349n=n=1∑2023⌊5n2−1349n⌋−5n2−1349n.
Now, if n2−1349n≡0 (mod 5), then ⌊5n2−1349n⌋−5n2−1349n=0, and if n2−1349n≡1 (mod 5), then ⌊5n2−1349n⌋−5n2−1349n=−51, and so on. Testing with n≡0,1,2,3,4, (mod 5), we get n2−1349n≡0,2,1,2,0 (mod 5) respectively. From 1 to 2023, there are 405 numbers congruent to 1 mod 5, 405 numbers congruent to 2 mod 5, 405 numbers congruent to 3 mod 5, 404 numbers congruent to 4 mod 5, and 404 numbers congruent to 0 mod 5. So, solving for U−U′, we get:
U−U′=n=1∑2023⌊5n2−1349n⌋−5n2−1349n=404⋅0−405⋅52−405⋅51−405⋅52−404⋅0=−405(52+51+52)=−405
Since U′=0, this gives U=−405, and we have a+U=1349−405=944.
~ genius_007
Solution 3 (Quick)
We can view the floor function in this problem as simply subtracting the remainder of n2−na (mod 5) from the numerator of 5n2−na. For example, ⌊57⌋=57−2=1.
Note that the congruence of n2−na (mod 5) loops every time n increases by 5. Also, note that the congruence of a (mod 5) determines the set of congruences of n2−na for each congruence of n (mod 5).
For example, if a≡1 (mod 5), the set of remainders is (0,2,1,2,0) for n≡1,2,3,4,0 (mod 5). Let the sum of these elements be s. Note that for each “loop” of the numerator (mod 5), each element of the set will be subtracted exactly once, meaning s is subtracted once for each loop. The value of the numerator will loop 404 times (mod 5) throughout the sum, as 5⋅404=2020. Then
U≈5(6n(n+1)(2n+1)−2(a)(n)(n+1)−404s)
Where n=2023. Note that since 5⋅404=2020, this is an approximation for U because the equation disregards the remainder (mod 5) when n=2021,2022, and 2023 so we must subtract the first 3 terms of our set of congruences one extra time to get the exact value of U (*). However, we will find that this is a negligible error when it comes to the inequality −1000,sowecanproceedwiththisapproximationtosolvefora$.
We set a=3(2n+1)=1349 to make 6(n)(n+1)(2n+1−3a)=0, accordingly minimizing ∣U∣, yielding U≈5−404s
If a increases or decreases by 1, then U changes by 2⋅5(n)(n+1)=102023⋅2024 which clearly breaks the inequality on U. Therefore a=1349≡4 (mod 5) giving the set of remainders (2,1,2,0,0), so s=5 and our approximation yields U≈−404. However, we must subtract 2, 1, and 2 (*) giving us U=−404−5(2+1+2)=−405, giving an answer of 1349−405=944
~Spencer Danese
Solution 4 (Calculus)
Consider the integral
∫020235n2−nadn.
We hope this will give a good enough appoximation of U to find a. However, this integral can be easily evaluated to be
15120233−10a20232=20232(152023−10a).
Because we want this to be as close to 0 as possible, we find that a should equal 1349. Then, evaluating the sum becomes trivial. Set
U′=n=1∑20235n2−1349n
and
U′′=n=1∑2023{5n2−1349n}.
Then U=U′−U′′. We can evaluate U′ to be 0 and U′′ to be −405 (using some basic number theory). Thus, U=−405 and the answer is