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
May 1, 2025
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
May 1, 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
Oh my god
EeEeRUT   1
N 4 minutes ago by ItzsleepyXD
Source: TMO 2025 P5
In a class, there are $n \geqslant 3$ students and a teacher with $M$ marbles. The teacher then play a Marble distribution according to the following rules. At the start, each student receives at least $1$ marbles from the teacher. Then, the teacher chooses a student , who has never been chosen before, such that the number of marbles that he owns in a multiple of $2(n-1)$. That chosen student then equally distribute half of his marbles to $n-1$ other students. The same goes on until the teacher is not able to choose anymore student.

Find all integer $M$, such that for some initial numbers of marbles that the students receive, the teacher can choose all the student(according to the rule above), so that each student receiving equal amount of marbles at the end.
1 reply
EeEeRUT
an hour ago
ItzsleepyXD
4 minutes ago
Find all integers satisfying this equation
Sadigly   1
N 14 minutes ago by aaravdodhia
Source: Azerbaijan NMO 2019
Find all $x;y\in\mathbb{Z}$ satisfying the following condition: $$x^3=y^4+9x^2$$
1 reply
Sadigly
Sunday at 8:30 PM
aaravdodhia
14 minutes ago
A geometry problem involving 2 circles
Ujiandsd   1
N 19 minutes ago by Ujiandsd
Source: L
Point M is the midpoint of side BC of triangle ABC. The length of the radius of the outer circle of triangle ABM, triangle ACM
is 5 and 7 respectively find the distance between the center of their outer circles
1 reply
Ujiandsd
May 11, 2025
Ujiandsd
19 minutes ago
Inspired by lbh_qys.
sqing   4
N 24 minutes ago by sqing
Source: Own
Let $ a,b>0   $ . Prove that
$$ \frac{a}{a^2+a +b+1}+ \frac{b}{b^2+a +b+1}  \leq  \frac{1}{2} $$$$ \frac{a}{a^2+ab+a+b+1}+ \frac{b}{b^2+ab+a+b+1} \leq   \sqrt 2-1  $$$$\frac{a}{a^2+ab+a+1}+ \frac{b}{b^2+ab+b+1} \leq  \frac{2(2\sqrt 2-1)}{7} $$$$\frac{a}{a^2+ab+b+1}+ \frac{b}{b^2+ab+a+1} \leq  \frac{2(2\sqrt 2-1)}{7} $$
4 replies
sqing
4 hours ago
sqing
24 minutes ago
Thailand MO 2025 P2
Kaimiaku   0
31 minutes ago
A school sent students to compete in an academic olympiad in $11$ differents subjects, each consist of $5$ students. Given that for any $2$ different subjects, there exists a student compete in both subjects. Prove that there exists a student who compete in at least $4$ different subjects.
0 replies
+1 w
Kaimiaku
31 minutes ago
0 replies
Thailand MO 2025 P3
Kaimiaku   2
N 34 minutes ago by lbh_qys
Let $a,b,c,x,y,z$ be positive real numbers such that $ay+bz+cx \le az+bx+cy$. Prove that $$ \frac{xy}{ax+bx+cy}+\frac{yz}{by+cy+az}+\frac{zx}{cz+az+bx} \le \frac{x+y+z}{a+b+c}$$
2 replies
Kaimiaku
an hour ago
lbh_qys
34 minutes ago
Burapha integer
EeEeRUT   1
N an hour ago by ItzsleepyXD
Source: TMO 2025 P1
For each positive integer $m$, denote by $d(m)$ the number of positive divisors of $m$. We say that a positive integer $n$ is Burapha integer if it satisfy the following condition
[list]
[*] $d(n)$ is an odd integer.
[*] $d(k) \leqslant d(\ell)$ holds for every positive divisor $k, \ell$ of $n$, such that $k < \ell$
[/list]
Find all Burapha integer.
1 reply
EeEeRUT
an hour ago
ItzsleepyXD
an hour ago
Algebra inequalities
TUAN2k8   1
N an hour ago by lbh_qys
Source: Own
Is that true?
Let $a_1,a_2,...,a_n$ be real numbers such that $0 \leq a_i \leq 1$ for all $1 \leq i \leq n$.
Prove that: $\sum_{1 \leq i<j \leq n} (a_i-a_j)^2 \leq \frac{n}{2}$.
1 reply
TUAN2k8
an hour ago
lbh_qys
an hour ago
Quadrilateral with Congruent Diagonals
v_Enhance   37
N an hour ago by Ilikeminecraft
Source: USA TSTST 2012, Problem 2
Let $ABCD$ be a quadrilateral with $AC = BD$. Diagonals $AC$ and $BD$ meet at $P$. Let $\omega_1$ and $O_1$ denote the circumcircle and the circumcenter of triangle $ABP$. Let $\omega_2$ and $O_2$ denote the circumcircle and circumcenter of triangle $CDP$. Segment $BC$ meets $\omega_1$ and $\omega_2$ again at $S$ and $T$ (other than $B$ and $C$), respectively. Let $M$ and $N$ be the midpoints of minor arcs $\widehat {SP}$ (not including $B$) and $\widehat {TP}$ (not including $C$). Prove that $MN \parallel O_1O_2$.
37 replies
v_Enhance
Jul 19, 2012
Ilikeminecraft
an hour ago
geometry
EeEeRUT   1
N an hour ago by ItzsleepyXD
Source: TMO 2025
Let $D,E$ and $F$ be touch points of the incenter of $\triangle ABC$ at $BC, CA$ and $AB$, respectively. Let $P,Q$ and $R$ be the circumcenter of triangles $AFE, BDF$ and $CED$, respectively. Show that $DP, EQ$ and $FR$ concurrent.
1 reply
EeEeRUT
an hour ago
ItzsleepyXD
an hour ago
Spanish Mathematical Olympiad 2002, Problem 1
OmicronGamma   3
N an hour ago by NicoN9
Source: Spanish Mathematical Olympiad 2002
Find all the polynomials $P(t)$ of one variable that fullfill the following for all real numbers $x$ and $y$:
$P(x^2-y^2) = P(x+y)P(x-y)$.
3 replies
OmicronGamma
Jun 2, 2017
NicoN9
an hour ago
Additive set with special property
the_universe6626   1
N 2 hours ago by jasperE3
Source: Janson MO 1 P2
Let $S$ be a nonempty set of positive integers such that:
$\bullet$ if $m,n\in S$ then $m+n\in S$.
$\bullet$ for any prime $p$, there exists $x\in S$ such that $p\nmid x$.
Prove that the set of all positive integers not in $S$ is finite.

