Plan ahead for the next school year. Schedule your class today!

G
Topic
First Poster
Last Poster
k a July Highlights and 2025 AoPS Online Class Information
jwelsh   0
Jul 1, 2025
We are halfway through summer, so be sure to carve out some time to keep your skills sharp and explore challenging topics at AoPS Online and our AoPS Academies (including the Virtual Campus)!

[list][*]Over 60 summer classes are starting at the Virtual Campus on July 7th - check out the math and language arts options for middle through high school levels.
[*]At AoPS Online, we have accelerated sections where you can complete a course in half the time by meeting twice/week instead of once/week, starting on July 8th:
[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC Problem Series[/list]
[*]Plus, AoPS Online has a special seminar July 14 - 17 that is outside the standard fare: Paradoxes and Infinity
[*]We are expanding our in-person AoPS Academy locations - are you looking for a strong community of problem solvers, exemplary instruction, and math and language arts options? Look to see if we have a location near you and enroll in summer camps or academic year classes today! New locations include campuses in California, Georgia, New York, Illinois, and Oregon and more coming soon![/list]

MOP (Math Olympiad Summer Program) just ended and the IMO (International Mathematical Olympiad) is right around the corner! This year’s IMO will be held in Australia, July 10th - 20th. Congratulations to all the MOP students for reaching this incredible level and best of luck to all selected to represent their countries at this year’s IMO! Did you know that, in the last 10 years, 59 USA International Math Olympiad team members have medaled and have taken over 360 AoPS Online courses. Take advantage of our Worldwide Online Olympiad Training (WOOT) courses
and train with the best! Please note that early bird pricing ends August 19th!
Are you tired of the heat and thinking about Fall? You can plan your Fall schedule now with classes at either AoPS Online, AoPS Academy Virtual Campus, or one of our AoPS Academies around the US.

Our full course list for upcoming classes is below:
All classes start 7:30pm ET/4:30pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Sunday, Oct 19 - Jan 25
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)
Sat & Sun, Sep 13 - Sep 14 (1:00 - 4:00 PM PT/4:00 - 7:00 PM ET)

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Wednesday, Sep 24 - Dec 17

Precalculus
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Calculus
Sunday, Sep 7 - Mar 15
Wednesday, Sep 24 - Apr 1
Friday, Nov 14 - May 22

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

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, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Friday, Oct 3 - Jan 16

USACO Bronze Problem Series
Wednesday, Sep 3 - Dec 3
Thursday, Oct 30 - Feb 5
Tuesday, Dec 2 - Mar 3

Physics

Introduction to Physics
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26
0 replies
jwelsh
Jul 1, 2025
0 replies
Peru IMO TST 2023
diegoca1   1
N an hour ago by grupyorum
Source: Peru IMO TST 2023 pre-selection P4
Prove that, for every integer $n \geq 3$, there exist $n$ positive composite integers that form an arithmetic progression and are pairwise coprime.

