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

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
Yesterday at 11:16 PM
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have an enriching summer experience. 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 upcoming events:
[list][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/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
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
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, 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
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
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
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
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

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
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
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
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
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
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

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Yesterday at 11:16 PM
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
Two circles, a tangent line and a parallel
Valentin Vornicu   104
N 44 minutes ago by cubres
Source: IMO 2000, Problem 1, IMO Shortlist 2000, G2
Two circles $ G_1$ and $ G_2$ intersect at two points $ M$ and $ N$. Let $ AB$ be the line tangent to these circles at $ A$ and $ B$, respectively, so that $ M$ lies closer to $ AB$ than $ N$. Let $ CD$ be the line parallel to $ AB$ and passing through the point $ M$, with $ C$ on $ G_1$ and $ D$ on $ G_2$. Lines $ AC$ and $ BD$ meet at $ E$; lines $ AN$ and $ CD$ meet at $ P$; lines $ BN$ and $ CD$ meet at $ Q$. Show that $ EP = EQ$.
104 replies
1 viewing
Valentin Vornicu
Oct 24, 2005
cubres
44 minutes ago
Austrian Regional MO 2025 P4
BR1F1SZ   2
N an hour ago by NumberzAndStuff
Source: Austrian Regional MO
Let $z$ be a positive integer that is not divisible by $8$. Furthermore, let $n \geqslant 2$ be a positive integer. Prove that none of the numbers of the form $z^n + z + 1$ is a square number.

(Walther Janous)
2 replies
BR1F1SZ
Apr 18, 2025
NumberzAndStuff
an hour ago
Austrian Regional MO 2025 P3
BR1F1SZ   1
N an hour ago by NumberzAndStuff
Source: Austrian Regional MO
There are $6$ different bus lines in a city, each stopping at exactly $5$ stations and running in both directions. Nevertheless, for every two different stations there is always a bus line connecting these two stations. Determine the maximum number of stations in this city.

(Karl Czakler)
1 reply
BR1F1SZ
Apr 18, 2025
NumberzAndStuff
an hour ago
Austrian Regional MO 2025 P2
BR1F1SZ   2
N an hour ago by NumberzAndStuff
Source: Austrian Regional MO
Let $\triangle{ABC}$ be an isosceles triangle with $AC = BC$ and circumcircle $\omega$. The line through $B$ perpendicular to $BC$ is denoted by $\ell$. Furthermore, let $M$ be any point on $\ell$. The circle $\gamma$ with center $M$ and radius $BM$ intersects $AB$ once more at point $P$ and the circumcircle $\omega$ once more at point $Q$. Prove that the points $P,Q$ and $C$ lie on a straight line.

(Karl Czakler)
2 replies
BR1F1SZ
Apr 18, 2025
NumberzAndStuff
an hour ago
Austrian Regional MO 2025 P1
BR1F1SZ   2
N an hour ago by NumberzAndStuff
Source: Austrian Regional MO
Let $n \geqslant 3$ be a positive integer. Furthermore, let $x_1, x_2,\ldots, x_n \in [0, 2]$ be real numbers subject to $x_1 + x_2 +\cdots + x_n = 5$. Prove the inequality$$x_1^2 + x_2^2 + \cdots + x_n^2 \leqslant 9.$$When does equality hold?

(Walther Janous)
2 replies
BR1F1SZ
Apr 18, 2025
NumberzAndStuff
an hour ago
positive integers forming a perfect square
cielblue   0
2 hours ago
Find all positive integers $n$ such that $2^n-n^2+1$ is a perfect square.
0 replies
cielblue
2 hours ago
0 replies
Function equation
LeDuonggg   6
N 2 hours ago by MathLuis
Find all functions $f: \mathbb{R^+} \rightarrow \mathbb{R^+}$ , such that for all $x,y>0$:
\[ f(x+f(y))=\dfrac{f(x)}{1+f(xy)}\]
6 replies
LeDuonggg
Yesterday at 2:59 PM
MathLuis
2 hours ago
A nice and easy gem off of StackExchange
NamelyOrange   0
2 hours ago
Source: https://math.stackexchange.com/questions/3818796/
Define $S$ as the set of all numbers of the form $2^i5^j$ for some nonnegative $i$ and $j$. Find (with proof) all pairs $(m,n)$ such that $m,n\in S$ and $m-n=1$.
0 replies
NamelyOrange
2 hours ago
0 replies
at everystep a, b, c are replaced by a+\gcd(b,c), b+\gcd(a,c), c+\gcd(a,b)
NJAX   8
N 3 hours ago by Assassino9931
Source: 2nd Al-Khwarizmi International Junior Mathematical Olympiad 2024, Day2, Problem 8
Three positive integers are written on the board. In every minute, instead of the numbers $a, b, c$, Elbek writes $a+\gcd(b,c), b+\gcd(a,c), c+\gcd(a,b)$ . Prove that there will be two numbers on the board after some minutes, such that one is divisible by the other.
Note. $\gcd(x,y)$ - Greatest common divisor of numbers $x$ and $y$

Proposed by Sergey Berlov, Russia
8 replies
NJAX
May 31, 2024
Assassino9931
3 hours ago
Increments and Decrements in Square Grid
ike.chen   23
N 3 hours ago by Andyexists
Source: ISL 2022/C3
In each square of a garden shaped like a $2022 \times 2022$ board, there is initially a tree of height $0$. A gardener and a lumberjack alternate turns playing the following game, with the gardener taking the first turn:
[list]
[*] The gardener chooses a square in the garden. Each tree on that square and all the surrounding squares (of which there are at most eight) then becomes one unit taller.
[*] The lumberjack then chooses four different squares on the board. Each tree of positive height on those squares then becomes one unit shorter.
[/list]
We say that a tree is majestic if its height is at least $10^6$. Determine the largest $K$ such that the gardener can ensure there are eventually $K$ majestic trees on the board, no matter how the lumberjack plays.
23 replies
ike.chen
Jul 9, 2023
Andyexists
3 hours ago
4-var inequality
RainbowNeos   5
N 4 hours ago by RainbowNeos
Given $a,b,c,d>0$, show that
\[\frac{a}{b}+\frac{b}{c}+\frac{c}{d}+\frac{d}{a}\geq 4+\frac{8(a-c)^2}{(a+b+c+d)^2}.\]
5 replies
RainbowNeos
Yesterday at 9:31 AM
RainbowNeos
4 hours ago
Hard diophant equation
MuradSafarli   2
N 4 hours ago by MuradSafarli
Find all positive integers $x, y, z, t$ such that the equation

$$
2017^x + 6^y + 2^z = 2025^t
$$
is satisfied.
2 replies
MuradSafarli
4 hours ago
MuradSafarli
4 hours ago
An almost identity polynomial
nAalniaOMliO   6
N 4 hours ago by Primeniyazidayi
Source: Belarusian National Olympiad 2025
Let $n$ be a positive integer and $P(x)$ be a polynomial with integer coefficients such that $P(1)=1,P(2)=2,\ldots,P(n)=n$.
Prove that $P(0)$ is divisible by $2 \cdot 3 \cdot \ldots \cdot n$.
6 replies
nAalniaOMliO
Mar 28, 2025
Primeniyazidayi
4 hours ago
Euler's function
luutrongphuc   2
N 4 hours ago by KevinYang2.71
Find all real numbers \(\alpha\) such that for every positive real \(c\), there exists an integer \(n>1\) satisfying
\[
\frac{\varphi(n!)}{n^\alpha\,(n-1)!} \;>\; c.
\]
2 replies
luutrongphuc
Today at 3:52 PM
KevinYang2.71
4 hours ago
Two permutations
Nima Ahmadi Pour   12
N Apr 23, 2025 by Zhaom
Source: Iran prepration exam
Suppose that $ a_1$, $ a_2$, $ \ldots$, $ a_n$ are integers such that $ n\mid a_1 + a_2 + \ldots + a_n$.
Prove that there exist two permutations $ \left(b_1,b_2,\ldots,b_n\right)$ and $ \left(c_1,c_2,\ldots,c_n\right)$ of $ \left(1,2,\ldots,n\right)$ such that for each integer $ i$ with $ 1\leq i\leq n$, we have
\[ n\mid a_i - b_i - c_i
\]

Proposed by Ricky Liu & Zuming Feng, USA
12 replies
Nima Ahmadi Pour
Apr 24, 2006
Zhaom
Apr 23, 2025
Two permutations
G H J
Source: Iran prepration exam
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Nima Ahmadi Pour
160 posts
#1 • 2 Y
Y by Adventure10 and 1 other user
Suppose that $ a_1$, $ a_2$, $ \ldots$, $ a_n$ are integers such that $ n\mid a_1 + a_2 + \ldots + a_n$.
Prove that there exist two permutations $ \left(b_1,b_2,\ldots,b_n\right)$ and $ \left(c_1,c_2,\ldots,c_n\right)$ of $ \left(1,2,\ldots,n\right)$ such that for each integer $ i$ with $ 1\leq i\leq n$, we have
\[ n\mid a_i - b_i - c_i
\]

Proposed by Ricky Liu & Zuming Feng, USA
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZetaX
7579 posts
#2 • 3 Y
Y by Adventure10, Mango247, and 1 other user
This problem and the following generalisation appeared 1979 in Ars Combinatoria (thanks to Darij who found it):

Let $ (G, + )$ be a finite abelian group of order $ n$.
Let also $ a_1,a_2,...,a_{n - 1} \in G$ be arbitrary.
Then there exist pairwise distinct $ b_1,b_2,...,b_{n - 1} \in G$ and pairwise distinct $ c_1,c_2,...,c_{n - 1} \in G$ such that $ a_k = b_k + c_k$ for $ k = 1,2,...,n - 1$.

[Moderator edit: The Ars Combinatoria paper is:
F. Salzborn, G. Szekeres, A problem in Combinatorial Group Theory, Ars Combinatoria 7 (1979), pp. 3-5.]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
epitomy01
240 posts
#3 • 3 Y
Y by Dan37kosothangnao, Adventure10, Mango247
so could someone post a proof of either the problem or its generalization?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
spdf
136 posts
#4 • 1 Y
Y by Adventure10
you can find the proof in file shortlist 2005 which has been posted by orl
The main idea is given two sequence $a_{1}...a_{n}$ and $b_{1}...b_{n}$ s.t $\sum a_{i}\equiv 0(mod n)$ and $\sum b_{i}\equiv 0(mod n)$ and there are exactly two i;j s.t $a_{i}\neq\ b_{i}(modn)$ and $a_{j}\neq\ b_{j}(modn)$.Then if we know two permutation good for the sequence (a_1...a_n) then we can build two permuttionm good for (b_1...b_n)
i will come back with detail if you need
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZetaX
7579 posts
#5 • 1 Y
Y by Adventure10
Well, I will post the solution from Ars Combinatoria if a re-find that two sheets of paper...
It's a bit different from the ISL one.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
keira_khtn
485 posts
#6 • 2 Y
Y by Adventure10, Mango247
I think you didnt keep promise,Zetax :lol: Please post it here and now!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bodom
123 posts
#7 • 2 Y
Y by Adventure10, Mango247
to spdf: that was also my idea when i first saw the problem but i can't find a good way to contruct those 2 permutations for $ b_j$.you said you can post details.please do so :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZetaX
7579 posts
#8 • 2 Y
Y by Adventure10, Mango247
Sorry for not repsonding (I merely forgot...). But I just saw that problem again: In a slightly different manner (but being equivalent to this one here) it is solved in "The Mathematics of Juggling", called the "Converse of the Average Theorem".

Main ideas:
You show that this property (being a sum of two permutations) is invariant under the operations $ a_{i,j,d}$ that add $ d$ to $ a_i$ and subtract $ d$ from $ a_j$.
For this, you need to do it algorithmically (but describing it is a bit hard without that graphics...).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
arandomperson123
430 posts
#9 • 2 Y
Y by Adventure10, Mango247
ZetaX wrote:
Sorry for not repsonding (I merely forgot...). But I just saw that problem again: In a slightly different manner (but being equivalent to this one here) it is solved in "The Mathematics of Juggling", called the "Converse of the Average Theorem".

Main ideas:
You show that this property (being a sum of two permutations) is invariant under the operations $ a_{i,j,d}$ that add $ d$ to $ a_i$ and subtract $ d$ from $ a_j$.
For this, you need to do it algorithmically (but describing it is a bit hard without that graphics...).

that is what I tried to do, but I can not prove that we can do it for the general case... can someone please help?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ThE-dArK-lOrD
4071 posts
#10 • 16 Y
Y by Lam.DL.01, Mosquitall, nmd27082001, Arc_archer, MathbugAOPS, iceillusion, Aryan-23, magicarrow, k12byda5h, gabrupro, Mop2018, Adventure10, Mango247, bhan2025, CyclicISLscelesTrapezoid, winniep008hfi
Since it's almost twelve years without complete solution, here's the official solution:

Suppose there exists permutations $\sigma$ and $\tau$ of $[n]$ for some sequence $\{ a_i\}_{i\in [n]}$ so that $a_i\equiv_n \sigma (i)+\tau (i)$ for all $i\in [n]$.
Given a sequence $\{ b_i\}_{i\in [n]}$ with sum divisible by $n$ that differ, in modulo $n$, from $\{ a_i\}_{i\in [n]}$ in only two positions, say $i_1$ and $i_2$.
We want to construct permutations $\sigma'$ and $\tau'$ of $[n]$ so that $b_i\equiv_n \sigma' (i) +\tau' (i)$ for all $i\in [n]$.
Recall that $b_i\equiv a_i\pmod{n}$ for all $i\in [n]$ that $i\neq i_1,i_2$.
Construct a sequence $i_1,i_2,i_3,...$ by, for each integer $k\geq 2$, define $i_{k+1}\in [n]$ to be the unique integer satisfy $\sigma (i_{k-1})+\tau (i_{k+1})\equiv_n b_{i_k}$.
Let (clearly exists) $p<q$ are the indices that $i_p=i_q$ with minimal $p$, and then minimal $q$.

If $p>2$. This means $i_j\not\in \{ i_1,i_2\} \implies \sigma (i_j) +\tau (i_j) \equiv_n b_{i_j}$ for all $j\in \{ p,p+1,...,q\}$.
Summing the equation $\sigma (i_{k-1})+\tau (i_{k+1})\equiv_n b_{i_k}$ for $k\in \{ p,p+1,...,q-1\}$ gives us
$$\sum_{j=p-1}^{q-2}{\sigma (i_j) } +\sum_{j=p+1}^{q}{\tau (i_j)} \equiv_n\sum_{j=p}^{q-1}{b_{i_j}} \implies \sigma (i_{p-1}) +\sigma (i_p) +\tau (i_{q-1}) +\tau (i_q) \equiv_nb_{i_p}+b_{i_{q-1}}.$$Plugging $i_p=i_q$ and use $\sigma (i_p) +\tau (i_p)\equiv_n b_{i_p}$ gives us $\sigma (i_{p-1}) +\tau (i_{q-1})\equiv_n b_{i_{q-1}} \equiv_n \sigma (i_{q-1})+\tau (i_{q-1})$.
Hence, $\sigma (i_{p-1}) \equiv_n \sigma (i_{q-1})\implies i_{p-1}=i_{q-1}$, contradiction to the definition of $p,q$.

So, we've $p\in \{ 1,2\}$. Let $p'=3-p$. Define the desired permutations $\sigma'$ and $\tau'$ as follows:
$$\sigma' (i_l)=\begin{cases} 
\sigma (i_{l-1}), & \text{ if } l\in \{ 2,3,...,q-1\} \\
\sigma (i_{q-1}), & \text{ if } l=1
\end{cases} ,\tau' (i_l)= \begin{cases} 
\tau (i_{l+1}), & \text{ if } l\in \{ 2,3,...,q-1\} \\
\tau (i_{p'}), & \text{ if } l=1
\end{cases}  $$and $\sigma' (i) =\sigma (i),\tau' (i)=\tau (i)$ for the rest $i\in [n]$ that $i\not\in \{ i_1,i_2,...,i_{q-1}\}$.
Note that the reason we choose $\tau (i_{p'})$ is just to not use $\tau (i_p)=\tau (i_{(q-1)+1})$ more than one time.
This construction gives us $\sigma' (i)+\tau' (i)\equiv_n b_i$ for all $i\in [n]$ except when $i=i_1$.
But since both $\sigma'$ and $\tau'$ are permutations of $[n]$, we've $\sum_{i\in [n]}{(\sigma' (i)+\tau' (i))} \equiv_n 2\times \frac{n(n-1)}{2}\equiv_n 0\equiv_n \sum_{i\in [n]}{b_i}$.
This guarantee that $\sigma' (i) +\tau' (i)\equiv_n b_i$ when $i=i_1$ too. This prove the validity of permutations we constructed.
This post has been edited 3 times. Last edited by ThE-dArK-lOrD, Jan 16, 2018, 3:07 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathleticguyyy
3217 posts
#11
Y by
The case with $n$ prime is also resolved in this paper
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Bataw
43 posts
#13
Y by
any other solutions ?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zhaom
5124 posts
#16
Y by
:star_struck:

Plot $\left(b_k,c_k\right)$ for $k=1,2,\cdots,n$ on the coordinate plane with coordinates modulo $n$. We want to show that it is possible to choose the $n$ points plotted to have $\left\{b_1+c_1,b_2+c_2,\cdots,b_n+c_n\right\}$ be any multiset of $n$ elements $\pmod{n}$ such that sum of the elements is $0\pmod{n}$. Note that the $n$ points plotted can be any $n$ points not in the same row or column.

Instead, we will prove that we can choose $n-1$ points not in the same row or column such that the multiset $S$ of $x+y$ for all of the points $(x,y)$ can be any multiset of $n-1$ elements $\pmod{n}$. Then, we can choose the unique point not in the same row or column as the $n-1$ points to obtain $n$ points for the original statement, as the sum of the coordinates of all $n$ points is necessarily $2\cdot\left(0+1+\cdots+(n-1)\right)\equiv(n-1)n\equiv0\pmod{n}$.

We will construct the $n-1$ points in the following way.

We start with $n-1$ arbitrary points not in the same row or column. We will change the $n-1$ points in such a way that we can replace any element of $S$ by any residue $\pmod{n}$. Suppose we change the element in $S$ corresponding to a point $P$. Then, we will shift $P$ horizontally until the sum of the coordinates of $P$ is the desired value $\pmod{n}$. Now, we might have two points in the same column. We will repeatedly perform the following operation.

Note that there are exactly $n-1$ distinct rows taken up by the $n-1$ points. If the last point moved was $P$ and it is in the same column as $Q$, we will move $Q$ on the line through $Q$ with slope $-1$ until $Q$ occupies the previously empty row.

It suffices that this cannot last forever.

Claim. This operation is a reflection over a fixed line.

Proof. Suppose that this operation moves $P$ to a point $P'$, then on the next step it moves $Q$ to a point $Q'$. We see that $\overline{PP'}$ and $\overline{QQ'}$ both have slope $-1$. Now, note that $P'$ and $Q$ must be in the same row. Furthermore, after the operation moves $P$ to $P'$, the row containing $P$ must be empty, meaning that $Q$ must be moved to that row. This implies that $P$ and $Q'$ are in the same row. Therefore, we see that $PP'QQ'$ is a cyclic isosceles trapezoid and in particular the perpendicular bisectors of $\overline{PP'}$ and $\overline{QQ'}$ are the same, proving the claim.

Now, assume for the sake of contradiction that the operation lasts forever. We will label the $n-1$ points to distinguish them. Now, there are finitely many states of the $n-1$ points, so eventually the operation must loop through a cycle of states. In this cycle, start at an arbitrary state. Now, since at least $1$ point must be moved and then return back to its original position, consider the point $P$ which returns to its original position the earliest. When $P$ was moved, the next point $Q$ which was moved must have occupied the original row of $P$. However, if $P$ was moved back to its original position, then the original row of $P$ must be vacant, so $Q$ must have been moved. However, this implies that $Q$ was moved back to its original position before $P$ by the claim, a contradiction, so we are done.
Z K Y
N Quick Reply
G
H
=
a