(Proposed by cknori)
1 reply
the_universe6626
Feb 21, 2025
jasperE3
2 hours ago
ISI UGB 2025 P4
SomeonecoolLovesMaths   8
N 2 hours ago by chakrabortyahan
Source: ISI UGB 2025 P4
Let $S^1 = \{ z \in \mathbb{C} \mid |z| =1 \}$ be the unit circle in the complex plane. Let $f \colon S^1 \longrightarrow S^2$ be the map given by $f(z) = z^2$. We define $f^{(1)} \colon = f$ and $f^{(k+1)} \colon = f \circ f^{(k)}$ for $k \geq 1$. The smallest positive integer $n$ such that $f^{(n)}(z) = z$ is called the period of $z$. Determine the total number of points in $S^1$ of period $2025$.
(Hint : $2025 = 3^4 \times 5^2$)
8 replies
SomeonecoolLovesMaths
Sunday at 11:24 AM
chakrabortyahan
2 hours ago
So Many Terms
oVlad   7
N 3 hours ago by NuMBeRaToRiC
Source: KöMaL A. 765
Find all functions $f:\mathbb{R}\to\mathbb{R}$ which satisfy the following equality for all $x,y\in\mathbb{R}$ \[f(x)f(y)-f(x-1)-f(y+1)=f(xy)+2x-2y-4.\]Proposed by Dániel Dobák, Budapest
7 replies
oVlad
Mar 20, 2022
NuMBeRaToRiC
3 hours ago
NEPAL TST DAY 2 PROBLEM 2
Tony_stark0094   6
N Apr 16, 2025 by cursed_tangent1434
Kritesh manages traffic on a $45 \times 45$ grid consisting of 2025 unit squares. Within each unit square is a car, facing either up, down, left, or right. If the square in front of a car in the direction it is facing is empty, it can choose to move forward. Each car wishes to exit the $45 \times 45$ grid.

Kritesh realizes that it may not always be possible for all the cars to leave the grid. Therefore, before the process begins, he will remove $k$ cars from the $45 \times 45$ grid in such a way that it becomes possible for all the remaining cars to eventually exit the grid.

What is the minimum value of $k$ that guarantees that Kritesh's job is possible?

$\textbf{Proposed by Shining Sun. USA}$
6 replies
Tony_stark0094
Apr 12, 2025
cursed_tangent1434
Apr 16, 2025
NEPAL TST DAY 2 PROBLEM 2
G H J
G H BBookmark kLocked kLocked NReply
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tony_stark0094
69 posts
#1 • 1 Y
Y by cubres
Kritesh manages traffic on a $45 \times 45$ grid consisting of 2025 unit squares. Within each unit square is a car, facing either up, down, left, or right. If the square in front of a car in the direction it is facing is empty, it can choose to move forward. Each car wishes to exit the $45 \times 45$ grid.

