We have your learning goals covered with Spring and Summer courses available. Enroll today!

G
Topic
First Poster
Last Poster
k a March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/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, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
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
Tuesday, Mar 25 - Jul 8
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
Sunday, Mar 23 - Jul 20
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
Sunday, Mar 16 - Jun 8
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
Monday, Mar 17 - Jun 9
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
Sunday, Mar 2 - Jun 22
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
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
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
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
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
Sunday, Mar 23 - Aug 3
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
Sunday, Mar 16 - Aug 24
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
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
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
Sunday, Mar 23 - Jun 15
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
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
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
Monday, Mar 24 - Jun 16
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
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
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
Mar 2, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
Prove that expression is always even.
shivangjindal   19
N 8 minutes ago by alexanderhamilton124
Source: INMO 2014- Problem 2
Let $n$ be a natural number. Prove that,
\[ \left\lfloor \frac{n}{1} \right\rfloor+ \left\lfloor \frac{n}{2} \right\rfloor + \cdots + \left\lfloor \frac{n}{n} \right\rfloor + \left\lfloor \sqrt{n} \right\rfloor \]
is even.
19 replies
+1 w
shivangjindal
Feb 2, 2014
alexanderhamilton124
8 minutes ago
Functional equation on (0,infinity)
mathwizard888   55
N 15 minutes ago by Ilikeminecraft
Source: 2016 IMO Shortlist A4
Find all functions $f:(0,\infty)\rightarrow (0,\infty)$ such that for any $x,y\in (0,\infty)$, $$xf(x^2)f(f(y)) + f(yf(x)) = f(xy) \left(f(f(x^2)) + f(f(y^2))\right).$$
55 replies
mathwizard888
Jul 19, 2017
Ilikeminecraft
15 minutes ago
Functional Equations Marathon March 2025
Levieee   16
N 16 minutes ago by joeym2011
1. before posting another problem please try your best to provide the solution to the previous solution because we don't want a backlog of many problems
2.one is welcome to send functional equations involving calculus (mainly basic real analysis type of proofs) as long it is of the form $\text{"find all functions:"}$
16 replies
+1 w
Levieee
3 hours ago
joeym2011
16 minutes ago
Twin Prime Diophantine
awesomeming327.   14
N 30 minutes ago by Assassino9931
Source: CMO 2025
Determine all positive integers $a$, $b$, $c$, $p$, where $p$ and $p+2$ are odd primes and
\[2^ap^b=(p+2)^c-1.\]
14 replies
awesomeming327.
Mar 7, 2025
Assassino9931
30 minutes ago
2^a + 3^b + 1 = 6^c
togrulhamidli2011   2
N 41 minutes ago by RedFireTruck
Find all positive integers (a, b, c) such that:

\[
2^a + 3^b + 1 = 6^c
\]
2 replies
togrulhamidli2011
Yesterday at 12:34 PM
RedFireTruck
41 minutes ago
Bosnia and Herzegovina JBMO TST 2013 Problem 1
gobathegreat   4
N an hour ago by RedFireTruck
Source: Bosnia and Herzegovina Junior Balkan Mathematical Olympiad TST 2013
It is given $n$ positive integers. Product of any one of them with sum of remaining numbers increased by $1$ is divisible with sum of all $n$ numbers. Prove that sum of squares of all $n$ numbers is divisible with sum of all $n$ numbers
4 replies
gobathegreat
Sep 16, 2018
RedFireTruck
an hour ago
chat gpt
fuv870   8
N an hour ago by jkim0656
The chat gpt alreadly knows how to solve the problem of IMO USAMO and AMC?
8 replies
fuv870
Yesterday at 9:51 PM
jkim0656
an hour ago
IMO 2012 P5
mathmdmb   122
N an hour ago by KevinYang2.71
Source: IMO 2012 P5
Let $ABC$ be a triangle with $\angle BCA=90^{\circ}$, and let $D$ be the foot of the altitude from $C$. Let $X$ be a point in the interior of the segment $CD$. Let $K$ be the point on the segment $AX$ such that $BK=BC$. Similarly, let $L$ be the point on the segment $BX$ such that $AL=AC$. Let $M$ be the point of intersection of $AL$ and $BK$.

Show that $MK=ML$.

