Join our FREE webinar on May 1st to learn about managing anxiety.

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
Inspired by old results
sqing   4
N 6 minutes ago by sqing
Source: Own
Let $ a,b>0 , a^2+b^2+ab+a+b=5 . $ Prove that
$$ \frac{ 1 }{a+b+ab+1}+\frac{6}{a^2+b^2+ab+1}\geq \frac{7}{4}$$$$ \frac{ 1 }{a+b+ab+1}+\frac{1}{a^2+b^2+ab+1}\geq \frac{1}{2}$$$$  \frac{41}{a+b+2}+\frac{ab}{a^3+b^3+2} \geq \frac{21}{2}$$
4 replies
sqing
Yesterday at 12:29 PM
sqing
6 minutes ago
D1024 : Can you do that?
Dattier   1
N 10 minutes ago by Dattier
Source: les dattes à Dattier
Let $x_{n+1}=x_n^2+1$ and $x_0=1$.

Can you calculate $\sum\limits_{i=1}^{2^{2025}} x_i \mod 10^{30}$?
1 reply
Dattier
Yesterday at 5:11 PM
Dattier
10 minutes ago
F(n,r)=(n+1)/(r+1)
orl   23
N 33 minutes ago by Nguyen
Source: IMO 1981, Day 1, Problem 2
Take $r$ such that $1\le r\le n$, and consider all subsets of $r$ elements of the set $\{1,2,\ldots,n\}$. Each subset has a smallest element. Let $F(n,r)$ be the arithmetic mean of these smallest elements. Prove that: \[ F(n,r)={n+1\over r+1}. \]
23 replies
orl
Nov 11, 2005
Nguyen
33 minutes ago
inequality (another entrance exam)
nai0610   3
N an hour ago by lbh_qys
Given positive real numbers $a,b,c$ satisfying
$(a+2)b^2+(b+2)c^2+(c+2)a^2\geq 8+abc$
prove that $2(ab+bc+ca)\leq a^2(a+b)+b^2(b+c)+c^2(c+a)$
3 replies
nai0610
Jun 2, 2024
lbh_qys
an hour ago
No more topics!
Miklos Schweitzer 1980_1
ehsan2004   12
N Apr 14, 2025 by Ailyta
For a real number $ x$, let $ \|x \|$ denote the distance between $ x$ and the closest integer. Let $ 0 \leq x_n <1 \; (n=1,2,\ldots)\ ,$ and let $ \varepsilon >0$. Show that there exist infinitely many pairs $ (n,m)$ of indices such that $ n \not=
m$ and \[ \|x_n-x_m \|< \min \left( \varepsilon , \frac{1}{2|n-m|} \right).\]

V. T. Sos
12 replies
ehsan2004
Jan 28, 2009
Ailyta
Apr 14, 2025
Miklos Schweitzer 1980_1
G H J
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ehsan2004
2238 posts
#1 • 4 Y
Y by khoa123, Adventure10, Mango247, cubres
For a real number $ x$, let $ \|x \|$ denote the distance between $ x$ and the closest integer. Let $ 0 \leq x_n <1 \; (n=1,2,\ldots)\ ,$ and let $ \varepsilon >0$. Show that there exist infinitely many pairs $ (n,m)$ of indices such that $ n \not=
m$ and \[ \|x_n-x_m \|< \min \left( \varepsilon , \frac{1}{2|n-m|} \right).\]

V. T. Sos
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2463 posts
#2 • 4 Y
Y by oty, adityaguharoy, Adventure10, Mango247
It's enough to prove there exists at least one pair $(n,m)$ and then use the same arguments for $(x_i)\,, j>\max(n,m). $
Fix some $n$ and consider $x_j, j=1,2,\dots, n$. Let's order them in increasing order $0\leq x_{j_1}<x_{j_2}<\dots <x_{j_n}<1 $.

Now, suppose on the contrary the statement is not true. In particular it implies:
\[\|x_{j_s}-x_{j_{s+1}}\| \geq \min \left( \varepsilon , \frac{1}{2|j_s-j_{s+1}|} \right)\,,\,s=1,2,\dots,n \,\,\,\,\,\,\,(1) \]
where by $x_{j_{n+1}}$ we mean $x_{j_1}$.

Clearly $\sum_{s=1}^n \|x_{j_s}-x_{j_{s+1}}\| \leq 1$ and summing up (1) we get:
\[ 1 \geq \sum_{s=1}^n \min \left( \varepsilon , \frac{1}{2|j_s-j_{s+1}|} \right) \,\,\,\,\,\,\, (2)\]

