Stay ahead of learning milestones! Enroll in a class over the summer!

Contests & Programs AMC and other contests, summer programs, etc.
AMC and other contests, summer programs, etc.
3 M G
BBookmark  VNew Topic kLocked
Contests & Programs AMC and other contests, summer programs, etc.
AMC and other contests, summer programs, etc.
3 M G
BBookmark  VNew Topic kLocked
G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Apr 13 - Aug 10
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Sunday, Apr 13 - Aug 10
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Monday, Apr 7 - Jul 28
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Wednesday, Apr 16 - Jul 2
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Thursday, Apr 17 - Jul 3
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Wednesday, Apr 23 - Oct 1
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Intermediate: Grades 8-12

Intermediate Algebra
Monday, Apr 21 - Oct 13
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Wednesday, Apr 16 - Jul 2
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Friday, Apr 11 - Jun 27
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Apr 2, 2025
0 replies
Curious Cube Season 3
MathJams   16
N 9 minutes ago by MathJams
Hi everyone! The Curious Cube is back for Season 3 with a new set of hosts Isaac Chen, Laura Zhang, Srinivas Arun, Benjamin Jeter, and Emily Yu. We've already released two episodes, including a very special episode with an interview of the winning US IMO team! This season will feature us answering your questions, highlighting cool math concepts, and taking a deeper look into the math community. Hope you all enjoy! :D

IMAGE
16 replies
+2 w
MathJams
Jul 25, 2024
MathJams
9 minutes ago
[Registration Open] 2025 NJ Mustang Math Tournament
KevinChen_Yay   8
N 9 minutes ago by KevinChen_Yay
Source: https://www.mustangmath.com/competitions/mmt-2025#NJ
Hello everyone! It is time to register for the 2025 Mustang Math Tournament at NJ for middle schoolers! See details and access the registration link here: https://www.mustangmath.com/competitions/mmt-2025#NJ. If you are too far from the location mentioned on the website, please look through the website for other regions hosting the tournament, or just sign up for the online tournament (but note that if you are within 50 miles of any of the in-person locations, you must attend there).