Proposed by Josef Tkadlec, Czech Republic
122 replies
mathmdmb
Jul 11, 2012
KevinYang2.71
an hour ago
Variable point on the median
MarkBcc168   47
N an hour ago by HamstPan38825
Source: APMO 2019 P3
Let $ABC$ be a scalene triangle with circumcircle $\Gamma$. Let $M$ be the midpoint of $BC$. A variable point $P$ is selected in the line segment $AM$. The circumcircles of triangles $BPM$ and $CPM$ intersect $\Gamma$ again at points $D$ and $E$, respectively. The lines $DP$ and $EP$ intersect (a second time) the circumcircles to triangles $CPM$ and $BPM$ at $X$ and $Y$, respectively. Prove that as $P$ varies, the circumcircle of $\triangle AXY$ passes through a fixed point $T$ distinct from $A$.
47 replies
MarkBcc168
Jun 11, 2019
HamstPan38825
an hour ago
Can this sequence be bounded?
darij grinberg   66
N an hour ago by shendrew7
Source: German pre-TST 2005, problem 4, ISL 2004, algebra problem 2
Let $a_0$, $a_1$, $a_2$, ... be an infinite sequence of real numbers satisfying the equation $a_n=\left|a_{n+1}-a_{n+2}\right|$ for all $n\geq 0$, where $a_0$ and $a_1$ are two different positive reals.

Can this sequence $a_0$, $a_1$, $a_2$, ... be bounded?

Proposed by Mihai Bălună, Romania
66 replies
darij grinberg
Jan 19, 2005
shendrew7
an hour ago
Sequences and limit
lehungvietbao   14
N 2 hours ago by eg4334
Source: Vietnam Mathematical OLympiad 2014
Let $({{x}_{n}}),({{y}_{n}})$ be two positive sequences defined by ${{x}_{1}}=1,{{y}_{1}}=\sqrt{3}$ and
\[ \begin{cases}  {{x}_{n+1}}{{y}_{n+1}}-{{x}_{n}}=0 \\   x_{n+1}^{2}+{{y}_{n}}=2 \end{cases} \] for all $n=1,2,3,\ldots$.
Prove that they are converges and find their limits.
14 replies
lehungvietbao
Jan 3, 2014
eg4334
2 hours ago
IMO 2014 Problem 1
Amir Hossein   131
N 2 hours ago by eg4334
Let $a_0 < a_1 < a_2 < \dots$ be an infinite sequence of positive integers. Prove that there exists a unique integer $n\geq 1$ such that
\[a_n < \frac{a_0+a_1+a_2+\cdots+a_n}{n} \leq a_{n+1}.\]
Proposed by Gerhard Wöginger, Austria.
131 replies
Amir Hossein
Jul 8, 2014
eg4334
2 hours ago
One secuence satisfying condition
hatchguy   8
N 2 hours ago by jaescl
Prove that there exists only one infinite secuence of positive integers $a_1,a_2,...$ with $a_1=1$, $a_2>1$ and $a_{n+1}^3 + 1 = a_na_{n+2}$ for all positive integers $n$.
8 replies
1 viewing
hatchguy
Sep 4, 2011
jaescl
2 hours ago
Unsolved Diophantine(I think)
Nuran2010   2
N 3 hours ago by ohiorizzler1434
Find all solutions for the equation $2^n=p+3^p$ where $n$ is a positive integer and $p$ is a prime.(Don't get mad at me,I've used the search function and did not see a correct and complete solution anywhere.)
2 replies
Nuran2010
Mar 14, 2025
ohiorizzler1434
3 hours ago
what is the smallest number of commands
sqing   3
N Aug 24, 2021 by AwesomeYRY
Source: 7th European Mathematical Cup , Junior Category, Q4
Let $n$ be a positive integer. Ana and Banana are playing the following game:
First, Ana arranges $2n$ cups in a row on a table, each facing upside-down. She then places a ball under a cup
and makes a hole in the table under some other cup. Banana then gives a finite sequence of commands to Ana,
where each command consists of swapping two adjacent cups in the row.
Her goal is to achieve that the ball has fallen into the hole during the game. Assuming Banana has no information
about the position of the hole and the position of the ball at any point, what is the smallest number of commands
she has to give in order to achieve her goal?
3 replies
sqing
Dec 25, 2018
AwesomeYRY
Aug 24, 2021
what is the smallest number of commands
G H J
G H BBookmark kLocked kLocked NReply
Source: 7th European Mathematical Cup , Junior Category, Q4
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sqing
41026 posts
#1 • 2 Y
Y by AwesomeYRY, Adventure10
Let $n$ be a positive integer. Ana and Banana are playing the following game:
First, Ana arranges $2n$ cups in a row on a table, each facing upside-down. She then places a ball under a cup
and makes a hole in the table under some other cup. Banana then gives a finite sequence of commands to Ana,
where each command consists of swapping two adjacent cups in the row.
Her goal is to achieve that the ball has fallen into the hole during the game. Assuming Banana has no information
about the position of the hole and the position of the ball at any point, what is the smallest number of commands
she has to give in order to achieve her goal?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cooljoseph
1446 posts
#2 • 1 Y
Y by Adventure10
Each swap decreases one such configuration as a possibility. As we start with one known configuration, it will take at most $\binom{2n}{2} - 1 = 2n^2 - n - 1$ swaps to "determine" where the hole is. We then take one additional move to put the ball in the hole, making a total of $\boxed{2n^2 - n}$. I'm not quite sure how to prove that sometimes it will require this many moves.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MellowMelon
5850 posts
#3 • 5 Y
Y by danepale, WindTheorist, AwesomeYRY, adityaguharoy, Adventure10
The answer is $3n^2 - 2n$. Have Banana (pretend to) procure $2n$ different balls, arranged in a row and numbered from 1 to $2n$ in left to right order. Whenever Banana calls out a move to Ana, she swaps the balls in the corresponding positions in her own row. Forgetting about Ana, Banana's goal is to make it so that each of her $2n$ balls occupies every position at some point in time.