The idea is to find an upper bound of $\sum_{s=1}^n |j_s-j_{s+1}|$, then use $AM-HM$ inequality and get a contradiction.
Fix some interval $ [k,k+1]\,,\, k \in \{1,2,\dots,n \} $ and let's see how many intervals $[j_s, j_{s+1}]$ can contain $[k, k+1]$ as a subinterval. Since every point among $1,2,\dots,k$ and $k+1,\dots,n$ can be an end of at most two intervals $[j_s, j_{s+1}]\,,\,s=1,\dots,n$, it implies $[k,k+1]$ is contained in at most $2\cdot \min(k,n-k)$ such intervals. Therefore:
\[\sum_{s=1}^n |j_s-j_{s+1}|\leq 2 \sum_{k=1}^n \min(k,n-k)\leq \frac{n^2}{2} \,\,\,\,\,\,\, (3) \]
Consider at first the case when $\frac{1}{2|j_s-j_{s+1}|} \leq \varepsilon\,,\, s=1,2,\dots,n$. Using (2), (3) and AM-HM yields:
\[ 1 \geq \frac{1}{2}\sum_{s=1}^n \frac{1}{|j_s-j_{s+1}|} \geq 1\]
Note that the equality above is only attained when all $|j_s-j_{s+1}|$ are equal. Since it's not possible, we get a contradiction.
Suppose now, $\frac{1}{2 |j_s-j_{s+1}|} > \varepsilon $ for $s\in I$, where $I$ is some not empty set of indices. Denote $k=|I|$. Clearly $1\leq k\leq 1/\varepsilon$. This time we have:
\[ 1 \geq \varepsilon + \frac{1}{2}\cdot \frac{(n-k)^2} {(n^2/2 - k)} \]
But $k$ is bounded from above with $1/\varepsilon$, not depending on $n$, thus choosing big enough $n$ leads to a contradiction.
This post has been edited 2 times. Last edited by dgrozev, May 26, 2015, 5:01 PM
Reason: typos fixed.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VerkhovtsevaKatya
9 posts
#3
Y by
dgrozev, you say $[k,k+1]\subseteq [j_s,j_{s+1}]$, which implies $j_{s+1}\ge k+1$. Then, how can it be $[k,k+1]\subseteq [j_{s+1},j_{s+2}]$ ? Because

$[j_s,j_{s+1}]\cap[j_{s+1},j_{s+2}]=j_{s+1}$, not $[k,k+1]$. If $[k,k+1]\notin\left([j_s,j_{s+1}]\cap[j_{s+1},j_{s+2}]\right),$ how do those intervals contain it?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2463 posts
#4
Y by
Sorry, maybe I should have made it clearer. By $[j_s, j_{s+1}]$ I meant the interval which end points are $j_s$ and $j_{s+1}$. Since $j_1,j_2,\dots,j_n$ is a permutation of $1,2,\dots,n$ of course it may happen $j_{s+1}<j_s.$ So, we want to know how many intervals with endpoints $j_s,j_{s+1}$ contain $[k,k+1]$ as a subinterval.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VerkhovtsevaKatya
9 posts
#5
Y by
dgrozev, thank you very much for the feedback! May I ask how you came up with the exact expression $1\ge\varepsilon+\dfrac12\cdot\dfrac{(n-k)^2}{\left(\frac{n^2}2-k\right)}$?

I see that:

$\lim\limits_{n\to\infty}\dfrac{(n-k)^2}{n^2-2k}=\lim\limits_{n\to\infty}\dfrac{1-\frac{2k}n+\frac{k^2}{n^2}}{1-\frac{2k}{n^2}}=1$ and

$\begin{aligned}\dfrac{(n-k)^2}{n^2-2k}&<0&\forall n<\sqrt{2k}\\0\le\dfrac{(n-k)^2}{n^2-2k}&<1&\forall n\ge k\end{aligned}$

and that we should get $1-\varepsilon<\dfrac{(n-k)^2}{n^2-2k}$ for sufficiently large $n$, but I couldn't figure out how you came up with that expression.
This post has been edited 2 times. Last edited by VerkhovtsevaKatya, Jan 18, 2021, 9:31 AM
Reason: question clarified
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2463 posts
#6
Y by
Using $(2)$ we get
$$1 \geq \sum_{s=1}^n \min \left( \varepsilon , \frac{1}{2|j_s-j_{s+1}|} \right) = \sum_{s\in I} \varepsilon+\frac{1}{2}\sum_{s\notin I} \frac{1}{|j_s-j_{s+1}|}$$The first term of the RHS is at least $\varepsilon.$ The number of the summands of the second sum is $n-k.$ Further
$$\sum_{s\notin I} |j_s-j_{s+1}|\le \frac{n^2}{2}-k$$since $\sum_{s\in I} |j_s-j_{s+1}|\ge \sum_{s\in I} 1 =k.$ Thus applying AM-HM, we get
$$\sum_{s\notin I} \frac{1}{|j_s-j_{s+1}|} \ge \frac{(n-k)^2} {(n^2/2 - k)}$$which yields
$$\frac{1}{2}\sum_{s=1}^n \frac{1}{|j_s-j_{s+1}|} \ge \frac{1}{2}\cdot \frac{(n-k)^2} {(n^2/2 - k)}.$$
This post has been edited 4 times. Last edited by dgrozev, Jan 18, 2021, 6:55 PM
Reason: typos
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VerkhovtsevaKatya
9 posts
#7
Y by
Did you mean 'applying AM-HM' instead of 'GM-HM'?

