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

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
Problem 5
blug   1
N 39 minutes ago by atdaotlohbh
Source: Polish Math Olympiad 2025 Finals P5
Convex quadrilateral $ABCD$ is described on a circle $\omega$, and is not a trapezius inscribed in a circle. Let the tangency points of $\omega$ and $AB, BC, CD, DA$ be $K, L, M, N$ respectively. A circle with a center $I_K$, different from $\omega$ is tangent to the segement $AB$ and lines $AD, BC$. A circle with center $I_L$, different from $\omega$ is tangent to segment $BC$ and lines $AB, CD$. A circle with center $I_M$, different from $\omega$ is tangent to segment $CD$ and lines $AD, BC$. A circle with center $I_N$, different from $\omega$ is tangent to segment $AD$ and lines $AB, CD$. Prove that the lines $I_KK, I_LL, I_MM, I_NN$ are concurrent.
1 reply
blug
Yesterday at 12:08 PM
atdaotlohbh
39 minutes ago
¿10^n-1 is a divisor of 11^n-1?
EmersonSoriano   1
N 44 minutes ago by Filipjack
Source: 2017 Peru Southern Cone TST P2
Determine if there exists a positive integer $n$ such that $10^n - 1$ is a divisor of $11^n - 1$.
1 reply
EmersonSoriano
3 hours ago
Filipjack
44 minutes ago
D1018 : Can you do that ?
Dattier   1
N an hour ago by Dattier
Source: les dattes à Dattier
We can find $A,B,C$, such that $\gcd(A,B)=\gcd(C,A)=\gcd(A,2)=1$ and $$\forall n \in \mathbb N^*, (C^n \times B \mod A) \mod 2=0 $$.

For example :

$C=20$
$A=47650065401584409637777147310342834508082136874940478469495402430677786194142956609253842997905945723173497630499054266092849839$

$B=238877301561986449355077953728734922992395532218802882582141073061059783672634737309722816649187007910722185635031285098751698$