First, we'll show the lower bound. Mark a ball with L if it visited position 1 before position $2n$, and mark it with R otherwise. Each pair of balls with the same letter (both L or both R) must swap with each other at least twice. Each pair of balls with different letters (one L and one R) must swap with each other at least once. Let $m_L$ be the total number of L balls and $m_R$ be the total number of R balls. Then we have shown that at least
\[ \binom{m_L}{2} + \binom{m_R}{2} + \binom{2n}{2} \]moves are required. By convexity and $m_L + m_R = 2n$, this is minimized for $m_L = m_R = n$. The above simplifies to $3n^2 - 2n$, our claimed answer.

Now we just need to show this is obtainable.
Step 1: For $1 \leq i \leq n-1$ in order, take ball $2n-i$, still in its initial position, and move it right $i$ times. After this, the configuration is $1, 2, \ldots, n, 2n, 2n-1, \ldots, n+1$. All of balls $n+1$ to $2n$ inclusive have visited position $2n$.
Step 2: For $1 \leq i \leq n$ in order, take ball $i$, currently in the leftmost position, and move it right $2n-1$ times. After all of this, the configuration is $2n, 2n-1, \ldots, n+1, 1, 2, \ldots, n$. The only thing left to do is have balls $n+1$ to $2n$ inclusive visit position 1.
Step 3: For $1 \leq i \leq n-1$ in order, take ball $2n-i$, currently in position $i+1$, and move it left $i$ times. All balls have now visited both 1 and $2n$, which implies they have visited every position.

Both steps 1 and 3 needed $\frac{n(n-1)}{2}$ moves, and step 2 needed $2n^2 - n$ moves. Adding these up gives $3n^2 - 2n$, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AwesomeYRY
579 posts
#4 • 2 Y
Y by Jalil_Huseynov, DrYouKnowWho
We claim the answer is $3n^2-2n$. Note that this problem is equivalent to finding the number of swaps needed to make all cups visit all positions.

We first show this value is necessary. Label the positions from $1,2,\ldots 2n$. Firstly, clearly all $\binom{2n}{2}$ pairs of cups must be swapped at some point (can't jump over). Next, we claim that each cup $I$ starting at position $i$ will swap twice with either the cups in the set $\{1,2,\ldots i-1\}$ or $\{i+1,\ldots, 2n\}$. This is clearly true because the cups along the way from $I$ to the first endpoint it reaches will be swapped twice. Thus, by double counting, the minimum number of pairs of cups that are swapped twice is at least
\[\text{(A,B) where A is closer to endpoint} \geq \sum_{i=1}^{2n} \min(i-1,2n-i) = 1+\cdots + (n-1)+(n-1) + \cdots+1 = n^2-n\]Thus, in total at least $\binom{2n}{2}+n^2-n = n(2n-1)+n^2-n = 3n^2-2n$ cups are needed. $\blacksquare$.

We now provide a construction. It consists of two phases.

Phase 1: In $n^2-n$ moves we flip $(1,2,\ldots n),(n+1,\ldots 2n)$ into $(n,n-1,\ldots,1)(2n,2n-1,\ldots n+1)$. We do the $[1,n]$ case, the other one is symmetric. For $i\geq 2, i\leq n$, use swaps to directly send cup $i$ to position 1. This will take $1+\cdots n-1 = \frac{n(n-1)}{2}$ moves, and means that each cup $\leq n$ will only need to go rightwards. $\square$.

Phase 2: In each of $n$ iterations, we send the central pair $(i,2n-i+1)$ to the endpoints $(i \to 2n, 2n-i+1\to 1)$. this will always take $1+2\cdot (n-1)=2n-1$ moves for each iteration, for a total of $n\cdot (2n-1)$, and this clearly takes each cup through each position. $\square$.

Thus, we have provided a bound and a construction, so we have shown that the answer is $3n^2-2n$ and we're done. $\blacksquare$.
Z K Y
N Quick Reply
G
H
=
a