Kritesh realizes that it may not always be possible for all the cars to leave the grid. Therefore, before the process begins, he will remove $k$ cars from the $45 \times 45$ grid in such a way that it becomes possible for all the remaining cars to eventually exit the grid.

What is the minimum value of $k$ that guarantees that Kritesh's job is possible?

$\textbf{Proposed by Shining Sun. USA}$
This post has been edited 2 times. Last edited by Tony_stark0094, Apr 13, 2025, 3:12 AM
Reason: typo
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sansgankrsngupta
143 posts
#2 • 1 Y
Y by cubres
OG! I claim $k= 484$ is the answer:
Proof: I am lazy to write but its pretty natural.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ND_
52 posts
#3 • 1 Y
Y by cubres
$k= 1012$ is the answer. To prove that it is minimal, consider the situation where cars in left 22 rows face right and right 22 rows face left, and top 22 cars in the middle row face down.

To prove that it suffices, we remove either all the left facing cars or right facing cars, whichever is less. Similarly, for up and down. So, we remove less than half of the cars, or less than 1012 cars. WLOG let us remove the up and right cars. We can clear the cars facing down in the bottom row first, then the left facing ones in the bottom row. So we can clear each row sequentially and hence clear the grid.
This post has been edited 2 times. Last edited by ND_, Apr 13, 2025, 3:44 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
User_two
8 posts
#4 • 1 Y
Y by cubres
ND_ wrote:
$k= 990$ is the answer. To prove that it is minimal, consider the situation where cars in left 22 rows face right and right 23 rows face left.

Apparently, it is k=1012.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathdreams
1472 posts
#5 • 2 Y
Y by cubres, khan.academy
My problem!

Grid combo is the best. :showoff:

Solution
This post has been edited 2 times. Last edited by Mathdreams, Apr 12, 2025, 8:40 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ThatApollo777
73 posts
#6
Y by
I am skill issue, why did this take 2 hours.

The answer is $\lfloor \frac{2025}{2} \rfloor = 1012$.

Part 1: Bounds can be achieved.
Pf: Fill the upper $1012 \cdot 2025$ with cars pointing down. Fill the lower $1012 \cdot 2025$ with cars pointing up. Fill the rightmost $1013$ cells of the remaining row with cars pointing left and the remaining $1012$ with cars pointing right. After removing the cars, every column must have all up cars or all down cars removed and the middle row must have all left or all right cars removed, doing a simple count this gives at least $1012$ cars must be removed.

Part 2: We can always succeed in $1012$ removals.
Pf: Remove either all cars that point (right or up) or (left or down), whichever is less cars. These will be less than $1012.5$. WLOG assume these are are the right or up cars. Now let any car that can move, move in any order. Since the distance of every car from the edge it will leave from strictly decreases this process must terminate. If any cars are left after that, take the car which is on cell with minimum value of sum of coordinates. Since it points left or down, it must be able to move contradicting the process has terminated.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
632 posts
#7 • 1 Y
Y by khan.academy
Extremely quick and easy. The answer is $\frac{n^2-1}{2}$ for any $n \times n$ grid for odd $n$. We start off by providing a construction.

In the rightmost column, park cars facing down and up alternately and it the other columns park cars along each row facing left and right alternately. In the rightmost column, we cannot leave any two cars facing opposite directions as they cannot reach the end of the board without bumping into each other, so atleast $\frac{n-1}{2}$ cars must be removed. In each row, no cars facing opposite directions can be remaining as they bump into each other. Thus, in each row either all the right-facing or left-facing cars must be removed, mandating a removal of at least
\[\frac{n(n-1)}{2} + \frac{n-1}{2} = \frac{n^2-1}{2}\]cars as desired.

For the bound, note that if the board only has one of right-facing and left-facing and one of up-facing and down-facing cars, they may eventually all leave the board. This is because, if WLOG only right-facing and down-facing cars are left, starting from the rightmost column, the right-facing cars of each row exit the board, leaving space for the down-facing cars to leave and continue until all the cars leave the board. Further, let $U$ , $D$ , $L$ and $R$ denote the number of cars facing each direction. Since,
\[(U+L)+(U+R)+(D+R)+(D+L) = 2n^2\]we have that,
\[\min\{U+L, U+R , D+R , D+L\} \le \left \lfloor \frac{2n^2}{4}  \right \rfloor = \frac{n^2-1}{2}\]which finishes the proof of the bound and we are done.
Z K Y
N Quick Reply
G
H
=
a