Note: A positive integer is called composite if it can be expressed as the product of two integers greater than 1.
1 reply
diegoca1
Yesterday at 7:38 PM
grupyorum
an hour ago
Quad formed by orthocenters has same area (all 7's!)
v_Enhance   38
N an hour ago by Kempu33334
Source: USA January TST for the 55th IMO 2014
Let $ABCD$ be a cyclic quadrilateral, and let $E$, $F$, $G$, and $H$ be the midpoints of $AB$, $BC$, $CD$, and $DA$ respectively. Let $W$, $X$, $Y$ and $Z$ be the orthocenters of triangles $AHE$, $BEF$, $CFG$ and $DGH$, respectively. Prove that the quadrilaterals $ABCD$ and $WXYZ$ have the same area.
38 replies
1 viewing
v_Enhance
Apr 28, 2014
Kempu33334
an hour ago
Number of distinct residues of x^n+ax mod p
gghx   4
N an hour ago by dolphinday
Source: SMO Open 2022
Let $n\ge 2$ be a positive integer. For any integer $a$, let $P_a(x)$ denote the polynomial $x^n+ax$. Let $p$ be a prime number and define the set $S_a$ as the set of residues mod $p$ that $P_a(x)$ attains. That is, $$S_a=\{b\mid 0\le b\le p-1,\text{  and there is }c\text{ such that }P_a(c)\equiv b \pmod{p}\}.$$Show that the expression $\frac{1}{p-1}\sum\limits_{a=1}^{p-1}|S_a|$ is an integer.

Proposed by fattypiggy123
4 replies
gghx
Jul 2, 2022
dolphinday
an hour ago
Balkan MO 2022/1 is reborn
Assassino9931   11
N an hour ago by lendsarctix280
Source: Bulgaria EGMO TST 2023 Day 1, Problem 1
Let $ABC$ be a triangle with circumcircle $k$. The tangents at $A$ and $C$ intersect at $T$. The circumcircle of triangle $ABT$ intersects the line $CT$ at $X$ and $Y$ is the midpoint of $CX$. Prove that the lines $AX$ and $BY$ intersect on $k$.
11 replies
+1 w
Assassino9931
Feb 7, 2023
lendsarctix280
an hour ago
Find the value of angle C
markosa   12
N 4 hours ago by sunken rock
Given a triangle ABC with base BC

angle B = 3x
angle C = x
AP is the bisector of base BC (i.e.) BP = PC
angle APB = 45 degrees

Find x

I know there are multiple methods to solve this problem using cosine law, coord geo
But is there any pure geometrical solution?
12 replies
markosa
Yesterday at 12:45 PM
sunken rock
4 hours ago
10 Problems
Sedro   57
N Today at 3:25 PM by Sedro
Title says most of it. I've been meaning to post a problem set on HSM since at least a few months ago, but since I proposed the most recent problems I made to the 2025 SSMO, I had to wait for that happen. (Hence, most of these problems will probably be familiar if you participated in that contest, though numbers and wording may be changed.) The problems are very roughly arranged by difficulty. Enjoy!

Problem 1: An sequence of positive integers $u_1, u_2, \dots, u_8$ has the property for every positive integer $n\le 8$, its $n^\text{th}$ term is greater than the mean of the first $n-1$ terms, and the sum of its first $n$ terms is a multiple of $n$. Let $S$ be the number of such sequences satisfying $u_1+u_2+\cdots + u_8 = 144$. Compute the remainder when $S$ is divided by $1000$.

Problem 2 (solved by fruitmonster97): Rhombus $PQRS$ has side length $3$. Point $X$ lies on segment $PR$ such that line $QX$ is perpendicular to line $PS$. Given that $QX=2$, the area of $PQRS$ can be expressed as $\tfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Compute $m+n$.

Problem 3 (solved by Math-lover1): Positive integers $a$ and $b$ satisfy $a\mid b^2$, $b\mid a^3$, and $a^3b^2 \mid 2025^{36}$. If the number of possible ordered pairs $(a,b)$ is equal to $N$, compute the remainder when $N$ is divided by $1000$.

Problem 4 (solved by CubeAlgo15): Let $ABC$ be a triangle. Point $P$ lies on side $BC$, point $Q$ lies on side $AB$, and point $R$ lies on side $AC$ such that $PQ=BQ$, $CR=PR$, and $\angle APB<90^\circ$. Let $H$ be the foot of the altitude from $A$ to $BC$. Given that $BP=3$, $CP=5$, and $[AQPR] = \tfrac{3}{7} \cdot [ABC]$, the value of $BH\cdot CH$ can be expressed as $\tfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Compute $m+n$.

Problem 5 (solved by maromex): Anna has a three-term arithmetic sequence of integers. She divides each term of her sequence by a positive integer $n>1$ and tells Bob that the three resulting remainders are $20$, $52$, and $R$, in some order. For how many values of $R$ is it possible for Bob to uniquely determine $n$?

Problem 6 (solved by Mathsll-enjoy): There is a unique ordered triple of positive reals $(x,y,z)$ satisfying the system of equations \begin{align*} x^2 + 9 &= (y-\sqrt{192})^2 + 4 \\ y^2 + 4 &= (z-\sqrt{192})^2 + 49 \\ z^2 + 49 &= (x-\sqrt{192})^2 + 9. \end{align*}The value of $100x+10y+z$ can be expressed as $p\sqrt{q}$, where $p$ and $q$ are positive integers such that $q$ is square-free. Compute $p+q$.

Problem 7 (solved by sami1618): Let $S$ be the set of all monotonically increasing six-term sequences whose terms are all integers between $0$ and $6$ inclusive. We say a sequence $s=n_1, n_2, \dots, n_6$ in $S$ is symmetric if for every integer $1\le i \le 6$, the number of terms of $s$ that are at least $i$ is $n_{7-i}$. The probability that a randomly chosen element of $S$ is symmetric is $\tfrac{p}{q}$, where $p$ and $q$ are relatively prime positive integers. Compute $p+q$.

Problem 8: For a positive integer $n$, let $r(n)$ denote the value of the binary number obtained by reading the binary representation of $n$ from right to left. Find the smallest positive integer $k$ such that the equation $n+r(n)=2k$ has at least ten positive integer solutions $n$.

Problem 9 (solved by Math-lover1, sami1618): Let $p$ be a quadratic polynomial with a positive leading coefficient. There exists a positive real number $r$ such that $r < 1 < \tfrac{5}{2r} < 5$ and $p(p(x)) = x$ for $x \in \{ r,1,  \tfrac{5}{2r} , 5\}$. Compute $p(20)$.

Problem 10 (solved by aaravdodhia, sami1618): Find the number of ordered triples of positive integers $(a,b,c)$ such that $a+b+c=995$ and $ab+bc+ca$ is a multiple of $995$.
57 replies
Sedro
Jul 10, 2025
Sedro
Today at 3:25 PM
Trigonometry prove
Studying_geometry   2
N Today at 2:39 PM by CuriousMathBoy72
Prove that $ sin36^\circ - cos18^\circ = \frac{1}{2} $
2 replies
Studying_geometry
Today at 2:18 PM
CuriousMathBoy72
Today at 2:39 PM
PROVINCIAL MATHEMATICS 9 MATH QUESTIONS FOR REFERENCE
tuananh_vvvbb   0
Today at 1:33 PM
Hello friends, I would like to share with you a reference to an HSG question for me to get a score of 70% or more, which is quite difficult. Readers, please refer to me for an explanation. Thank you all very much. Good health.
0 replies
tuananh_vvvbb
Today at 1:33 PM
0 replies
Inequalitis
sqing   11
N Today at 10:07 AM by sqing
Let $ a,b,c\geq  0 , a^2+b^2+c^2 =3.$ Prove that
$$a^3 +b^3 +c^3 +\frac{11}{5}abc  \leq \frac{26}{5}$$
11 replies
sqing
May 31, 2025
sqing
Today at 10:07 AM
Inequalities of integers
nhathhuyyp5c   3
N Today at 9:07 AM by Pal702004
Let $m,n$ be positive integers, $m$ is even such that $\sqrt{2}<\dfrac{m}{n}<\sqrt{2}+\dfrac{1}{2}$. Prove that there exist positive integers $k,l$ satisfying $$\left|\frac{k}{l}-\sqrt{2}\right|<\frac{m}{n}-\sqrt{2}.$$
3 replies
nhathhuyyp5c
Jun 14, 2025
Pal702004
Today at 9:07 AM
Inequalities
sqing   5
N Today at 8:05 AM by sqing
Let $ a,b,c\geq 0, \frac{1}{1+a}+\frac{1}{1+b}+\frac{1}{1+c}=\frac{3}{2}.$ Prove that
$$ \left(a+b+c-\frac{17}{6}\right)^2+9abc   \geq\frac{325}{36}$$$$   \left(a+b+c-\frac{5}{2}\right)^2+12abc \geq\frac{49}{4}$$$$\left(a+b+c-\frac{14}{5}\right)^2+\frac{49}{5}abc \geq\frac{49}{5}$$
5 replies
sqing
Jun 30, 2025
sqing
Today at 8:05 AM
x+y+z+1/x+1/y+1/z=0
nhathhuyyp5c   1
N Today at 7:48 AM by sqing
Let $x,y,z$ be reals such that $|x|,|y|,|z|\geq1$ and $x+y+z+\dfrac{1}{x}+\dfrac{1}{y}+\dfrac{1}{z}=0$. Find $\max P=x+y+z$.
1 reply
nhathhuyyp5c
Today at 6:38 AM
sqing
Today at 7:48 AM
On a generalization of a^3+b^3+c^3-3abc
Sivin   1
N Today at 4:05 AM by Sivin
We note that $x_1^2+x_2^2-2x_1x_2=(x_1-x_2)^2$ and
$${x_1^3+x_2^3+x_3^3-3x_1x_2x_3=(x_1+x_2+x_3)(x_1^2+x_2^2+x_3^2-x_1x_2-x_2x_3-x_3x_1)}$$are reducible polynomials in $\mathbb{C}.$ However, $x_1^4+x_2^4+x_3^4+x_4^4-4x_1x_2x_3x_4$ is an irreducible polynomial in $\mathbb{C}.$ So what are all the $n$ such that the polynomial:
$$f_n(x_1,x_2,\dots,x_n)=x_1^n+x_2^n+\dots+x_n^n-nx_1x_2\dots x_n$$is reducible in $\mathbb{C}$?
1 reply
Sivin
Dec 3, 2024
Sivin
Today at 4:05 AM
Inequalities
sqing   11
N Today at 1:50 AM by sqing
Let $ a,b> 0 $ and $2a+2b+ab=5. $ Prove that
$$ \frac{a^4}{b^4}+\frac{1}{a^4}+42ab-a^4\geq  43$$$$ \frac{a^5}{b^5}+\frac{1}{a^5}+64ab-a^5\geq  65$$$$ \frac{a^6}{b^6}+\frac{1}{a^6}+90ab-a^6\geq  91$$$$ \frac{a^7}{b^7}+\frac{1}{a^7}+121ab-a^7\geq  122$$
11 replies
sqing
May 28, 2025
sqing
Today at 1:50 AM
Cup of Combinatorics
M11100111001Y1R   7
N May 29, 2025 by MathematicalArceus
Source: Iran TST 2025 Test 4 Problem 2
There are \( n \) cups labeled \( 1, 2, \dots, n \), where the \( i \)-th cup has capacity \( i \) liters. In total, there are \( n \) liters of water distributed among these cups such that each cup contains an integer amount of water. In each step, we may transfer water from one cup to another. The process continues until either the source cup becomes empty or the destination cup becomes full.

$a)$ Prove that from any configuration where each cup contains an integer amount of water, it is possible to reach a configuration in which each cup contains exactly 1 liter of water in at most \( \frac{4n}{3} \) steps.

