Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

G
Topic
First Poster
Last Poster
k a June Highlights and 2025 AoPS Online Class Information
jlacosta   0
Jun 2, 2025
Congratulations to all the mathletes who competed at National MATHCOUNTS! If you missed the exciting Countdown Round, you can watch the video at this link. Are you interested in training for MATHCOUNTS or AMC 10 contests? How would you like to train for these math competitions in half the time? We have accelerated sections which meet twice per week instead of once starting on July 8th (7:30pm ET). These sections fill quickly so enroll today!

[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC 10 Problem Series[/list]
For those interested in Olympiad level training in math, computer science, physics, and chemistry, be sure to enroll in our WOOT courses before August 19th to take advantage of early bird pricing!

Summer camps are starting this 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 a transformative 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][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/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, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
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
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
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
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
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
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
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
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
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
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
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, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
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!)

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
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, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3
Wednesday, Sep 24 - Dec 17

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
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

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

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

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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!)
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
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
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
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!)
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
Monday, Jun 30 - Jul 21
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
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
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
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
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
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
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22
Friday, Oct 3 - Jan 16

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

Physics

Introduction to Physics
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Monday, Jun 23 - Dec 15
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Jun 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
polonomials
Ducksohappi   3
N 7 minutes ago by Ducksohappi
Let $P(x)$ be the real polonomial such that all roots are real and distinct. Prove that there is a rational number $r\ne 0 $ that all roots of $Q(x)=$ $P(x+r)-P(x)$ are real numbers
3 replies
Ducksohappi
Apr 10, 2025
Ducksohappi
7 minutes ago
Easy Diff NT
xToiletG   0
32 minutes ago
Prove that for every $n \geq 2$ there exists positive integers $x, y, z$ such that
$$\frac{4}{n}=\frac{1}{x}+\frac{1}{y}+\frac{1}{z}$$
0 replies
xToiletG
32 minutes ago
0 replies
Might be slightly generalizable
Rijul saini   5
N an hour ago by guptaamitu1
Source: India IMOTC Day 3 Problem 1
Let $ABC$ be an acute angled triangle with orthocenter $H$ and $AB<AC$. Let $T(\ne B,C, H)$ be any other point on the arc $\stackrel{\LARGE\frown}{BHC}$ of the circumcircle of $BHC$ and let line $BT$ intersect line $AC$ at $E(\ne A)$ and let line $CT$ intersect line $AB$ at $F(\ne A)$. Let the circumcircles of $AEF$ and $ABC$ intersect again at $X$ ($\ne A$). Let the lines $XE,XF,XT$ intersect the circumcircle of $(ABC)$ again at $P,Q,R$ ($\ne X$). Prove that the lines $AR,BC,PQ$ concur.
5 replies
Rijul saini
Yesterday at 6:39 PM
guptaamitu1
an hour ago
A function on a 2D grid
Rijul saini   1
N an hour ago by guptaamitu1
Source: India IMOTC 2025 Day 4 Problem 2
Does there exist a function $f:\{1,2,...,2025\}^2 \rightarrow \{1,2,...,2025\}$ such that:

$\bullet$ for any positive integer $i \leqslant 2025$, the numbers $f(i,1),f(i,2),...,f(i,2025)$ are all distinct, and
$\bullet$ for any positive integers $i \leqslant 2025$ and $j \leqslant 2024$, $f(f(i,j),f(i,j+1))=i$?

Proposed by Shantanu Nene
1 reply
1 viewing
Rijul saini
Yesterday at 6:46 PM
guptaamitu1
an hour ago
Cute geometry
Rijul saini   5
N an hour ago by everythingpi3141592
Source: India IMOTC Practice Test 1 Problem 3
Let scalene $\triangle ABC$ have altitudes $BE, CF,$ circumcenter $O$ and orthocenter $H$. Let $R$ be a point on line $AO$. The points $P,Q$ are on lines $AB,AC$ respectively such that $RE \perp EP$ and $RF \perp FQ$. Prove that $PQ$ is perpendicular to $RH$.

