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

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. 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 events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/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, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Apr 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
For positive integers \( a, b, c \), find all possible positive integer values o
Jackson0423   1
N 6 minutes ago by Rayanelba
For positive integers \( a, b, c \), find all possible positive integer values of
\[
\frac{a}{b} + \frac{b}{c} + \frac{c}{a}.
\]
1 reply
Jackson0423
an hour ago
Rayanelba
6 minutes ago
Dividing Pairs
Jackson0423   1
N 9 minutes ago by ND_
Source: Own
Let \( a \) and \( b \) be positive integers.
Suppose that \( a \) is a divisor of \( b^2 + 1 \) and \( b \) is a divisor of \( a^2 + 1 \).
Find all such pairs \( (a, b) \).
1 reply
+1 w
Jackson0423
an hour ago
ND_
9 minutes ago
Number Theory Chain!
JetFire008   49
N 11 minutes ago by r7di048hd3wwd3o3w58q
I will post a question and someone has to answer it. Then they have to post a question and someone else will answer it and so on. We can only post questions related to Number Theory and each problem should be more difficult than the previous. Let's start!

Question 1
49 replies
1 viewing
JetFire008
Apr 7, 2025
r7di048hd3wwd3o3w58q
11 minutes ago
Inspired by my own results
sqing   1
N 11 minutes ago by sqing
Source: Own
Let $ a,b\geq 0 $ and $  a^2-ab+b^2=1$ . Prove that
$$ (a+b-ab)\left( \frac{a}{b+1} + \frac{b}{a+1}\right)\leq  \frac{13}{12} $$$$ (a+b+ab)\left( \frac{a}{b+1} + \frac{b}{a+1}\right)\leq 3$$$$ (a+b)\left( \frac{a}{b+1} + \frac{b}{a+1}+ab\right)\leq 4$$
1 reply
1 viewing
sqing
12 minutes ago
sqing
11 minutes ago
An upper bound for Iran TST 1996
Nguyenhuyen_AG   0
34 minutes ago
Let $a, \ b, \ c$ be the side lengths of a triangle. Prove that
\[\frac{ab+bc+ca}{(a+b)^2} + \frac{ab+bc+ca}{(b+c)^2} + \frac{ab+bc+ca}{(c+a)^2} \leqslant \frac{85}{36}.\]
0 replies
Nguyenhuyen_AG
34 minutes ago
0 replies
Sharygin 2025 CR P2
Gengar_in_Galar   5
N 36 minutes ago by NicoN9
Source: Sharygin 2025
Four points on the plane are not concyclic, and any three of them are not collinear. Prove that there exists a point $Z$ such that the reflection of each of these four points about $Z$ lies on the circle passing through three remaining points.
Proposed by:A Kuznetsov
5 replies
Gengar_in_Galar
Mar 10, 2025
NicoN9
36 minutes ago
Kinda lookimg Like AM-GM
Atillaa   1
N an hour ago by Natrium
Show that for all positive real numbers \( a, b, c \), the following inequality always holds:
\[
\frac{ab}{b+1} + \frac{bc}{c+1} + \frac{ca}{a+1} \geq \frac{3abc}{1 + abc}
\]
1 reply
Atillaa
2 hours ago
Natrium
an hour ago
best source for inequalitys
Namisgood   1
N an hour ago by Jackson0423
I need some help do I am beginner and have completed Number theory and almost all of algebra (except inequalitys) can anybody suggest a book or resource from where I can study inequalitys
1 reply
Namisgood
an hour ago
Jackson0423
an hour ago
Find the Maximum
Jackson0423   0
an hour ago
Source: Own.
Let \( ABC \) be a triangle with \( AB \leq AC \) and \( \angle BAC = 60^\circ \).
A point \( X \) inside triangle \( ABC \) satisfies the following conditions:
\[
XA^2 + BC^2 \leq XC^2 + AB^2 \leq XB^2 + AC^2.
\]Find the maximum value of \( m \) such that
\[
\frac{XA}{AC} \geq m.
\]
0 replies
Jackson0423
an hour ago
0 replies
Geometry with parallel lines.
falantrng   33
N an hour ago by L13832
Source: RMM 2018,D1 P1
Let $ABCD$ be a cyclic quadrilateral an let $P$ be a point on the side $AB.$ The diagonals $AC$ meets the segments $DP$ at $Q.$ The line through $P$ parallel to $CD$ mmets the extension of the side $CB$ beyond $B$ at $K.$ The line through $Q$ parallel to $BD$ meets the extension of the side $CB$ beyond $B$ at $L.$ Prove that the circumcircles of the triangles $BKP$ and $CLQ$ are tangent .
33 replies
falantrng
Feb 24, 2018
L13832
an hour ago
Something nice
KhuongTrang   25
N 2 hours ago by KhuongTrang
Source: own
Problem. Given $a,b,c$ be non-negative real numbers such that $ab+bc+ca=1.$ Prove that