$b)$ Prove that in at most \( \frac{5n}{3} \) steps, one can go from any configuration with integer water amounts to any other configuration with the same property.
7 replies
M11100111001Y1R
May 27, 2025
MathematicalArceus
May 29, 2025
Cup of Combinatorics
G H J
G H BBookmark kLocked kLocked NReply
Source: Iran TST 2025 Test 4 Problem 2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
M11100111001Y1R
130 posts
#1 • 2 Y
Y by GA34-261, sami1618
There are \( n \) cups labeled \( 1, 2, \dots, n \), where the \( i \)-th cup has capacity \( i \) liters. In total, there are \( n \) liters of water distributed among these cups such that each cup contains an integer amount of water. In each step, we may transfer water from one cup to another. The process continues until either the source cup becomes empty or the destination cup becomes full.

$a)$ Prove that from any configuration where each cup contains an integer amount of water, it is possible to reach a configuration in which each cup contains exactly 1 liter of water in at most \( \frac{4n}{3} \) steps.

$b)$ Prove that in at most \( \frac{5n}{3} \) steps, one can go from any configuration with integer water amounts to any other configuration with the same property.
This post has been edited 1 time. Last edited by M11100111001Y1R, May 27, 2025, 7:26 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Davdav1232
50 posts
#2
Y by
Part a)
Algorithm 1: Pass all water to the cup with capacity $n$, and then pass $n-1$ to $n-1$, and from there $n-2$ to $n-2$, ..., until you reach $1$. Total number of moves: #(non-empty cups) + $n-1$. If the number of non-empty cups is at most $n/3+1$ we are done.
Algorithm 2: While there is an empty cup, pass water to cup $1$ from a cup with at least $2$ liters and from there to the empty cup. If cup $1$ was already full start by passing the water in it to an empty cup. Total number of moves: $2*$#(empty cups) - 1. Works if number of empty cups is at most $2n/3$.
One of these algorithms is quick enough to finish the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sansgankrsngupta
164 posts
#3 • 1 Y
Y by sami1618
OG! Denote by $a \mapsto b$, a transfer from $a$-th cup to $b$-th cup. and $v_a$ be the volume of water in $a$
a) Note that: Each cup contains exactly 1 liter of water $\iff$ No cup is empty.
  • If at most $\frac{n}{3}$ cups are non-empty, then in atmost $\frac{n}{3}$ transfer all the water to $n$-th cup,
    Now performing the following in order works: $$n \mapsto n-1,  n-1 \mapsto n-2 \dots  2 \mapsto 1$$
  • If $>\frac{n}{3}$ cups are non-empty, then at most $\frac{2n}{3}$ cups are empty. We shall now demonstrate that if there is an empty cup, in at most 2 steps we can increase the no. of non-empty cups, thus in at most $\frac{4n}{3}$ steps we shall ensure that no cup is empty.
    Let the cup with maximal volume of water be $k$. Since, there is an empty cup, we conclude $v_k>1$.
    Now the step(s) :
    • $1 \mapsto b, k \mapsto 1$(if glass $1$ has water)
    • $k \mapsto 1$(if glass $1$ is empty)
    increase(s) the no. of non-empty cups by 1.