Proposed by Rijul Saini
5 replies
Rijul saini
Yesterday at 6:51 PM
everythingpi3141592
an hour ago
Orthocenters equidistant from circumcenter
Rijul saini   6
N an hour ago by guptaamitu1
Source: India IMOTC 2025 Day 1 Problem 2
In triangle $ABC$, consider points $A_1,A_2$ on line $BC$ such that $A_1,B,C,A_2$ are in that order and $A_1B=AC$ and $CA_2=AB$. Similarly consider points $B_1,B_2$ on line $AC$, and $C_1,C_2$ on line $AB$. Prove that orthocenters of triangles $A_1B_1C_1$ and $A_2B_2C_2$ are equidistant from the circumcenter of $ABC$.

Proposed by Shantanu Nene
6 replies
Rijul saini
Yesterday at 6:31 PM
guptaamitu1
an hour ago
My Unsolved Problem
ZeltaQN2008   3
N 2 hours ago by Funcshun840
Source: IDK
Let \( ABC \) be an acute triangle inscribed in its circumcircle \( (O) \), and let \( (I) \) be its incircle. Let \( K \) be the point where the $A-mixtilinear$ incircle of triangle $ABC$ touches \((O)\). Suppose line \( OI \) intersects segment \( AK \) at \( P \), and intersects line \( BC \) at \( Q \). Let the line through \( I \) perpendicular to \( BC \) intersect line \( KQ \) at \( A' \). Prove that: \[AI \parallel PA'.\]
3 replies
ZeltaQN2008
Yesterday at 1:23 PM
Funcshun840
2 hours ago
24 convex quadrilaterals
popcorn1   23
N 2 hours ago by ezpotd
Source: IMO Shortlist 2020 C2
In a regular 100-gon, 41 vertices are colored black and the remaining 59 vertices are colored white. Prove that there exist 24 convex quadrilaterals $Q_{1}, \ldots, Q_{24}$ whose corners are vertices of the 100-gon, so that
[list]
[*] the quadrilaterals $Q_{1}, \ldots, Q_{24}$ are pairwise disjoint, and
[*] every quadrilateral $Q_{i}$ has three corners of one color and one corner of the other color.
[/list]
23 replies
popcorn1
Jul 20, 2021
ezpotd
2 hours ago
Turkey TST 2015 P1
aloski1687   5
N 2 hours ago by Mathgloggers
Source: Turkey TST 2015
Let $l, m, n$ be positive integers and $p$ be prime. If $p^{2l-1}m(mn+1)^2 + m^2$ is a perfect square, prove that $m$ is also a perfect square.
5 replies
aloski1687
Apr 1, 2015
Mathgloggers
2 hours ago
Beware the degeneracies!
Rijul saini   4
N 2 hours ago by ND_
Source: India IMOTC 2025 Day 1 Problem 1
Let $a,b,c$ be real numbers satisfying $$\max \{a(b^2+c^2),b(c^2+a^2),c(a^2+b^2) \} \leqslant 2abc+1$$Prove that $$a(b^2+c^2)+b(c^2+a^2)+c(a^2+b^2) \leqslant 6abc+2$$and determine all cases of equality.

Proposed by Shantanu Nene
4 replies
Rijul saini
Yesterday at 6:30 PM
ND_
2 hours ago
2024 IMO P6
IndoMathXdZ   39
N 2 hours ago by monval
Source: 2024 IMO P6
Let $\mathbb{Q}$ be the set of rational numbers. A function $f: \mathbb{Q} \to \mathbb{Q}$ is called aquaesulian if the following property holds: for every $x,y \in \mathbb{Q}$,
\[ f(x+f(y)) = f(x) + y \quad \text{or} \quad f(f(x)+y) = x + f(y). \]Show that there exists an integer $c$ such that for any aquaesulian function $f$ there are at most $c$ different rational numbers of the form $f(r) + f(-r)$ for some rational number $r$, and find the smallest possible value of $c$.
39 replies
IndoMathXdZ
Jul 17, 2024
monval
2 hours ago
Linetown Mayor Admits Orz
Rijul saini   1
N 2 hours ago by YaoAOPS
Source: LMAO 2025 Day 1 Problem 2
Having won the elections in Linetown, Turbo the Snail has become mayor, and one of the most pressing issues he needs to work on is the road network. Linetown can be represented as a configuration of $2025$ lines
in the plane, of which no two are parallel and no three are concurrent.