Can you find $A,B,C$ such that $A>3$ is prime, $C,B \in (\mathbb Z/A\mathbb Z)^*$ with $o(C)=(A-1)/2$ and $$\forall n \in \mathbb N^*, (C^n \times B \mod A) \mod 2=0 $$?
1 reply
Dattier
Mar 24, 2025
Dattier
an hour ago
A special family of subsets of {1, 2, ..., 100}.
EmersonSoriano   0
2 hours ago
Source: 2017 Peru Southern Cone TST P10
Miguel has a list consisting of several subsets of 10 elements from the set ${1,2,\dots,100}$. He says to Cecilia: "If you pick any subset of 10 elements from ${1,2,\dots,100}$, it will be disjoint with at least one subset from my list." What is the smallest possible number of subsets Miguel's list can have if what he tells Cecilia is true?
0 replies
EmersonSoriano
2 hours ago
0 replies
No more topics!
Approximation of N/2 with fractional parts
Miquel-point   9
N Apr 21, 2023 by Tintarn
Source: KoMaL A. 421
Find two positive constants $\alpha$ and $c$ such that
\[\left|\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}-\frac{N}2\right|<cN^{1-\alpha}\]holds for all positive integers $N$.
9 replies
Miquel-point
Apr 17, 2023
Tintarn
Apr 21, 2023
Approximation of N/2 with fractional parts
G H J
G H BBookmark kLocked kLocked NReply
Source: KoMaL A. 421
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Miquel-point
440 posts
#1
Y by
Find two positive constants $\alpha$ and $c$ such that
\[\left|\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}-\frac{N}2\right|<cN^{1-\alpha}\]holds for all positive integers $N$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
R8kt
301 posts
#6
Y by
Is there an other source other than Kömal?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PhilippineMonkey
315 posts
#8
Y by
For any $\alpha {}$,$c{}$.Choose $N=(m+1)^2$.($m{}$ large enough)Then $m\sim N^{1/2}$.
Assume $S=\sum_{k=1}^{N}\left \{\frac{k^2}{N}\right \}$.Then we have
$$S=\sum_{k=1}^{N}\frac{k^2}N-\sum_{k=1}^{N}\lfloor \frac{k^2}{N}\rfloor =\frac 13N^2+\frac 12N+\frac 16-\sum_{k=1}^{N}\lfloor \frac{k^2}{N}\rfloor$$Notice that when $1\leqslant k\leqslant \lfloor \sqrt{N-1}\rfloor $,$\lfloor \frac{k^2}N\rfloor =0$.
And when $\lfloor \sqrt{iN-1}\rfloor < k \leqslant \lfloor \sqrt{(i+1)N-1}\rfloor$,$\lfloor \frac{k^2}N\rfloor =i$.So we have
\begin{align*}
\sum_{k=1}^{N}\lfloor \frac{k^2}{N}\rfloor & = \sum_{i=1}^{N-1}i\left(\lfloor \sqrt{(i+1)N-1}\rfloor-\lfloor \sqrt{iN-1}\rfloor\right)+N\\
& = (N-1)^2-\sum_{i=1}^{N-1}\lfloor \sqrt{iN-1}\rfloor +N\\
& = N^2-N+1-\sum_{i=1}^{N-1}\lfloor \sqrt{iN-1}\rfloor
\end{align*}Hence
$$\left |S-\frac N2\right |=\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|$$$$\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor \geqslant \sum_{i=1}^{N-1}\sqrt {iN}-N+1$$Notice that
$$\sum_{i=1}^{N-1}\sqrt {iN}=\sqrt N \sum_{i=1}^{N-1}\sqrt i\geqslant \sqrt N\sum_{t=1}^{m}t(2t+1)=\sqrt N\left(\frac 23m^3+\frac 32m^2+\frac 56m\right )\sim \frac 23N^2+\frac 32N^{3/2}+\frac 56N$$So
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pco
23497 posts
#9
Y by
PhilippineMonkey wrote:
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Hemm, I did not check your proof but is not the requested question $|S-\frac N2|\le cN^{1-\alpha}$ ? (the exact contrary of what you proved :maybe: )
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PhilippineMonkey
315 posts
#10
Y by
@above,I mean there isn't any solution for ${\alpha}$,$c{}$ at all.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tintarn
9029 posts
#14
Y by
PhilippineMonkey wrote:
So
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Note that by definition we trivially have $\vert S\vert \le N$. So your computation is obviously not correct...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
oVlad
1721 posts
#15
Y by
Tintarn wrote:
PhilippineMonkey wrote:
So
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Note that by definition we trivially have $\vert S\vert \le N$. So your computation is obviously not correct...
Adding to this, let me explain what precisely is incorrect. You proved that \[\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\geqslant K\sim\frac 23N^2+\frac 32N^{3/2}+\frac 56N,\]but the fact that $K{}$ is asymptotical with $2N^2/3+3N^{3/2}/2+5N/6$ doesn't really give you much info regarding $K$, except that it is of the form $2N^2/3+o(N^2)$. For all you know, $K$ might be of the form \[\frac{2}{3}N^2-10000N^{3/2},\]which is still asymptotical with $2N^2/3+3N^{3/2}/2+5N/6$. This is not the case, but after some computations you'll see that \[\sqrt N\left(\frac 23m^3+\frac 32m^2+\frac 56m\right )\]written in terms of $N$ is actually smaller than $2N^2/3$.
This post has been edited 4 times. Last edited by oVlad, Aug 22, 2023, 4:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tintarn
9029 posts
#18 • 5 Y
Y by oVlad, GHHardy911, Miquel-point, Joider, R8kt
@above: Please don't spam this thread by bumping every minutes and quoting whole (long) posts.
Here is a solution which shows that any $\alpha>\frac{1}{2}$ works if $c$ is chosen sufficiently large (and I am pretty sure that this is sharp).
Indeed, let us show that
\[\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}=\frac{N}{2}+\mathcal{O}\left(N^{\frac{1}{2}+\varepsilon}\right)\]which is clearly sufficient.
The key is the fact that we can expand the sawtooth function $\{x\}-\frac{1}{2}$ into a Fourier Series $\sum_{m \in \mathbb{Z}, m \ne 0} \frac{e^{2\pi i mx}}{2\pi im}$. More precisely, since this is not absolutely convergent, we require the truncated version
\[\{x\}-\frac{1}{2}=\sum_{1 \le \vert m\vert \le M} \frac{e^{2\pi i mx}}{2\pi im}+\mathcal{O}\left(\frac{1}{M\|x\|}\right)\]where $\|x\|$ is the distance to the nearest integer (so this identity only makes sense for $x \not \in \mathbb{Z}$).
Hence we obtain
\[\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}=\frac{N}{2}+\mathcal{O}\left(\sum_{1 \le m \le M} \frac{1}{m}\left\vert \sum_{k=1}^N e^{2\pi i \frac{mk^2}{N}}\right\vert+\#\{k: N \mid k^2\}+\sum_{k: N \nmid k^2}  \frac{1}{M\left\|\frac{k^2}{N}\right\|}\right).\]Now the inner sum is a Gauß sum which is $\sqrt{N}$ in absolute value when $m$ is coprime to $N$ and so in general is bounded by $(N;m) \cdot \sqrt{N}$ and so the whole first error term is bounded by $\sqrt{N} \cdot \log(M) \cdot \tau(N)$ which is $\mathcal{O}\left(N^{1/2+\varepsilon}\right)$ as long as $M \le N$ (say).
For the second error term it is easy to see that $\{k: N \mid k^2\}$ is also $\mathcal{O}(\sqrt{N})$.
Finally, the third term is bounded by
\[\frac{N}{M} \sum_{1 \le a \le \frac{N}{2}} \frac{1}{a} \cdot \#\{k: k^2 \equiv \pm a \pmod{N}\} \ll \frac{N^{1+\varepsilon}}{M}\sum_{1 \le a \le \frac{N}{2}} \frac{(a;N)}{a} \ll \frac{N^{1+\varepsilon}}{M}\]as before. Choosing e.g. $M=\sqrt{N}$ or $M=N$ now yields the desired result.
This post has been edited 1 time. Last edited by Tintarn, Apr 21, 2023, 11:16 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
oVlad
1721 posts
#19 • 1 Y
Y by GHHardy911
Very nice, Tintarn! I tried this problem and (heuristically) I reached the same order of magnitude as you, but didn't manage to finish. I mostly followed the same idea as #8. Once I reached \[\left|\sum_{i=1}^N\left\{\frac{i^2}{N}\right\}-\frac{N}{2}\right|=\left|\frac{2}{3}N^2-\frac{1}{6}-\sum_{i=1}^N\lfloor\sqrt{iN-1}\rfloor\right|,\]I tried to approximate the sum of floors with $\sqrt{N}(\sqrt{1}+\cdots+\sqrt{N})$ and use the Euler-Maclaurin summation to get \[\sum_{i=1}^N\sqrt{i}=\frac{2}{3}N^{3/2}+\frac{1}{2}N^{1/2}+\zeta\left(\frac{1}{2}\right)+O\left(N^{-1/2}\right),\]which is very close, but I am short of an $N/2$. Do you think this idea works?

Edit: Yeah, that's exactly it. Thanks for the opinion.
This post has been edited 2 times. Last edited by oVlad, Nov 22, 2023, 10:10 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tintarn
9029 posts
#21 • 2 Y
Y by GHHardy911, oVlad
oVlad wrote:
I tried to approximate the sum of floors with $\sqrt{N}(\sqrt{1}+\cdots+\sqrt{N})$ and use the Euler-Maclaurin summation to get \[\sum_{i=1}^N\sqrt{i}=\frac{2}{3}N^{3/2}+\frac{1}{2}N^{1/2}+\zeta\left(\frac{1}{2}\right)+O\left(N^{-1/2}\right),\]which is very close, but I am short of an $N/2$. Do you think this idea works?
I am not sure this can work... I guess the $\frac{N}{2}$ that you are off comes from the fact that you are ignoring the floors, right? Because on average you expect that you lose $\frac{1}{2}$ from each floor.
In general, I am not sure approximations like Euler-McLaurin are useful to approximate these irregular floor functions, at least on such a fine scale.
This is really what the Fourier Series I wrote down is doing: It approximates uniformly the floor function (or equivalently the sawtooth function).
Z K Y
N Quick Reply
G
H
=
a