b)
  • If at most $\frac n3$ cups are empty in the final configuration, then first reach the configuration in part a) in atmost $\frac{4n}{3}$ steps. Then from the cups which are destined to empty in the final configuration transfer the 1 liter water to a cup which must be non-empty at the end.
    This takes at most $\frac{n}{3}$ further moves and hence at most $\frac{5n}{3} $ moves in total.
This post has been edited 9 times. Last edited by sansgankrsngupta, Jun 4, 2025, 5:16 AM
Reason: -
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sami1618
974 posts
#4
Y by
Excellent Problem
a) Solution. Let $C$ be the number of non-empty cups at the beginning. We first describe two procedures:
Procedure 1A: Begin by pouring all non-empty cups (other than the $n$-th cup) into the $n$-th cup. This takes at most $C$ steps. After this, the $n$-th cup is full and all the other cups are empty. Then pour the $n$-th cup into the $(n-1)$-th cup until the $(n-1)$-th cup is full. Repeat this by pouring the $(n-1)$-th cup into the $(n-2)$-th cup and so on. After $n-1$ of such steps, all cups will have $1$ liter of water.

This procedure takes at most $n+C$ steps (we are being generous).
Procedure 2A: Follow the following algorithm.
  • If all cups have water, then stop.
  • If the first cup has water then pour it into a cup that does not have water.
  • Since the first cup is now empty, pour a cup with at least $2$ liters of water into the first cup.
  • Repeat.