There is one house in Linetown for each pairwise intersection of two lines. The $2025$ lines are used as roads by the townsfolk. In the past, the roads in Linetown used to be two-way, but this often led to residents accidentally cycling back to where they started.

Turbo wants to make each of the $2025$ roads one-way such that it is impossible for any resident to start at a house, follow the roads in the correct directions, and end up back at the original house. In how many ways can Turbo achieve this?

Proposed by Archit Manas
1 reply
Rijul saini
Yesterday at 6:59 PM
YaoAOPS
2 hours ago
Functional equation: f(xf(y)+f(x)f(y))=xf(y)+f(xy)
Behappy0918   2
N 2 hours ago by Behappy0918
Find all function $f: \mathbb{R} \to \mathbb{R}$ such that for all $x, y\in\mathbb{R}$, $$f(xf(y)+f(x)f(y))=xf(y)+f(xy)$$
2 replies
Behappy0918
Tuesday at 12:24 PM
Behappy0918
2 hours ago
Painting Beads on Necklace
amuthup   47
N 3 hours ago by ezpotd
Source: 2021 ISL C2
Let $n\ge 3$ be a fixed integer. There are $m\ge n+1$ beads on a circular necklace. You wish to paint the beads using $n$ colors, such that among any $n+1$ consecutive beads every color appears at least once. Find the largest value of $m$ for which this task is $\emph{not}$ possible.

Carl Schildkraut, USA
47 replies
amuthup
Jul 12, 2022
ezpotd
3 hours ago
IMO 2014 Problem 2
v_Enhance   60
N Apr 17, 2025 by math-olympiad-clown
Source: 0
Let $n \ge 2$ be an integer. Consider an $n \times n$ chessboard consisting of $n^2$ unit squares. A configuration of $n$ rooks on this board is peaceful if every row and every column contains exactly one rook. Find the greatest positive integer $k$ such that, for each peaceful configuration of $n$ rooks, there is a $k \times k$ square which does not contain a rook on any of its $k^2$ unit squares.
60 replies
v_Enhance
Jul 8, 2014
math-olympiad-clown
Apr 17, 2025
IMO 2014 Problem 2
G H J
Source: 0
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6882 posts
#1 • 35 Y
Y by Amir Hossein, CatalinBordea, Kunihiko_Chikaya, narutomath96, Davi-8191, IMO2017BR, Tawan, Wizard_32, Combi123, MathBoy23, mathleticguyyy, ApraTrip, mathematicsy, donotoven, megarnie, thedragon01, HamstPan38825, sleepypuppy, Mogmog8, Adventure10, Mango247, Sedro, Alex-131, kiyoras_2001, and 11 other users
Let $n \ge 2$ be an integer. Consider an $n \times n$ chessboard consisting of $n^2$ unit squares. A configuration of $n$ rooks on this board is peaceful if every row and every column contains exactly one rook. Find the greatest positive integer $k$ such that, for each peaceful configuration of $n$ rooks, there is a $k \times k$ square which does not contain a rook on any of its $k^2$ unit squares.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SCP
1502 posts
#2 • 17 Y
Y by chaotic_iak, Amir Hossein, Ygg, hoou8547, Tawan, Siddharth03, Pascal96, megarnie, Adventure10, Mango247, and 7 other users
Let $n=k^2+r$ where $0< r \le 2k+1$.
We will prove this $k$ will be that one, we want.

Look to a rook in the uppermost row.
Select $k$ consecutive columns which contain the previous rook in the first row.

Now we can divide these columns in $k$ $k*k$ squares and a $k*r$ block above.

Because there are only $k-1$ rooks yet to place in the $k$ $k*k$ squares, there is such a square empty.
Hence our searched $k$ is at least this value.


Now we prove there can always be a peaceful configuration with equality:

We uses the coordinates of the latices from $(0,0)$ to $(n-1,n-1)$
Place a rook in the origin and in each next column we place a rook $k+1$ higher than the column before until we can't do it anymore.
Now, in the next column we place a rook in row with index $1$ ($y=1$) and again going to the right by placing a rook $k$ higher each time.