Thank you so much for your support and it means a lot to me, as well as the other college students and high schoolers contributing to Mustang Math as a whole. We put a lot of hard work into making the tournament problems fun and unique, with the rounds being not just problem solving but a truly phenomenal experience for middle school students. Thanks again!
8 replies
+1 w
KevinChen_Yay
Mar 8, 2025
KevinChen_Yay
9 minutes ago
Help for a friend
mathkidAP   5
N 13 minutes ago by derekwang2048
So i have a friend who is smart, but like school smart ig. Does anyone have a good way for him to make aime (he isnt interested in olympiads. He's in 8th grade and has never done competition math. Should he do amc 10 or 12? Also any other tips for him?
5 replies
mathkidAP
37 minutes ago
derekwang2048
13 minutes ago
smt format pmo...?
alcumusftwgrind   13
N 22 minutes ago by mdk2013
they cant be serious on the 4th one...

UGHHHHHHHHHHHHHHHHHHHHH this better not happen on general or I'm literally gonna quit the test and go play ultimate ??????
13 replies
alcumusftwgrind
Saturday at 11:31 PM
mdk2013
22 minutes ago
No more topics!
did U silly this?
r00tsOfUnity   31
N Mar 30, 2025 by Mathgloggers
Source: 2023 AIME I #10
There exists a unique positive integer $a$ for which the sum \[U=\sum_{n=1}^{2023}\left\lfloor\dfrac{n^{2}-na}{5}\right\rfloor\]is an integer strictly between $-1000$ and $1000$. For that unique $a$, find $a+U$.

(Note that $\lfloor x\rfloor$ denotes the greatest integer that is less than or equal to $x$.)
31 replies
r00tsOfUnity
Feb 8, 2023
Mathgloggers
Mar 30, 2025
did U silly this?
G H J
G H BBookmark kLocked kLocked NReply
Source: 2023 AIME I #10
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
r00tsOfUnity
695 posts
#1 • 3 Y
Y by Soumya_cena, Princesingh_777, ehuseyinyigit
There exists a unique positive integer $a$ for which the sum \[U=\sum_{n=1}^{2023}\left\lfloor\dfrac{n^{2}-na}{5}\right\rfloor\]is an integer strictly between $-1000$ and $1000$. For that unique $a$, find $a+U$.

(Note that $\lfloor x\rfloor$ denotes the greatest integer that is less than or equal to $x$.)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
r00tsOfUnity
695 posts
#2
Y by
I got $944$ can anyone confirm?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mattxie
4 posts
#3
Y by
can confirm
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Toinfinity
603 posts
#4
Y by
$a=1349, U=-405$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Math4Life7
1703 posts
#5
Y by
arggggghhh I got $\frac{2025}{5}=225$ I did that like one hundred times...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HonestCat
972 posts
#6
Y by
r00tsOfUnity wrote:
I got $944$ can anyone confirm?

Yea, 1349-405
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathdreams
1464 posts
#7
Y by
no i did not btw
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
naman12
1358 posts
#8 • 7 Y
Y by HonestCat, cosmicgenius, Dansman2838, KLBBC, aidan0626, metricpaper, ehuseyinyigit
The key idea is that the summation without the floors should be close to $0$ because each floor can only change the sum by less than $1$. The natural choice is a value of $a$ near the one that makes the aforementioned sum exactly $0$. Luckily, we compute
\[ \sum_{n=1}^{2023}\frac{n^2-na}5 = \frac15 \left( \frac{2023 \cdot 2024 \cdot 4047}{6} - a \frac{2023 \cdot 2024}{2} \right), \]which is zero at $a = \frac{4047}{3} = 1349$, an integer. Trying $a = 1349$ for the value of $U$, we have
\[    \begin{aligned}
        U=\sum_{n=1}^{2023}\left\lfloor\frac{n^2-1349n}5\right\rfloor &= \sum_{n=1}^{2023}\left(\frac{n^2-1349n}5 - \frac{(n^2 - 1349n) \mod 5}5 \right) \\ &= -\frac15 \sum_{n=1}^{2023} (n^2 - 1349n) \mod 5
    \end{aligned}\]But note that $n^2 - 1349n \equiv n^2 + n \pmod 5$ takes on the following values at the residues mod $5$,
\begin{tabular}{c|c}
        $n$ & $(n^2 + n) \mod 5$ \\
        \hline
        $1$ & $2$ \\
        $2$ & $1$ \\
        $3$ & $2$ \\
        $4$ & $0$ \\
        $0$ & $0$ 
        \end{tabular}
Finally, note that $n=1$ to $n=2023$ passes through almost $405$ periods of length $5$, only missing two zeroes that don't matter, with each period summing to $5$, so
\[ U = -\frac15 (405 \cdot 5) = -405.\]It follows that $a + U = 1349 - 405 = \boxed{944}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Spectator
657 posts
#10
Y by
https://artofproblemsolving.com/community/c5h3011227 duplicate
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
r00tsOfUnity
695 posts
#11
Y by
Spectator wrote:
https://artofproblemsolving.com/community/c5h3011227 duplicate

They were posted at the same time bro
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Spectator
657 posts
#12
Y by
r00tsOfUnity wrote:
Spectator wrote:
https://artofproblemsolving.com/community/c5h3011227 duplicate

They were posted at the same time bro

nope 32 > 27
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Geometry285
902 posts
#13
Y by
NOOOOOO why didn't I think of integration ugh
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Spectator
657 posts
#15 • 2 Y
Y by Dansman2838, ehuseyinyigit
okay i give up

Note that $\frac{n^2-an}{5}\leq \lfloor\frac{n^2-an}{5}\rfloor<\frac{n^2-an}{5}+1$. This means that\[\displaystyle\sum^{2023}_{n=1}{\frac{n^2-an}{5}}\leq  \displaystyle\sum^{2023}_{n=1}{\biggl\lfloor\frac{n^2-an}{5}\biggr\rfloor}< \displaystyle\sum^{2023}_{n=1}{\frac{n^2-an}{5}}+2023\]Note that this means that $\displaystyle\sum^{2023}_{n=1}{\frac{n^2-an}{5}}$ must be $0$ otherwise any other value of $a$ would overshoot $-1000$ and $1000$. We use the sum of squares formula to get $a = 1349$. Now, we engineer's induct on $n$ for the value of $\biggl\{\cfrac{n^2-1349n}{5}\biggr\}$ to get that it must always be $\cfrac{2}{5}, \cfrac{1}{5}, \cfrac{2}{5}, 0, 0, \cfrac{2}{5}, \cdots$. Thus, $0 - \displaystyle\sum^{2023}_{n=1}{\biggl\{\frac{n^2-an}{5}\biggr\}} = -405$. Thus, our answer is $1349-405 = \boxed{944}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
fuzimiao2013
3301 posts
#16
Y by
i got a = 1349 just by ignoring the floor and didnt find a fast way to bash in time
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pog
4917 posts
#17
Y by
This problem has been discarded, for some reason.
(Edit: It was not discarded)
This post has been edited 1 time. Last edited by pog, Feb 10, 2023, 10:40 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
brainfertilzer
1831 posts
#18
Y by
pog wrote:
This problem has been discarded, for some reason.

Proof?

edit: nvm I found it
This post has been edited 1 time. Last edited by brainfertilzer, Feb 9, 2023, 3:46 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mikimoto12
875 posts
#20 • 1 Y
Y by ehuseyinyigit
Spectator wrote:
Now, we engineer's induct on $n$ for the value of $\biggl\{\cfrac{n^2-1349n}{5}\biggr\}$ to get that it must always be $\cfrac{2}{5}, \cfrac{1}{5}, \cfrac{2}{5}, 0, 0, \cfrac{2}{5}, \cdots$.

that's a grave misuse of the term "engineer's induction"
it's just mod 5
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eagles2018
2734 posts
#21
Y by
POV: you split it up into $\sum_{n=1}^{2023}\left\lfloor\dfrac{n^{2}}{5}\right \rfloor +\left \lfloor \dfrac{-na}{5}\right\rfloor$ and give up when evaluating the first sum.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Spectator
657 posts
#22
Y by
mikimoto12 wrote:
Spectator wrote:
Now, we engineer's induct on $n$ for the value of $\biggl\{\cfrac{n^2-1349n}{5}\biggr\}$ to get that it must always be $\cfrac{2}{5}, \cfrac{1}{5}, \cfrac{2}{5}, 0, 0, \cfrac{2}{5}, \cdots$.

that's a grave misuse of the term "engineer's induction"
it's just mod 5

tbh i did try mod 5 in the beginning but i felt that i would be less likely to silly if i just tested small values of $n$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HungryProblem_Solver1
469 posts
#23
Y by
Did MAA actually discard this problem? There's no way
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HonestCat
972 posts
#24
Y by
HungryProblem_Solver1 wrote:
Did MAA actually discard this problem? There's no way

I think it was just a technical issue.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Soumya_cena
17 posts
#25
Y by
Spectator wrote:

Your inequality is incorrect
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueberryfaygo_55
340 posts
#26 • 2 Y
Y by megarnie, plang2008
Let $\dfrac{n^2-an}{5} = x+y \, \left(x \in \mathbb{Z}, y \in \left\{0, \dfrac{1}{5}, \dfrac{2}{5}, \dfrac{3}{5}, \dfrac{4}{5}\right\}\right)$. It follows that $$U = \sum_{n=1}^{2023} \left \lfloor{\dfrac{n^2-an}{5}}\right \rfloor = \sum_{n=1}^{2023} x = \sum_{n=1}^{2023} \left(\dfrac{n^2-an}{5} - y\right)$$Using summation properties, we obtain $$U = \dfrac{2023 \cdot 1012(1349-a)}{5} - \sum_{n=1}^{2023} y$$Here, we observe that $\dfrac{2023 \cdot 1012 \cdot (1349-a)}{5}$ quickly grows/becomes extremely negative (as $a$ must be a positive integer), while the term $-\sum_{n=1}^{2023}y$ does not relatively affect the size of $U$ on the same scale. Thus, $a=1349$. This means that $$U = -\sum_{n=1}^{2023}y$$so we must compute the sum of the fractional parts of $\dfrac{n^2-1349n}{5}$ for $n$ from $1$ to $2023$.

We now observe that $n^2-1349n \equiv n^2 + n \ (\textrm{mod}\ 5)$.

Therefore, if $n \equiv 0 \ (\textrm{mod}\ 5)$ or $n \equiv 4\ (\textrm{mod}\ 5)$ then $n^2-1349n \equiv 0 \ (\textrm{mod}\ 5)$;

If $n \equiv 1\ (\textrm{mod}\ 5)$ or $n \equiv 3\ (\textrm{mod}\ 5)$ then $n^2-1349 \equiv 2\ (\textrm{mod}\ 5)$;

If $n \equiv 2\ (\textrm{mod}\ 5)$ then $n^2-1349n \equiv 1\ (\textrm{mod}\ 5)$;

Furthermore, if $n^2 - 1349n \equiv 0\ (\textrm{mod}\ 5)$ then $y=0$;

If $n^2 - 1349n \equiv 1\ (\textrm{mod}\ 5)$ then $y=\dfrac{1}{5}$;

If $n^2 - 1349n \equiv 2\ (\textrm{mod}\ 5)$ then $y=\dfrac{2}{5}$.

From $1$ to $2023$ there are $405$ numbers $\equiv 1\ (\textrm{mod}\ 5)$, $405$ numbers $\equiv 2\ (\textrm{mod}\ 5)$, and $405$ numbers $\equiv 3\ (\textrm{mod}\ 5)$, so $U = -\sum_{n=1}^{2023} y = -\left(\dfrac{2}{5}\cdot 405 +  \dfrac{1}{5}\cdot 405 + \dfrac{2}{5}\cdot 405\right) = -405$. Our final answer is $1349-405=\fbox{944}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IbrahimNadeem
886 posts
#27
Y by
Easier side #10, the final four that year was brutal
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OlympusHero
17020 posts
#28
Y by
popcorn1 wrote:
Lol.

Claim. $\sum_{n=1}^{2023}\left\lfloor\dfrac{n^{2}-na}{5}\right\rfloor \approx \int_{1}^{2023} \frac{n^2-na}{5} \; \mathrm{d}n$.
Proof. Proofs are for losers. $\square$

The integral is just $\frac{2022}{5} (1{,}364{,}851 - 1012a)$, setting equal to $0$ (i.e. minimizing absolute value of the integral) and solving for $a$ yields $a \approx 1348.7$, and rounding gives $a=1349$ as the most likely answer.

It works, so now find $U$ using your favorite method. $\mathcal{YUH}$.

I'm genuinely curious what makes this a good approximation, as this seems like a really easy method to solve the problem. Can anyone clarify why this is a good approximation?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Shreyasharma
668 posts
#29
Y by
We need to approximate $U$. Approximate it as,
\begin{align*}
U' &\approx \sum_{n=1}^{2023} \frac{n^2-na}{5}\\
&= \frac{1}{5} \cdot \left( \sum_{n=1}^{2023} n^2 - a \sum_{n=1}^{2023} n\right)\\
&= \frac{1}{5} \cdot \left(\frac{(2023)(2024)(4047)}{6} - a\frac{(2023)(2024)}{2} \right)\\
&= \frac{1}{30} \cdot (2023)(2024)(4047 - 3a)\\
&\approx \frac{4}{30} (1000000)(4047-3a)
\end{align*}Then from our bounds on $U$ we find that $U'$ should be clsoe to satisfying,
\begin{align*}
-1000 \leq U' \leq 1000
\end{align*}However then we approximately need,
\begin{align*}
-15000 \leq 1000000(4047-3a) \leq 15000
\end{align*}Due to how enormous the middle term is we need $4047 - 3a = 0 \implies a = 1349$. Now we can use this in our original floor equation to find,
\begin{align*}
U &= \sum_{n=1}^{2023} \left\lfloor \frac{n^2 - 1349n}{5} \right\rfloor\\
&= \sum_{n=1}^{2023} \left( \frac{n^2 - 1349n}{5} - \frac{n^2 + n \pmod{5}}{5} \right)\\
&= \sum_{n=1}^{2023} \frac{n^2 - 1349n}{5} - \sum_{n=1}^{2023} \frac{n^2 + n \pmod{5}}{5} 
\end{align*}Now the first sum is easy to evaluate using standard tactics. For the second term it suffices to do casework on $n$ modulo $5$. If $n \equiv 1$, we have $n^2 + n \equiv 2$. Similarly if $n \equiv 2$ we have $n^2 + n \equiv 1$, if $n \equiv 3$ we have $n^2 + n \equiv 2$, if $n \equiv 4$ we have $n^2 + n \equiv 0$ and if $n \equiv 0$ we have $n^2 + n \equiv 0$. Then we have,
\begin{align*}
U &= \sum_{n=1}^{2023} \frac{n^2 - 1349n}{5} - \sum_{n=1}^{2023} \frac{n^2 + n \pmod{5}}{5}  \\
&= \frac{1}{5} \left( \frac{(2023)(2024)(4047)}{6} - \frac{(1349)(2023)(2024)}{2} - \left( 405 \cdot 2 + 405 \cdot 1 + 405 \cdot 2 + 404 \cdot 0 + 404 \cdot 0 \right)\right)\\
&= -405
\end{align*}and our final answer is $1349 - 405 = \boxed{944}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueprimes
325 posts
#31
Y by
Observe that $\left\lfloor \frac{n^2 - na}{5} \right\rfloor = \frac{n^2 - na}{5} - \left\{ \frac{n^2 - na}{5} \right\}$. We have
$$\sum_{n = 1}^{2023} \frac{n^2 - na}{5} = \frac{1}{5} \left(\sum_{n = 1}^{2023} n^2 - a \sum_{n = 1}^{2023} n \right) = \frac{1}{5}\left(\frac{(2023)(2024)(4047)}{6} - a \cdot \frac{(2023)(2024)}{2} \right) = \frac{(2023)(2024)(4047 - 3a)}{30}$$Now we can also deduce the weak bounds
$$0 \le F = \sum_{n = 1}^{2023} \left\{ \frac{n^2 - na}{5} \right\} < 2023$$The problem statement is simply saying $-30000 < (2023)(2024)(4047 - 3a) - F < 30000$. Here it is obvious that any value of $a$ where $3a \ne 4047$ would place outside of the bounds, for any value of $F$ in the previous bound. So $a = \frac{4047}{3} = 1349.$ Then $U = -F$, and the fractional part cycles every $5$, so $n = 1, 2, 3, 4, 5$ yield $\frac{2}{5}, \frac{1}{5}, \frac{2}{5}, 0, 0$ respectively. Then from $n = 1$ to $n = 2020$ the sum is $404$, and $n = 2021, 2022, 2023$ yields an additional $1$ so $U = -405$. We obtain $1349 - 405 = \boxed{944}$.
This post has been edited 1 time. Last edited by blueprimes, Jan 12, 2024, 1:40 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OlympusHero
17020 posts
#32
Y by
OlympusHero wrote:
popcorn1 wrote:
Lol.

Claim. $\sum_{n=1}^{2023}\left\lfloor\dfrac{n^{2}-na}{5}\right\rfloor \approx \int_{1}^{2023} \frac{n^2-na}{5} \; \mathrm{d}n$.
Proof. Proofs are for losers. $\square$

The integral is just $\frac{2022}{5} (1{,}364{,}851 - 1012a)$, setting equal to $0$ (i.e. minimizing absolute value of the integral) and solving for $a$ yields $a \approx 1348.7$, and rounding gives $a=1349$ as the most likely answer.

It works, so now find $U$ using your favorite method. $\mathcal{YUH}$.

I'm genuinely curious what makes this a good approximation, as this seems like a really easy method to solve the problem. Can anyone clarify why this is a good approximation?

Can anyone answer? Thanks in advance.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sixoneeight
1138 posts
#33
Y by
It’s a Reimann Sum
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
daijobu
524 posts
#34
Y by
Video Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ilikemath247365
237 posts
#35
Y by
Yeah, was able to solve this problem. I solved it similar to @blueprimes.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathgloggers
59 posts
#36
Y by
main thing to.notice was fractional part repeats modulo "n"
Z K Y
N Quick Reply
G
H
=
a