Each time the algorithm repeats, at most $2$ steps are preformed and the number of cups with water increases by exactly $1$.

This procedure requires at most $2(n-C)$ steps.
Since $(n+C)+(n+C)+2(n-C)=4n$, one of these procedures must require at most $4n/3$ steps, as required.
@below
This post has been edited 1 time. Last edited by sami1618, May 29, 2025, 7:26 PM
Reason: tried to make my solution clearer
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sami1618
974 posts
#5
Y by
b) Solution. Let $C'$ be the number of non-empty cups in the final configuration. We first describe three procedures:
Procedure 1B: Begin by preforming procedure 1A. Then for each cup that is empty in the final configuration, pour it into a cup that needs more water in the final configuration.

This procedure takes at most $2n+C-C'$ steps.
Procedure 2B: Begin by preforming procedure 2A. Then for each cup that is empty in the final configuration, pour it into a cup that needs more water in the final configuration.

This procedure takes at most $3n-2C-C'$ steps.
Procedure 3B: Begin by pouring all cups with water into the $n$-th cup. This take at most $C$ steps. Then let $c_1<c_2<\dots< c_m$ be all the cups (other then $n$) that need water in the final configuration. Suppose they need respective water amounts of $l_1,l_2,\dots,l_m$ liters. Now pour the $n$-th cup into the $l_m$-th cup until it becomes full and the pour all the $l_m$-th cup into the $c_m$-th cup. Since $l_i\leq c_i$ repeating this process with $c_{m-1}$ and $l_{m-1}$ will not interfere. Thus we can do this for all cups that need water, with at most $2$ moves per cup.