Each time we have to finish as we can't go $k$ higher, we place it in the smallest row yet attainable and continue the same process.

It is easy to see we made a peaceful configuration.

Assume there is a $(k+1)*(k+1)$square without a rook.
Looking to the full $k+1$ columns ( a $(k+1)*n$block) of the square, we see except once the difference between consecutive rooks is $k+1$ and hence there isn't a gap of more than $k+1$.
As there is a rook in the uppermost and lowermost $(k+1)*(k+1)$square, the assumption leads to a contradiction.
This post has been edited 1 time. Last edited by SCP, Jul 8, 2014, 1:14 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Fedor Petrov
520 posts
#3 • 17 Y
Y by Amir Hossein, narutomath96, mgalushka, MSTang, Tawan, megarnie, Acrylic2005, Adventure10, Mango247, and 8 other users
If $m^2<n\leq (m+1)^2$, then $k=m$. In other words, $k=[\sqrt{n-1}]$.

If $n=m^2+1$, then without loss of generality there is no rook in right lower corner. We take lower row, right column and $m^2$ squares $m\times m$ disjoint from them and from each other. Totally $m^2+2$ sets, by pigeonhole principle one of them does not contain a rook, and it is a square. If $n>m^2+1$, remove last row and last column, add a rook if necessary and reduce the problem to $n-1$.

If $n=m^2$, then enumerate rows and columns from 0 to $m^2-1$ and put rooks with coordinates $(ma+b,mb+a)$ for $0\leq a,b\leq m-1$. Straightforward check shows that there is no empty $m\times m$ square. Example for $n-1$ without empty $m\times m$ square is obtained from the example for $m\times m$ as above: remove last row and last column and add rook if necessary.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
manuel153
324 posts
#4 • 13 Y
Y by Amir Hossein, narutomath96, Tawan, megarnie, Bumfuzzle, Adventure10, and 7 other users
For $n=q^2$ the largest such square has side length $k(n)\le q$ for the following configuration:

Place rooks on the following squares:
$(1,1)$, $(2,q+1)$, $(3,2q+1)$, $\ldots$, $(q,(q-1)q+1)$
$(q+1,2)$, $(q+2,q+2)$, $\ldots$, $(2q,(q-1)q+2)$

$\ldots$

$\ldots$

$((q-1)q+1,q)$, $((q-1)q+2,2q)$, $\ldots$ $(q-1)q+q,q^2)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_explorer
583 posts
#5 • 46 Y
Y by manuel153, Amir Hossein, mrjackass, CatalinBordea, droid347, infiniteturtle, swamih, narutomath96, emiliorosado, codyj, DrMath, TYERI, khalilmiri, GGPiku, Tawan, A_Math_Lover, SecondWind, Booper, opptoinfinity, khina, Combi123, ayan_mathematics_king, parola, Siddharth03, hsiangshen, Pascal96, phoenixfire, megarnie, asdf334, sleepypuppy, Ibrahim_K, Schur-Schwartz, Adventure10, Elainedelia, sabkx, amirhsz, Sedro, EpicBird08, HuYuanzhi, and 7 other users
A picture is worth a thousand words:
http://i.minus.com/jNAGTcjYxQJHh.png

edit: trying to make the image show up
This post has been edited 1 time. Last edited by math_explorer, Jul 6, 2015, 1:13 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
codyj
723 posts
#6 • 10 Y
Y by Abubakir, Bumfuzzle, Adventure10, Mango247, and 6 other users
Let this maximum be $f(n)$. It's obvious that $f(n)$ is nondecreasing.