$$\sqrt{a+1}+\sqrt{b+1}+\sqrt{c+1}\le 1+2\sqrt{a+b+c+abc}.$$
25 replies
KhuongTrang
Nov 1, 2023
KhuongTrang
2 hours ago
Lord of the files
AndreiVila   2
N 2 hours ago by Rohit-2006
Source: Mathematical Minds 2024 P3
On the screen of a computer there is an $2^n\times 2^n$ board. On each cell of the main diagonal there is a file. At each step, we may select some files and move them to the left, on their respective rows, by the same distance. What is the minimum number of necessary moves in order to put all files on the first column?

Proposed by Vlad Spătaru
2 replies
AndreiVila
Sep 29, 2024
Rohit-2006
2 hours ago
Inspired by old results
sqing   6
N 2 hours ago by sqing
Source: Own
Let $ a,b\geq 0 $ and $  a^2+ab+b^2=2$ . Prove that
$$ (a+b-ab)\left( \frac{1}{a+1} + \frac{1}{b+1}\right)\leq 2 $$$$ (a+b-ab)\left( \frac{a}{b+1} + \frac{2b}{a+2}\right)\leq 2 $$$$ (a+b-ab)\left( \frac{a}{b+1} + \frac{2b}{a+1}\right)\leq 4$$Let $ a,b  $ be reals such that $  a^2+b^2=2$ . Prove that
$$ (a+b)\left( \frac{1}{a+1} + \frac{1}{b+1}\right)= 2 $$$$ (a+b)\left( \frac{a}{b+1} + \frac{b}{a+1}\right)=2 $$
6 replies
sqing
Today at 2:42 AM
sqing
2 hours ago
An upper bound for Viet Nam TST 2005
Nguyenhuyen_AG   0
2 hours ago
Let $a, \ b, \ c$ be the side lengths of a triangle. Prove that
\[\frac{a^3}{(a+b)^3}+\frac{b^3}{(b+c)^3}+\frac{c^3}{(c+a)^3} \leqslant \frac{9}{8}.\]Viet Nam TST 2005
0 replies
Nguyenhuyen_AG
2 hours ago
0 replies
Table with cells
RagvaloD   8
N Apr 5, 2025 by Radin_
Source: All Russian Olympiad 2017,Day2,grade 9,P8
Every cell of $100\times 100$ table is colored black or white. Every cell on table border is black. It is known, that in every $2\times 2$ square there are cells of two colors. Prove, that exist $2\times 2$ square that is colored in chess order.
8 replies
RagvaloD
May 3, 2017
Radin_
Apr 5, 2025
Table with cells
G H J
G H BBookmark kLocked kLocked NReply
Source: All Russian Olympiad 2017,Day2,grade 9,P8
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
RagvaloD
4900 posts
#1 • 8 Y
Y by Davi-8191, Tawan, vsathiam, mijail, itslumi, HWenslawski, Adventure10, Mango247
Every cell of $100\times 100$ table is colored black or white. Every cell on table border is black. It is known, that in every $2\times 2$ square there are cells of two colors. Prove, that exist $2\times 2$ square that is colored in chess order.
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
#2 • 3 Y
Y by Tawan, HWenslawski, Adventure10
The solution to this problem is basically identical to what I posted in this topic: http://artofproblemsolving.com/community/c6h598767p3556556
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math90
1476 posts
#3 • 16 Y
Y by laegolas, DreamComeTrue, roughlife, Tawan, lifeisgood03, vsathiam, Delray, Wizard_32, Taha1381, meagain, mijail, guptaamitu1, Pitagar, Adventure10, Mango247, math_comb01
Solution
This post has been edited 2 times. Last edited by math90, May 4, 2017, 1:44 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
phymaths
264 posts
#4 • 2 Y
Y by Davi-8191, Adventure10
Beautiful Problem! :)