This procedure takes at most $C+2C'$ steps.
Since $(2n+C-C')+(3n-2C-C')+(C+2C')=5n$, one of these procedures will require at most $5n/3$ steps, as required.
This post has been edited 1 time. Last edited by sami1618, May 29, 2025, 1:51 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathematicalArceus
58 posts
#6 • 1 Y
Y by sami1618
sami1618 wrote:
Excellent Problem
a) Solution. Let $C$ be the number of non-empty cups at the beginning. We first describe two procedures:
Procedure 1A: Begin by pouring all non-empty cups (other than the $n$-th cup) into the $n$-th cup. This takes at most $C$ steps. After this, the $n$-th cup is full and all the other cups are empty. Then pour the $n$-th cup into the $(n-1)$-th cup until the $(n-1)$-th cup is full. Repeat this by pouring the $(n-1)$-th cup into the $(n-2)$-th cup and so on. After $n-1$ of such steps, all cups will have $1$ liter of water.

This procedure takes at most $n+C$ steps (we are being generous).
Procedure 2A: Follow the following algorithm.
  • If all cups have water, then stop.
  • If the first cup has water then pour it into a cup that does not have water.
  • Since the first cup is now empty, pour a cup with at least $2$ liters of water into the first cup.
  • Repeat.
Each time the algorithm repeats, at most $2$ steps are preformed and the number of cups with water increases by exactly $1$.

This procedure requires at most $2(n-C)$ steps.
Since $2(n+C)+2(n-C)=4n$, one of these procedures must require at most $4n/3$ steps, as required.

Amusingly, I did all of this, but I still don't get how you got the last line or the finish... Is it because you have 2 algos and 1 default order where everything is filled, and hence you do the $\frac{\text{total}}{3} = \frac{4n}{3}$?
This post has been edited 2 times. Last edited by MathematicalArceus, May 29, 2025, 6:37 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
aaravdodhia
2698 posts
#7 • 1 Y
Y by sami1618
That's confusing. Think of the number of steps required for algorithm 1A ($x$) and for algorithm 2a ($y$). Since $2x+y \le 2n(n+C) + 2n(n-C) = 4n$, one of $x$ or $y$ must be under $4n/3$. If both $x,y \ge 4n/3$, then the inequality becomes false, which contradicts our observations. This concept is similar to the pigeonhole principle.
This post has been edited 1 time. Last edited by aaravdodhia, May 29, 2025, 7:18 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathematicalArceus
58 posts
#8
Y by
aaravdodhia wrote:
That's confusing. Think of the number of steps required for algorithm 1A ($x$) and for algorithm 2a ($y$). Since $2x+y \le 2n(n+C) + 2n(n-C) = 4n$, one of $x$ or $y$ must be under $4n/3$. If both $x,y \ge 4n/3$, then the inequality becomes false, which contradicts our observations. This concept is similar to the pigeonhole principle.

ohh yes ! Nice idea, I will keep this in mind! Thanks...
Z K Y
N Quick Reply
G
H
=
a