Thank you for the explanation!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2463 posts
#8 • 2 Y
Y by Mango247, Mango247
Yes, thanks, edited.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Martin.s
1536 posts
#9
Y by
Solution. Let us fix $\varepsilon>0$. We show that if $n$ is large enough, $0 \leq x_i<$ $1(i=1, \ldots, n)$, then there exists a pair $(i, j)$ of indices such that $\| x_i-$ $x_j \|<\min (\varepsilon, 1 /$ over $2|i-j|)$. It suffices since it implies that by subdividing the infinite sequence $x_1, x_2, \ldots$ into blocks of $n$ terms, we can find a desired pair of indices in each block and the difference $|i-j|$ does not change if the indices in the block are replaced by the indices in the whole sequence.

Let $f:\{1, \ldots, n\} \rightarrow\{1, \ldots, n\}$ be a permutation such that
$$
0 \leq x_{f(1)} \leq \cdots \leq x_{f(n)}<1
$$
We may assume that
$$
\left\|x_{f(i)}-x_{f(i+1)}\right\|<\min \left(\varepsilon, \frac{1}{2|f(i)-f(i+1)|}\right)
$$for $i=1, \ldots, n$ since if it is not the case then we are done. Let $A$ denote the set of the indices $1 \leq i \leq n$ such that $\left\|x_{f(i)}-x_{f(i+1)}\right\| \geq \varepsilon$. Since the


cyclically taken intervals $\left[x_{f(1)}, x_{f(2)}\right),\left[x_{f(2)}, x_{f(3)}\right), \ldots,\left[x_{f(n)}, x_{f(1)}\right)$ cover the cyclic interval $[0,1)$
$$
1 \geq \sum_{i=1}^n\left\|x_{f(i)}-x_{f(i+1)}\right\| \geq \sum_{i \in A} \varepsilon+\sum_{i \notin A} \frac{1}{2|f(i)-f(i+1)|},
$$and $|A| \leq 1 / \varepsilon$. That is,
$$
1-|A| \varepsilon \geq \frac{1}{2} \sum_{i \notin A} \frac{1}{|f(i)-f(i+1)|} .
$$
Applying the inequality between the arithmetic and harmonic means, we get the inequality
$$
\sum_{i \notin A}|f(i)-f(i+1)| \geq \frac{(n-|A|)^2}{2(1-|A| \varepsilon)} .
$$
In the sum $\sum_{i=1}^n|f(i)-f(i+1)|$, every integer $j \in\{1, \ldots, n\}$ appears exactly twice with positive or negative signs, so that the total sum of the signs is 0 . Obviously, the sum is maximum when the large numbers have coefficient +2 and the small numbers have coefficient -2 . Thus,
$$
\sum_{i=1}^n|f(i)-f(i+1)| \leq \frac{n^2}{2}
$$when $n$ is even, and
$$
\sum_{i=1}^n|f(i)-f(i+1)| \leq \frac{n^2-1}{2}
$$when $n$ is odd. Combining this fact with the preceding inequality, we obtain $1-|A| \varepsilon \geq(1-|A| / n)^2$, which is a contradiction if $|A| \geq 1$ and $n$ is sufficienly large. If $A=\emptyset$, then we get $1=1$, which means that $n$ is even and the numbers $|f(i)-f(i+1)|$ are equal (mean inequality). However, if $f(i)>n / 2$, then $f(i)$ appears twice with positive sign, that is, $f(i)>f(i-1), \quad f(i)>f(i+1)$, implying that $f(i-1)=f(i+1)$, which is possible only if $n \leq 2$. But it is easy to see that equality cannot hold in this case either, and we got the desired contradiction in all cases.
This post has been edited 4 times. Last edited by Martin.s, Jul 12, 2024, 7:17 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EthanWYX2009
856 posts
#10
Y by
Actually $\frac{1}{2|n-m|}$ is easy to achieve. Indeed $\frac{1}{\sqrt 5|n-m|}$ is still correct, but I don't know the proof. A construction taking $x_n=\{\phi^n\}$ where $\phi =\frac{\sqrt 5+1}2$ can show $\sqrt 5$ is the best.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
oty
2314 posts
#11
Y by
Any reference for the $\sqrt{5}$ bound.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Martin.s
1536 posts
#12
Y by
Bump this
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ailyta
6 posts
#13
Y by
EthanWYX2009 wrote:
Actually $\frac{1}{2|n-m|}$ is easy to achieve. Indeed $\frac{1}{\sqrt 5|n-m|}$ is still correct, but I don't know the proof. A construction taking $x_n=\{\phi^n\}$ where $\phi =\frac{\sqrt 5+1}2$ can show $\sqrt 5$ is the best.

why $x_n=\{\phi^n\}$ where $\phi =\frac{\sqrt 5+1}2$ can show $\sqrt 5$ is the best? I think $||x_{2k}-x_{2k+2}||=(\frac{\sqrt 5-1}2)^{2k+1}$.Am I wrong?
This post has been edited 2 times. Last edited by Ailyta, Apr 14, 2025, 4:27 PM
Z K Y
N Quick Reply
G
H
=
a