Call a $2\times 2$ square $ good$ if it follows chessboard colouring and $bad$ otherwise.
We assume on the contrary that there is no such $good$ square with Squares in chess order.
Let us consider number of $black-white$ pairs occurring in adjacent cells.

Observe any $bad$ square has $2$ such pairs.

Double Counting Number of Such pairs finishes the problem.

Therefore we have $99^2\times 2 /2$ such pairs since each pair appears in $2$ bad squares.

On the other hand, Notice that Every row and column has to give an Even number of pairs.Since the first and last square in Each row and column have the same colour that is Black.(Borders give $0$ pairs).Thus we have an even number of Pairs.

$99^2 $being odd gives us the desired contradiction !

Remark: It works for any even $n$.
This post has been edited 1 time. Last edited by phymaths, Sep 10, 2017, 6:43 AM
Reason: Idk
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Delray
348 posts
#5 • 2 Y
Y by vsathiam, Adventure10
Nothing new here
This post has been edited 2 times. Last edited by Delray, Jan 10, 2018, 5:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HKIS200543
380 posts
#6 • 1 Y
Y by Mango247
Same solution as posted earlier.

Suppose for the sake of contradiction that there is no $2 \times 2$ square coloured in chess order. Call n unit segment a \textit{border} if it is in between two cells of opposite colour. In each $2 \times 2$ square there are precisely two border segments. (We only count internally). Each segment is counted in two distinct $2 \times 2$ squares, so summing over all the $99^2$ $2 \times 2$ squares gives that there are $99^2$ border segments.

However, because all the cells are coloured black on the table's border, it follows that each row and column has an even number of border segments. $99^2$ is odd, so contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
554183
484 posts
#7 • 1 Y
Y by itslumi
........
This post has been edited 10 times. Last edited by 554183, Aug 15, 2022, 7:27 PM
Reason: 10 times the charm
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
guptaamitu1
656 posts
#8 • 1 Y
Y by Rotten_
Here's a different (but longer) solution.
Call a coloring with all cells on borders having the same color with no $2 \times 2$ square colored in chess order, bad.
Assume contrary that a bad coloring exists. We more generally show contradiction for $2n \times 2n$ table ($n \in \mathbb Z_{>0}$), by induction on $n$. Base case $n=1$ is direct. We do the induction step now.

Instead of the colors red, white; we will be considering red and blue. Suppose all cells on the border are red. Among all bad colorings, pick the one (which is $\mathcal P$ say), maximizing the number of green cells on inner (where inner border is shown below in green):
[asy]
size(200);
for(int i=1;i<9;++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(8,i)*unitsquare,red+white);
fill(shift(i,8)*unitsquare,red+white);
}
for(int i=1;i<10;++i){
draw((1,i)--(9,i));
draw((i,1)--(i,9));
}
draw((2.5,2.5)--(7.5,2.5)--(7.5,7.5)--(2.5,7.5)--(2.5,2.5),green+linewidth(0.9));
[/asy]
The $\textbf{Key Claim}$ is that:
$$\boxed{\text{All squares in the inner border of } \mathcal P \text{ are blue.}} $$If this is true, we are just done by induction hypothesis. So assume on the contrary that statement isn't true.