For $n=p^2$, we have $f(n)<p$ (I omit my counterexample for redundancy's sake). Now we show that there exists a $p-1\times p-1$ square in the board. Assume for the sake of contradiction that in each $p-1\times p-1$ square there is at least one rook. There are $(p(p-1)+2)^2$ such squares, counting each rook at most $(p-1)^2$ times. Therefore, there must be at least $\frac{(p(p-1)+2)^2}{(p-1)^2}=\left(p+\frac2{p-1}\right)^2>p^2=n$ rooks, a contradiction. Therefore, $f(p^2)=p-1$

For $n=p^2+1$, we may use the same logic. Since $f((p+1)^2)=p$, we have $f(p^2+1)\le p$; we assert that $f(p^2+1)=p$. Again, assume for the sake of contradiction that in each $p\times p$ square there is at least one rook. Then there are $p^2+2$ disjoint sets of squares and $p^2+1$ rooks, so the pigeonhole principle tells us that there exists an unoccupied square. Therefore, $f(p^2+1)=p$.

Since $f(p^2+1)=f((p+1)^2)=p$ and $f(n)$ is nondecreasing, we have $f(n)=p$ for all $p^2+1\le n\le(p+1)^2$. Therefore, $f(n)=\left\lfloor\sqrt{n-1}\right\rfloor$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#7 • 15 Y
Y by Tawan, opptoinfinity, megarnie, Adventure10, and 11 other users
The claim is this largest number $k$ is $\boxed{k=\lfloor \sqrt{n-1}\rfloor}$, thus $k^2 < n \leq (k+1)^2$. Label the rows and columns with the numbers from $0$ to $n-1$.
Let $i$ be the label of the row containing a rook on column $n-1$, and let $I$ be any group of $k$ contiguous labels, including $i$. There exist $k$ disjoint $k\times k$ squares, made by the rows in $I$ and the columns in $J=\{0,1,\ldots, k^2-1\}$, and only at most $k-1$ rooks that may belong to them, hence one of these squares contains no rook.
A counter-model for $n=m^2$ is given by rooks on positions $(mi+j,mj+i)$ for $0\leq i,j\leq m-1$. An immediate check shows there is no $m\times m$ square empty of rooks. And for any $n'\times n'$ sub-table with $m\leq n'< n$, a fortiori there exists no $m\times m$ square empty of rooks (since the $n'\times n'$ table may always be completed, need be, in order to become peaceful).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#8 • 12 Y
Y by Tawan, opptoinfinity, megarnie, Adventure10, and 8 other users
codyj wrote:
For $n=p^2+1$, we may use the same logic. Since $f((p+1)^2)=p$, we have $f(p^2+1)\le p$; we assert that $f(p^2+1)=p$. Again, assume for the sake of contradiction that in each $p\times p$ square there is at least one rook. Then there are $p^2+2$ disjoint sets of squares and $p^2+1$ rooks, so the pigeonhole principle tells us that there exists an unoccupied square. Therefore, $f(p^2+1)=p$.
There are no $p^2+2$ disjoint $p\times p$ squares, but only $p^2$. You have to do what Fedor Petrov did, and also consider a border row and a border column (with the corner unoccupied by a rook), before applying the pigeonhole principle.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
algebra1337
183 posts
#9 • 11 Y
Y by Tawan, megarnie, Adventure10, Mango247, and 7 other users
My solution!

Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
manuel153
324 posts
#10 • 7 Y
Y by Tawan, megarnie, Adventure10, and 4 other users
I like this problem, a perfect competition problem. I quickly settled the cases $n=2,3,4$ with $k=1$ and $n=5,6,7$ with $k=2$. For ten minutes I then tried to prove my working hypothesis $k=\lfloor \frac{n+1}{3}\rfloor$, which lead nowehere. Then I returned to the case $n=8$ and suddenly understood the square root structure. Everybody can solve this problem by working and a little bit of guessing.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Lord.of.AMC
1210 posts
#11 • 11 Y
Y by Tawan, megarnie, Adventure10, Mango247, and 7 other users
math_explorer wrote:
A picture is worth a thousand words:
Invalid image file

But note that on the IMO, one point was deducted for not proving the construction, and another point was deducted for not proving the answer is monotonic (i.e. construction for non-squares).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathuz
1525 posts
#12 • 10 Y
Y by Tawan, megarnie, Adventure10, Mango247, and 6 other users
it is nice problem!
I think the key of the problem will be: $n=m^2$ or we can say $n=m^2+r$ with $0 \le r\le 2m+1$.

For example:
for $n=m^2$ $ \Rightarrow $ $k=m-1$ and for $n=(m+1)^2$ $ \Rightarrow $ $k=m$ (it's clear and easy).
Other hand, we have the $k$ be nondecreasing for $n$. So for $n=m^2+r$ with $1 \le r\le 2m$ we get that $k=m-1$ or $k=m$. :lol:
We need to proof for $n=m^2+1$ the $k$ will be $m$ and after that we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AnonymousBunny
339 posts
#13 • 10 Y
Y by Tawan, Adventure10, Mango247, and 7 other users
Let's call a square empty if it has no rooks inside it.

Let $n= j^2+k,$ where $1 \leq k \leq 2j+1.$

I claim that a $n \times n$ chessboard must contain an empty $j \times j$ square. Assume the contrary. Consider any $(j^2) \times j$ horizontal subset of the chessboard which shares the left-most side with the main chessboard and tile it into $j$ disjoint $j \times j$ squares. Each of these squares must have a rook inside them, so there must be at least $j$ rooks inside this subset. Tile the whole chessboard with these subsets and note that each of them must have at least $j$ rooks. So if we consider the $j^2 \times j^2$ subset which shares the top-left corner with the original chessboard, it must have $j^2$ rooks which occupy $j^2$ rows and columns. The remaining rooks must be located on the $k \times k$ subset sharing the bottom-right corner of the original chessboard. Considering the $j^2 \times j^2$ subset sharing the top-right corner of the original chessboard, we see that the remaining rooks must be located on the $k \times k$ subset sharing the bottom-left corner of the original chessboard. There is no overlap between these subsets, which implies some of the remaining rooks must be in the same row, contradiction.

Now, we show that there exists a peaceful configuration on a $(j+1) \times (j+1)$ chessboard which has no $(j+1) \times (j+1)$ empty square. Tile the chessboard into $(j+1)^2$ $(j+1) \times (j+1)$ disjoint tiles and place the rooks in the tiles such that in any $(j+1)^2 \times (j+1)$ horizontal subset, the rooks are in different rows. More simply, place the origin at the bottom right corner and place rooks on the points $\{((j+1)x+y, (j+1)y+x)\}_{1 \leq x,y \leq m+1}.$ Drawing a diagram makes this construction obvious.

In conclusion, the answer is $\left \lfloor \sqrt{n-1} \right \rfloor.$
This post has been edited 1 time. Last edited by AnonymousBunny, Apr 16, 2017, 3:13 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MarcosBH
1 post
#14 • 10 Y
Y by Ygg, Tawan, megarnie, Adventure10, Mango247, and 5 other users
Let $n=k^2 + r$ where $0<r\leq 2k+1$. Suppose that in every $k\times k$ there is a rook. Observe first $k$ rows. We have $k$ disjoint $k\times k$ blocks where $r$ columns are not covered on $k+1$ ways. This means (since in every such block there is a rook) that we have $r(k+1)$ empty columns. These columns must stay empty until last $r$ rows where they can't be covered with rooks since $r(k+1)>r$. Hence, there will always be a $k\times k$ block without a rook.

To show that $k$ is the answer we will construct a peaceful configuration for $n=(k+1)^2$ where in every $(k+1)\times(k+1)$ block there is a rook. This will be enough since the asked value is non-decreasing.
That configuration is:
\[
(1,1) \& (2, k+2) \& (3, 2k+3) \& \dots (k+1, k^2 + k+1) \\
(k+2, 2) \& (k+3, k+3) \& ( k+4, 2k+4) \dots (2k+2, k^2 + k+2) \\
\vdots \\
(k^2+ k+1, k+1) \& (k^2+k+2, 2k+2) \dots (k^2+2k+1, k^2+2k+1)
\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_explorer
583 posts
#15 • 14 Y
Y by DrMath, Tawan, megarnie, ApraTrip, Adventure10, Mango247, Elainedelia, and 7 other users
Lord.of.AMC wrote:
But note that on the IMO, one point was deducted for not proving the construction, and another point was deducted for not proving the answer is monotonic (i.e. construction for non-squares).
hidden for size

Seriously though, I primarily intended these pictures to be a supplement to the many solutions in words above and below it. I didn't see much point in adding any more solutions when they were all essentially the same. Sorry if it wasn't clear.
Z K Y
G
H
=
a