$\textbf{Claim 1:}$ Suppose we have a configuration like below such that changing color of $2$ from red to blue gives a contradiction.
[asy]
size(100);
for(int i =1;i < 4;++i){
fill(shift(1,i)*unitsquare,red+white);
}
fill(shift(2,2)*unitsquare,red+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]
Then color of $1,3,4,5,6$ must be blue, i.e. we must have
[asy]
size(100);
for(int i =1;i < 4;++i){
fill(shift(1,i)*unitsquare,red+white);
}
fill(shift(2,2)*unitsquare,red+white);
fill(shift(2,1)*unitsquare^^shift(2,3)*unitsquare^^shift(3,2)*unitsquare,blue+white);
fill(shift(3,1)*unitsquare^^shift(3,3)*unitsquare,blue+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]

Analogously, if we have a configuration like below such changing color of $2$ from blue to red gives a contradiction.
[asy]
size(100);
for(int i =1;i < 4;++i){
fill(shift(1,i)*unitsquare,blue+white);
}
fill(shift(2,2)*unitsquare,blue+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]
Then color of $1,3,4,5,6$ must be red, i.e. we must have
[asy]
size(100);
for(int i =1;i < 4;++i){
fill(shift(1,i)*unitsquare,blue+white);
}
fill(shift(2,2)*unitsquare,blue+white);
fill(shift(2,1)*unitsquare^^shift(2,3)*unitsquare^^shift(3,2)*unitsquare,red+white);
fill(shift(3,1)*unitsquare^^shift(3,3)*unitsquare,red+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]

Proof: We resolve the first only as the other is analogous. The color of $1,3$ must be blue. Now as changing color of $2$ from red to blue gives a contradiction, so $5$ must be blue. Then $4,6$ must be red. $\square$


$\textbf{Claim 2}$: Suppose we have a configuration like below such that changing color of $2$ from red to blue gives a contradiction.
[asy]
size(100);
fill(shift(1,1)*unitsquare^^shift(1,3)*unitsquare^^shift(2,1)*unitsquare^^shift(2,2)*unitsquare^^shift(2,3)*unitsquare,blue+white);
fill(shift(1,2)*unitsquare,red+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]
Then color of $4,6$ must be red and of $5$ must be blue ; i.e. we must have
[asy]
size(100);
fill(shift(1,1)*unitsquare^^shift(1,3)*unitsquare^^shift(2,1)*unitsquare^^shift(2,2)*unitsquare^^shift(2,3)*unitsquare,blue+white);
fill(shift(3,1)*unitsquare,red+white);
fill(shift(3,3)*unitsquare,red+white);
fill(shift(3,2)*unitsquare,blue+white);
fill(shift(1,2)*unitsquare,red+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]

Analogously, if we have a configuration like below such that changing color or $2$ from blue to red gives a contradiction.
[asy]
size(100);
fill(shift(1,1)*unitsquare^^shift(1,3)*unitsquare^^shift(2,1)*unitsquare^^shift(2,2)*unitsquare^^shift(2,3)*unitsquare,red+white);
fill(shift(1,2)*unitsquare,blue+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]
Then color of $4,6$ must be red and of $5$ must be blue ; i.e. we must have
[asy]
size(100);
fill(shift(1,1)*unitsquare^^shift(1,3)*unitsquare^^shift(2,1)*unitsquare^^shift(2,2)*unitsquare^^shift(2,3)*unitsquare,red+white);
fill(shift(3,1)*unitsquare,blue+white);
fill(shift(3,3)*unitsquare,blue+white);
fill(shift(3,2)*unitsquare,red+white);
fill(shift(1,2)*unitsquare,blue+white);
for(int i=1;i<5;++i){
draw((1,i)--(4,i));
draw((i,1)--(i,4));
}
label("$1$",(2.5,1.5));
label("$2$",(2.5,2.5));
label("$3$",(2.5,3.5));
label("$4$",(3.5,1.5));
label("$5$",(3.5,2.5));
label("$6$",(3.5,3.5));
[/asy]

Proof: As changing the color of $2$ from red to blue gives a contradiction, so $5$ must be blue. Then $4,6$ must be red. $\square$



Now we pick a red square on the inner border. Say we have something like
[asy]
size(300);
for(int i=1 ; i<13; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(12,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(i,12)*unitsquare,red+white);
}
fill(shift(2,7)*unitsquare,red+white);
for(int i=1 ; i<14 ; ++i){
draw((1,i)--(13,i));
draw((i,1)--(i,13));
}
label("$2$",(2.5,7.5));
[/asy]
By maximality assumption on $\mathcal P$, changing color of $2$ from red to blue must give a contradiction. Using Claim 1 and Claim 2 repeatedly implies we must have:
[asy]
size(300);
for(int i=1 ; i<13; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(12,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(i,12)*unitsquare,red+white);
}
fill(shift(2,7)*unitsquare^^shift(5,7)*unitsquare^^shift(6,7)*unitsquare^^shift(9,7)*unitsquare^^shift(10,7)*unitsquare,red+white);
fill(shift(4,8)*unitsquare^^shift(5,8)*unitsquare^^shift(8,8)*unitsquare^^shift(9,8)*unitsquare,red+white);
fill(shift(4,6)*unitsquare^^shift(5,6)*unitsquare^^shift(8,6)*unitsquare^^shift(9,6)*unitsquare,red+white);
fill(shift(2,8)*unitsquare^^shift(3,8)*unitsquare^^shift(6,8)*unitsquare^^shift(7,8)*unitsquare^^shift(10,8)*unitsquare^^shift(11,8)*unitsquare,blue+white);
fill(shift(3,7)*unitsquare^^shift(4,7)*unitsquare^^shift(7,7)*unitsquare^^shift(8,7)*unitsquare^^shift(11,7)*unitsquare,blue+white);
fill(shift(2,6)*unitsquare^^shift(3,6)*unitsquare^^shift(6,6)*unitsquare^^shift(7,6)*unitsquare^^shift(10,6)*unitsquare^^shift(11,6)*unitsquare,blue+white);
for(int i=1 ; i<14 ; ++i){
draw((1,i)--(13,i));
draw((i,1)--(i,13));
}
[/asy]
Actually, the above configuration is for even $n$. For odd $n$, we directly get a contradiction. For example,
[asy]
size(250);
for(int i=1 ; i<11 ; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(10,i)*unitsquare,red+white);
fill(shift(i,10)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
}
fill(shift(2,6)*unitsquare^^shift(5,6)*unitsquare^^shift(6,6)*unitsquare^^shift(9,6)*unitsquare,red+white);
fill(shift(4,7)*unitsquare^^shift(5,7)*unitsquare^^shift(8,7)*unitsquare^^shift(9,7)*unitsquare,red+white);
fill(shift(4,5)*unitsquare^^shift(5,5)*unitsquare^^shift(8,5)*unitsquare^^shift(9,5)*unitsquare,red+white);
fill(shift(2,5)*unitsquare^^shift(3,5)*unitsquare^^shift(6,5)*unitsquare^^shift(7,5)*unitsquare,blue+white);
fill(shift(3,6)*unitsquare^^shift(4,6)*unitsquare^^shift(7,6)*unitsquare^^shift(8,6)*unitsquare,blue+white);
fill(shift(2,7)*unitsquare^^shift(3,7)*unitsquare^^shift(6,7)*unitsquare^^shift(7,7)*unitsquare,blue+white);
for(int i =1 ; i<12; ++i){
draw((1,i)--(11,i));
draw((i,1)--(i,11));
}
draw((9,5)--(11,5)--(11,7)--(9,7)--(9,5),linewidth(1.2)+green);
[/asy]
Now we again return to the main case of $n$ even.
[asy]
size(300);
for(int i=1 ; i<13; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(12,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(i,12)*unitsquare,red+white);
}
fill(shift(2,7)*unitsquare^^shift(5,7)*unitsquare^^shift(6,7)*unitsquare^^shift(9,7)*unitsquare^^shift(10,7)*unitsquare,red+white);
fill(shift(4,8)*unitsquare^^shift(5,8)*unitsquare^^shift(8,8)*unitsquare^^shift(9,8)*unitsquare,red+white);
fill(shift(4,6)*unitsquare^^shift(5,6)*unitsquare^^shift(8,6)*unitsquare^^shift(9,6)*unitsquare,red+white);
fill(shift(2,8)*unitsquare^^shift(3,8)*unitsquare^^shift(6,8)*unitsquare^^shift(7,8)*unitsquare^^shift(10,8)*unitsquare^^shift(11,8)*unitsquare,blue+white);
fill(shift(3,7)*unitsquare^^shift(4,7)*unitsquare^^shift(7,7)*unitsquare^^shift(8,7)*unitsquare^^shift(11,7)*unitsquare,blue+white);
fill(shift(2,6)*unitsquare^^shift(3,6)*unitsquare^^shift(6,6)*unitsquare^^shift(7,6)*unitsquare^^shift(10,6)*unitsquare^^shift(11,6)*unitsquare,blue+white);
for(int i=1 ; i<14 ; ++i){
draw((1,i)--(13,i));
draw((i,1)--(i,13));
}
draw((2.5,7.5)--(11.5,7.5),green+linewidth(1.2));
[/asy]
Note even if we reverse color of cells on the green line, then the configuration would still be valid. Since one square on inner border changes from red to blue while another changes from blue to red, so this doesn't give a contradiction directly. But at least, because of this we can assume that all cells in the right of inner border are blue, i.e.
[asy]
size(300);
for(int i=2 ; i < 12 ; ++i){
fill(shift(11,i)*unitsquare,blue+white);
}
for(int i=1 ; i<13; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(12,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(i,12)*unitsquare,red+white);
}
fill(shift(2,7)*unitsquare^^shift(5,7)*unitsquare^^shift(6,7)*unitsquare^^shift(9,7)*unitsquare^^shift(10,7)*unitsquare,red+white);
fill(shift(4,8)*unitsquare^^shift(5,8)*unitsquare^^shift(8,8)*unitsquare^^shift(9,8)*unitsquare,red+white);
fill(shift(4,6)*unitsquare^^shift(5,6)*unitsquare^^shift(8,6)*unitsquare^^shift(9,6)*unitsquare,red+white);
fill(shift(2,8)*unitsquare^^shift(3,8)*unitsquare^^shift(6,8)*unitsquare^^shift(7,8)*unitsquare^^shift(10,8)*unitsquare^^shift(11,8)*unitsquare,blue+white);
fill(shift(3,7)*unitsquare^^shift(4,7)*unitsquare^^shift(7,7)*unitsquare^^shift(8,7)*unitsquare^^shift(11,7)*unitsquare,blue+white);
fill(shift(2,6)*unitsquare^^shift(3,6)*unitsquare^^shift(6,6)*unitsquare^^shift(7,6)*unitsquare^^shift(10,6)*unitsquare^^shift(11,6)*unitsquare,blue+white);
for(int i=1 ; i<14 ; ++i){
draw((1,i)--(13,i));
draw((i,1)--(i,13));
}
draw((1,5)--(13,5)--(13,7)--(1,7)--(1,5),green+linewidth(1.2));
[/asy]
If we only focus on the green rectangle, then that in itself forces
[asy]
size(300);
for(int i=2 ; i < 12 ; ++i){
fill(shift(11,i)*unitsquare,blue+white);
}
for(int i=1 ; i<13; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(12,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(i,12)*unitsquare,red+white);
}
fill(shift(2,5)*unitsquare^^shift(5,5)*unitsquare^^shift(6,5)*unitsquare^^shift(9,5)*unitsquare^^shift(10,5)*unitsquare,red+white);
fill(shift(3,5)*unitsquare^^shift(4,5)*unitsquare^^shift(7,5)*unitsquare^^shift(8,5)*unitsquare,blue+white);
fill(shift(2,7)*unitsquare^^shift(5,7)*unitsquare^^shift(6,7)*unitsquare^^shift(9,7)*unitsquare^^shift(10,7)*unitsquare,red+white);
fill(shift(4,8)*unitsquare^^shift(5,8)*unitsquare^^shift(8,8)*unitsquare^^shift(9,8)*unitsquare,red+white);
fill(shift(4,6)*unitsquare^^shift(5,6)*unitsquare^^shift(8,6)*unitsquare^^shift(9,6)*unitsquare,red+white);
fill(shift(2,8)*unitsquare^^shift(3,8)*unitsquare^^shift(6,8)*unitsquare^^shift(7,8)*unitsquare^^shift(10,8)*unitsquare^^shift(11,8)*unitsquare,blue+white);
fill(shift(3,7)*unitsquare^^shift(4,7)*unitsquare^^shift(7,7)*unitsquare^^shift(8,7)*unitsquare^^shift(11,7)*unitsquare,blue+white);
fill(shift(2,6)*unitsquare^^shift(3,6)*unitsquare^^shift(6,6)*unitsquare^^shift(7,6)*unitsquare^^shift(10,6)*unitsquare^^shift(11,6)*unitsquare,blue+white);
for(int i=1 ; i<14 ; ++i){
draw((1,i)--(13,i));
draw((i,1)--(i,13));
}
draw((1,4)--(13,4)--(13,6)--(1,6)--(1,4),green+linewidth(1.2));
[/asy]
Again, the green rectangle above is in itself enough to force
[asy]
size(300);
for(int i=2 ; i < 12 ; ++i){
fill(shift(11,i)*unitsquare,blue+white);
}
for(int i=1 ; i<13; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(12,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(i,12)*unitsquare,red+white);
}
fill(shift(2,4)*unitsquare^^shift(3,4)*unitsquare^^shift(6,4)*unitsquare^^shift(7,4)*unitsquare^^shift(10,4)*unitsquare,blue+white);
fill(shift(4,4)*unitsquare^^shift(5,4)*unitsquare^^shift(8,4)*unitsquare^^shift(9,4)*unitsquare,red+white);
fill(shift(2,5)*unitsquare^^shift(5,5)*unitsquare^^shift(6,5)*unitsquare^^shift(9,5)*unitsquare^^shift(10,5)*unitsquare,red+white);
fill(shift(3,5)*unitsquare^^shift(4,5)*unitsquare^^shift(7,5)*unitsquare^^shift(8,5)*unitsquare,blue+white);
fill(shift(2,7)*unitsquare^^shift(5,7)*unitsquare^^shift(6,7)*unitsquare^^shift(9,7)*unitsquare^^shift(10,7)*unitsquare,red+white);
fill(shift(4,8)*unitsquare^^shift(5,8)*unitsquare^^shift(8,8)*unitsquare^^shift(9,8)*unitsquare,red+white);
fill(shift(4,6)*unitsquare^^shift(5,6)*unitsquare^^shift(8,6)*unitsquare^^shift(9,6)*unitsquare,red+white);
fill(shift(2,8)*unitsquare^^shift(3,8)*unitsquare^^shift(6,8)*unitsquare^^shift(7,8)*unitsquare^^shift(10,8)*unitsquare^^shift(11,8)*unitsquare,blue+white);
fill(shift(3,7)*unitsquare^^shift(4,7)*unitsquare^^shift(7,7)*unitsquare^^shift(8,7)*unitsquare^^shift(11,7)*unitsquare,blue+white);
fill(shift(2,6)*unitsquare^^shift(3,6)*unitsquare^^shift(6,6)*unitsquare^^shift(7,6)*unitsquare^^shift(10,6)*unitsquare^^shift(11,6)*unitsquare,blue+white);
for(int i=1 ; i<14 ; ++i){
draw((1,i)--(13,i));
draw((i,1)--(i,13));
}
[/asy]
Continuing in a similar way me must have
[asy]
size(300);
for(int i=2 ; i < 12 ; ++i){
fill(shift(11,i)*unitsquare,blue+white);
}
for(int i=1 ; i<13; ++i){
fill(shift(1,i)*unitsquare,red+white);
fill(shift(12,i)*unitsquare,red+white);
fill(shift(i,1)*unitsquare,red+white);
fill(shift(i,12)*unitsquare,red+white);
}
fill(shift(2,4)*unitsquare^^shift(3,4)*unitsquare^^shift(6,4)*unitsquare^^shift(7,4)*unitsquare^^shift(10,4)*unitsquare,blue+white);
fill(shift(4,4)*unitsquare^^shift(5,4)*unitsquare^^shift(8,4)*unitsquare^^shift(9,4)*unitsquare,red+white);
fill(shift(2,5)*unitsquare^^shift(5,5)*unitsquare^^shift(6,5)*unitsquare^^shift(9,5)*unitsquare^^shift(10,5)*unitsquare,red+white);
fill(shift(3,5)*unitsquare^^shift(4,5)*unitsquare^^shift(7,5)*unitsquare^^shift(8,5)*unitsquare,blue+white);
fill(shift(2,3)*unitsquare^^shift(5,3)*unitsquare^^shift(6,3)*unitsquare^^shift(9,3)*unitsquare^^shift(10,3)*unitsquare,red+white);
fill(shift(3,3)*unitsquare^^shift(4,3)*unitsquare^^shift(7,3)*unitsquare^^shift(8,3)*unitsquare,blue+white);
fill(shift(2,2)*unitsquare^^shift(3,2)*unitsquare^^shift(6,2)*unitsquare^^shift(7,2)*unitsquare^^shift(10,2)*unitsquare,blue+white);
fill(shift(2,7)*unitsquare^^shift(5,7)*unitsquare^^shift(6,7)*unitsquare^^shift(9,7)*unitsquare^^shift(10,7)*unitsquare,red+white);
fill(shift(4,2)*unitsquare^^shift(5,2)*unitsquare^^shift(8,2)*unitsquare^^shift(9,2)*unitsquare,red+white);
fill(shift(4,8)*unitsquare^^shift(5,8)*unitsquare^^shift(8,8)*unitsquare^^shift(9,8)*unitsquare,red+white);
fill(shift(4,6)*unitsquare^^shift(5,6)*unitsquare^^shift(8,6)*unitsquare^^shift(9,6)*unitsquare,red+white);
fill(shift(2,8)*unitsquare^^shift(3,8)*unitsquare^^shift(6,8)*unitsquare^^shift(7,8)*unitsquare^^shift(10,8)*unitsquare^^shift(11,8)*unitsquare,blue+white);
fill(shift(3,7)*unitsquare^^shift(4,7)*unitsquare^^shift(7,7)*unitsquare^^shift(8,7)*unitsquare^^shift(11,7)*unitsquare,blue+white);
fill(shift(2,6)*unitsquare^^shift(3,6)*unitsquare^^shift(6,6)*unitsquare^^shift(7,6)*unitsquare^^shift(10,6)*unitsquare^^shift(11,6)*unitsquare,blue+white);
for(int i=1 ; i<14 ; ++i){
draw((1,i)--(13,i));
draw((
i,1)--(i,13));
}
draw((4,1)--(6,1)--(6,3)--(4,3)--(4,1),green+linewidth(1.2));
draw((8,1)--(10,1)--(10,3)--(8,3)--(8,1),green+linewidth(1.2));
[/asy]
But that's a contradiction!

This finally completes the proof. $\blacksquare$
This post has been edited 2 times. Last edited by guptaamitu1, Aug 8, 2022, 5:20 PM
Reason: fixing Asy
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Radin_
4 posts
#9
Y by
assume the contrary.

consider the corners of the squares of the grid that are not on the edges of the board (they make up a $99*99$ grid in the interior of the board) we define a graph with the mentioned $99^2$ points as its vertices. we draw an edge between two vertices if on the board they have distance $1$ and the two squares of the grid with corners as the vertices don't have the same color. it is easy to see that each vertex has even degree. if a vertex has degree $0$ then the $4$ square around it have the same color which is a contradiction and if a vertex has degree $4$ then the square around it make a chessboard pattern which is also a contradiction meaning that each vertex has degree $2$ (the all black outline means that this is correct for all of our vertices).

now we know that a graph with all degrees equal to $2$ is the union of some disjoint cycles it is also easy to see that each of our cycles has an even number of vertices (starting from a point on the cycle we must move the same number of edges up as down and also the same number of edges left as right to complete the cycle and get back to our starting point).
so we have a graph with an odd number of vertices that is made up of the union of disjoint even cycles. absurd
Z K Y
N Quick Reply
G
H
=
a