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
Interesting inequalities
sqing   10
N 26 minutes ago by ytChen
Source: Own
Let $ a,b,c\geq 0 , (a+k )(b+c)=k+1.$ Prove that
$$\frac{1}{a+1}+\frac{1}{b+1}+\frac{1}{c+1}\geq  \frac{2k-3+2\sqrt{k+1}}{3k-1}$$Where $ k\geq \frac{2}{3}.$
Let $ a,b,c\geq 0 , (a+1)(b+c)=2.$ Prove that
$$\frac{1}{a+1}+\frac{1}{b+1}+\frac{1}{c+1}\geq 2\sqrt{2}-1$$Let $ a,b,c\geq 0 , (a+3)(b+c)=4.$ Prove that
$$\frac{1}{a+1}+\frac{1}{b+1}+\frac{1}{c+1}\geq  \frac{7}{4}$$Let $ a,b,c\geq 0 , (3a+2)(b+c)= 5.$ Prove that
$$\frac{1}{a+1}+\frac{1}{b+1}+\frac{1}{c+1}\geq  \frac{2(2\sqrt{15}-5)}{3}$$
10 replies
sqing
May 10, 2025
ytChen
26 minutes ago
GMO 2024 P1
Z4ADies   5
N an hour ago by awesomeming327.
Source: Geometry Mains Olympiad (GMO) 2024 P1
Let \( ABC \) be an acute triangle. Define \( I \) as its incenter. Let \( D \) and \( E \) be the incircle's tangent points to \( AC \) and \( AB \), respectively. Let \( M \) be the midpoint of \( BC \). Let \( G \) be the intersection point of a perpendicular line passing through \( M \) to \( DE \). Line \( AM \) intersects the circumcircle of \( \triangle ABC \) at \( H \). The circumcircle of \( \triangle AGH \) intersects line \( GM \) at \( J \). Prove that quadrilateral \( BGCJ \) is cyclic.

Author:Ismayil Ismayilzada (Azerbaijan)
5 replies
Z4ADies
Oct 20, 2024
awesomeming327.
an hour ago
Power sequence
TheUltimate123   7
N an hour ago by MathLuis
Source: ELMO Shortlist 2023 N2
Determine the greatest positive integer \(n\) for which there exists a sequence of distinct positive integers \(s_1\), \(s_2\), \(\ldots\), \(s_n\) satisfying \[s_1^{s_2}=s_2^{s_3}=\cdots=s_{n-1}^{s_n}.\]
Proposed by Holden Mui
7 replies
TheUltimate123
Jun 29, 2023
MathLuis
an hour ago
Interesting inequality of sequence
GeorgeRP   1
N an hour ago by Assassino9931
Source: Bulgaria IMO TST 2025 P2
Let $d\geq 2$ be an integer and $a_0,a_1,\ldots$ is a sequence of real numbers for which $a_0=a_1=\cdots=a_d=1$ and:
$$a_{k+1}\geq a_k-\frac{a_{k-d}}{4d}, \forall_{k\geq d}$$Prove that all elements of the sequence are positive.
1 reply
GeorgeRP
Wednesday at 7:47 AM
Assassino9931
an hour ago
IMO Shortlist 2013, Combinatorics #4
lyukhson   21
N 3 hours ago by Ciobi_
Source: IMO Shortlist 2013, Combinatorics #4
Let $n$ be a positive integer, and let $A$ be a subset of $\{ 1,\cdots ,n\}$. An $A$-partition of $n$ into $k$ parts is a representation of n as a sum $n = a_1 + \cdots + a_k$, where the parts $a_1 , \cdots , a_k $ belong to $A$ and are not necessarily distinct. The number of different parts in such a partition is the number of (distinct) elements in the set $\{ a_1 , a_2 , \cdots , a_k \} $.
We say that an $A$-partition of $n$ into $k$ parts is optimal if there is no $A$-partition of $n$ into $r$ parts with $r<k$. Prove that any optimal $A$-partition of $n$ contains at most $\sqrt[3]{6n}$ different parts.
21 replies
lyukhson
Jul 9, 2014
Ciobi_
3 hours ago
Cycle in a graph with a minimal number of chords
GeorgeRP   4
N 4 hours ago by CBMaster
Source: Bulgaria IMO TST 2025 P3
In King Arthur's court every knight is friends with at least $d>2$ other knights where friendship is mutual. Prove that King Arthur can place some of his knights around a round table in such a way that every knight is friends with the $2$ people adjacent to him and between them there are at least $\frac{d^2}{10}$ friendships of knights that are not adjacent to each other.
4 replies
GeorgeRP
Wednesday at 7:51 AM
CBMaster
4 hours ago
amazing balkan combi
egxa   8
N 4 hours ago by Gausikaci
Source: BMO 2025 P4
There are $n$ cities in a country, where $n \geq 100$ is an integer. Some pairs of cities are connected by direct (two-way) flights. For two cities $A$ and $B$ we define:

$(i)$ A $\emph{path}$ between $A$ and $B$ as a sequence of distinct cities $A = C_0, C_1, \dots, C_k, C_{k+1} = B$, $k \geq 0$, such that there are direct flights between $C_i$ and $C_{i+1}$ for every $0 \leq i \leq k$;
$(ii)$ A $\emph{long path}$ between $A$ and $B$ as a path between $A$ and $B$ such that no other path between $A$ and $B$ has more cities;
$(iii)$ A $\emph{short path}$ between $A$ and $B$ as a path between $A$ and $B$ such that no other path between $A$ and $B$ has fewer cities.
Assume that for any pair of cities $A$ and $B$ in the country, there exist a long path and a short path between them that have no cities in common (except $A$ and $B$). Let $F$ be the total number of pairs of cities in the country that are connected by direct flights. In terms of $n$, find all possible values $F$

Proposed by David-Andrei Anghel, Romania.
8 replies
egxa
Apr 27, 2025
Gausikaci
4 hours ago
abc = 1 Inequality generalisation
CHESSR1DER   6
N 4 hours ago by CHESSR1DER
Source: Own
Let $a,b,c > 0$, $abc=1$.
Find min $ \frac{1}{a^m(bx+cy)^n} + \frac{1}{b^m(cx+ay)^n} + \frac{1}{c^m(cx+ay)^n}$.
$1)$ $m,n,x,y$ are fixed positive integers.
$2)$ $m,n,x,y$ are fixed positive real numbers.
6 replies
CHESSR1DER
5 hours ago
CHESSR1DER
4 hours ago
Fond all functions in M with a) f(1)=5/2, b) f(1)=√3
Amir Hossein   5
N 5 hours ago by jasperE3
Source: IMO LongList 1982 - P34
Let $M$ be the set of all functions $f$ with the following properties:

(i) $f$ is defined for all real numbers and takes only real values.

(ii) For all $x, y \in \mathbb R$ the following equality holds: $f(x)f(y) = f(x + y) + f(x - y).$

(iii) $f(0) \neq 0.$

Determine all functions $f \in M$ such that

(a) $f(1)=\frac 52$,

(b) $f(1)= \sqrt 3$.
5 replies
Amir Hossein
Mar 18, 2011
jasperE3
5 hours ago
help me please
thuanz123   6
N 5 hours ago by pavel kozlov
find all $a,b \in \mathbb{Z}$ such that:
a) $3a^2-2b^2=1$
b) $a^2-6b^2=1$
6 replies
thuanz123
Jan 17, 2016
pavel kozlov
5 hours ago
Problem 5 (Second Day)
darij grinberg   78
N 6 hours ago by cj13609517288
Source: IMO 2004 Athens
In a convex quadrilateral $ABCD$, the diagonal $BD$ bisects neither the angle $ABC$ nor the angle $CDA$. The point $P$ lies inside $ABCD$ and satisfies \[\angle PBC=\angle DBA\quad\text{and}\quad \angle PDC=\angle BDA.\] Prove that $ABCD$ is a cyclic quadrilateral if and only if $AP=CP$.
78 replies
1 viewing
darij grinberg
Jul 13, 2004
cj13609517288
6 hours ago
concyclic wanted, PQ = BP, cyclic quadrilateral and 2 parallelograms related
parmenides51   2
N 6 hours ago by SuperBarsh
Source: 2011 Italy TST 2.2
Let $ABCD$ be a cyclic quadrilateral in which the lines $BC$ and $AD$ meet at a point $P$. Let $Q$ be the point of the line $BP$, different from $B$, such that $PQ = BP$. We construct the parallelograms $CAQR$ and $DBCS$. Prove that the points $C, Q, R, S$ lie on the same circle.
2 replies
parmenides51
Sep 25, 2020
SuperBarsh
6 hours ago
Integer FE Again
popcorn1   43
N 6 hours ago by DeathIsAwe
Source: ISL 2020 N5
Determine all functions $f$ defined on the set of all positive integers and taking non-negative integer values, satisfying the three conditions:
[list]
[*] $(i)$ $f(n) \neq 0$ for at least one $n$;
[*] $(ii)$ $f(x y)=f(x)+f(y)$ for every positive integers $x$ and $y$;
[*] $(iii)$ there are infinitely many positive integers $n$ such that $f(k)=f(n-k)$ for all $k<n$.
[/list]
43 replies
popcorn1
Jul 20, 2021
DeathIsAwe
6 hours ago
Long and wacky inequality
Royal_mhyasd   2
N Yesterday at 6:03 PM by Royal_mhyasd
Source: Me
Let $x, y, z$ be positive real numbers such that $x^2 + y^2 + z^2 = 12$. Find the minimum value of the following sum :
$$\sum_{cyc}\frac{(x^3+2y)^3}{3x^2yz - 16z - 8yz + 6x^2z}$$knowing that the denominators are positive real numbers.
2 replies
Royal_mhyasd
May 12, 2025
Royal_mhyasd
Yesterday at 6:03 PM
Flipping L's
MarkBcc168   12
N Apr 24, 2025 by zRevenant
Source: IMO Shortlist 2023 C1
Let $m$ and $n$ be positive integers greater than $1$. In each unit square of an $m\times n$ grid lies a coin with its tail side up. A move consists of the following steps.
[list=1]
[*]select a $2\times 2$ square in the grid;
[*]flip the coins in the top-left and bottom-right unit squares;
[*]flip the coin in either the top-right or bottom-left unit square.
[/list]
Determine all pairs $(m,n)$ for which it is possible that every coin shows head-side up after a finite number of moves.

Thanasin Nampaisarn, Thailand
12 replies
MarkBcc168
Jul 17, 2024
zRevenant
Apr 24, 2025
Flipping L's
G H J
G H BBookmark kLocked kLocked NReply
Source: IMO Shortlist 2023 C1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MarkBcc168
1595 posts
#1 • 2 Y
Y by OronSH, peace09
Let $m$ and $n$ be positive integers greater than $1$. In each unit square of an $m\times n$ grid lies a coin with its tail side up. A move consists of the following steps.
  1. select a $2\times 2$ square in the grid;
  2. flip the coins in the top-left and bottom-right unit squares;
  3. flip the coin in either the top-right or bottom-left unit square.
Determine all pairs $(m,n)$ for which it is possible that every coin shows head-side up after a finite number of moves.

Thanasin Nampaisarn, Thailand
This post has been edited 1 time. Last edited by MarkBcc168, Jul 24, 2024, 4:00 PM
Reason: author
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1745 posts
#2 • 3 Y
Y by peace09, ihatemath123, Funcshun840
We claim the answer is $3\mid mn.$

For the construction, the idea is that it is possible to flip a $3\times 1$ rectangle, with the following steps:

[asy]
size(10cm);
draw((0,0)--(3,0)--(3,2)--(0,2)--cycle);
draw((5,0)--(8,0)--(8,2)--(5,2)--cycle);
draw((10,0)--(13,0)--(13,2)--(10,2)--cycle);
draw((15,0)--(18,0)--(18,2)--(15,2)--cycle);
draw((3.5,1)--(4.5,1),Arrow);
draw((8.5,1)--(9.5,1),Arrow);
draw((13.5,1)--(14.5,1),Arrow);
filldraw((7,0)--(8,0)--(8,2)--(6,2)--(6,1)--(7,1)--cycle,gray);
draw((7,0)--(8,0)--(8,2)--(6,2)--(6,1)--(7,1)--cycle,linewidth(1.5));
filldraw((11,0)--(12,0)--(12,2)--(13,2)--(13,1)--(11,1)--cycle,gray);
draw((11,0)--(13,0)--(13,1)--(12,1)--(12,2)--(11,2)--cycle,linewidth(1.5));
filldraw((15,1)--(18,1)--(18,2)--(15,2)--cycle,gray);
draw((16,0)--(17,0)--(17,2)--(15,2)--(15,1)--(16,1)--cycle,linewidth(1.5));
draw((1,0)--(1,2));
draw((6,0)--(6,2));
draw((11,0)--(11,2));
draw((16,0)--(16,2));
draw((2,0)--(2,2));
draw((7,0)--(7,2));
draw((12,0)--(12,2));
draw((17,0)--(17,2));
draw((0,1)--(3,1));
draw((5,1)--(8,1));
draw((10,1)--(13,1));
draw((15,1)--(18,1));
[/asy]
Then if $3\mid mn,$ it is possible to cut the rectangle into $3\times 1$ strips and flip all of them. (This doesn't run into space issues since $m,n\ge 2.$)

To show this is necessary, color the cell $(x,y)$ with the remainder when $2x+y$ is divided by $3.$ Then each move flips one cell of each color, and thus the number of heads-up coins of each color must always have the same parity. Thus we show that for $3\nmid mn$ there exist two colors that appear different-parity numbers of times.

To do this, first cut the rectangle into four pieces, three of which have at least one side length divisible by $3$ and the fourth has both dimensions $<3.$ An example is as shown:
[asy]
size(7cm);
draw((0,0)--(7,0)--(7,5)--(0,5)--cycle);
draw((1,0)--(1,5));
draw((2,0)--(2,5));
draw((3,0)--(3,5));
draw((4,0)--(4,5));
draw((5,0)--(5,5));
draw((6,0)--(6,5));
draw((0,1)--(7,1));
draw((0,2)--(7,2));
draw((0,3)--(7,3));
draw((0,4)--(7,4));
draw((-1,2)--(8,2),linewidth(2));
draw((1,-1)--(1,6),linewidth(2));
label("0",(0,0),dir(44)*2.9);
label("1",(0,1),dir(44)*2.9);
label("2",(0,2),dir(44)*2.9);
label("0",(0,3),dir(44)*2.9);
label("1",(0,4),dir(44)*2.9);
label("2",(1,0),dir(44)*2.9);
label("0",(1,1),dir(44)*2.9);
label("1",(1,2),dir(44)*2.9);
label("2",(1,3),dir(44)*2.9);
label("0",(1,4),dir(44)*2.9);
label("1",(2,0),dir(44)*2.9);
label("2",(2,1),dir(44)*2.9);
label("0",(2,2),dir(44)*2.9);
label("1",(2,3),dir(44)*2.9);
label("2",(2,4),dir(44)*2.9);
label("0",(3,0),dir(44)*2.9);
label("1",(3,1),dir(44)*2.9);
label("2",(3,2),dir(44)*2.9);
label("0",(3,3),dir(44)*2.9);
label("1",(3,4),dir(44)*2.9);
label("2",(4,0),dir(44)*2.9);
label("0",(4,1),dir(44)*2.9);
label("1",(4,2),dir(44)*2.9);
label("2",(4,3),dir(44)*2.9);
label("0",(4,4),dir(44)*2.9);
label("1",(5,0),dir(44)*2.9);
label("2",(5,1),dir(44)*2.9);
label("0",(5,2),dir(44)*2.9);
label("1",(5,3),dir(44)*2.9);
label("2",(5,4),dir(44)*2.9);
label("0",(6,0),dir(44)*2.9);
label("1",(6,1),dir(44)*2.9);
label("2",(6,2),dir(44)*2.9);
label("0",(6,3),dir(44)*2.9);
label("1",(6,4),dir(44)*2.9);
[/asy]
Now the three rectangles with a side divisible by $3$ can be tiled by $3\times 1$ rectangles, and thus have the same number of each color.

Thus it suffices to check rectangles with side lengths $<3:$ the $1\times 1$ and $2\times 1$ have one $0$ and zero $1$s, the $1\times 2$ has one $0$ and zero $2$s, and the $2\times 2$ has two $0$s and one $1.$

Thus each of these has two colors with different parities, so 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.
MarkBcc168
1595 posts
#3 • 10 Y
Y by Snark_Graphique, peace09, OronSH, Modesti, Zsnim, mathleticguyyy, GoodMorning, jrpartty, Bonime, Want-to-study-in-NTU-MATH
I love generating functions.

The answer is $3\mid mn$.

Work in the polynomial ring $\mathbb F_2[x,y]$. We represent a configuration by the polynomial in the set
$$S = \left\{\sum_{i=0}^{m-1} \sum_{j=0}^{n-1} a_{ij} x^iy^j
: a_{ij}\in\mathbb F_2\right\} \subset\mathbb F_2[x,y],$$where for a configuration with polynomial $\textstyle{\sum_{i=0}^{m-1} \sum_{j=0}^{n-1} a_{ij} x^iy^j}$, the cell $(i+1,j+1)$ is head if $a_{ij}=0$ and tails otherwise.

Thus, each move corresponds to adding a monomial times $x+y+1$ or $x+y+xy$ into the polynomial. Therefore, a configuration can be made into all heads if and only if the corresponding polynomial is in form $P(x,y)(x+y+1) + Q(x,y)(x+y+xy)$.

We need to determine whether the polynomial
$$P(x,y) = (1+x+x^2+\dots+x^m)(1+y+y^2+\dots+y^n)$$can be written in that form. By reducing modulo $x+y+1$, we are left to check whether $P(x,-1-x)$ is divisible by $x+(-1-x)+x(-1-x) = -(x^2+x+1)$. This is true if and only if either $1+x+\dots+x^m$ or $1+x+\dots+x^n$ is divisible by $1+x+x^2$, which occurs if and only if $3\mid mn$.
This post has been edited 2 times. Last edited by MarkBcc168, Jul 17, 2024, 12:17 PM
Reason: I'm not the first post
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
squarc_rs3v2m
46 posts
#4
Y by
Note that the polynomials in Markbcc's solution can also be understood as using a finite field $F = \{0, 1, \omega, \omega^2\}$ of characteristic two as weights and utilising a method similar to that of 2021 USAMO 3.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Marinchoo
407 posts
#5 • 2 Y
Y by Zsnim, isomoBela
The answer is all pairs $(m,n)$ such that $3\mid mn$.

To see why the others don't work, label the cells of the grid as $(i,j)$ for $1\leq i\leq m$ and $1\leq j\leq n$ (with the bottom left corner being $(1,1)$), and write $(i-j)\pmod 3$ in each of them. A move flips one coin of each residue, but as there are $\lfloor mn/3 \rfloor$ cells with one residue and $\lceil mn/3\rceil = \lfloor mn/3\rfloor+1$ with another, we get that the number of moves must be both even and odd for all coins to show heads, which is impossible.

We now show a construction for all grids $m\times n$ where $3\mid mn$. We can partition every such grid into multiple $2\times 3$, $3\times 2$, and $3\times 3$ subgrids by dividing the initial grid into rectangular strips $3\times n$ or $m\times 3$. Now, each such strip can be cut into $2\times 3$ or $3\times 2$ rectangles if the larger side is even, and such rectangles and one $3\times 3$ if it's odd. Therefore proving the statement for the grids $2\times 3$, $3\times 2$, and $3\times 3$ suffices.

For brevity, call $L_{i,j}$ the set of cells $\{(i,j), (i+1, j), (i, j+1)\}$, and $R_{i+1,j+1}$ the set of cells $\{(i+1,j), (i,j+1), (i+1, j+1)\}$. For $2\times 3$, switching $L_{1,1}$ and $R_{2,3}$ works. Similarly, for $3\times 2$, switching $L_{1,1}$ and $R_{3,2}$ does the job. For $3\times 3$, we have the slightly more convoluted combination of moves $L_{1,1}+L_{1,2}+L_{2,1}+R_{2,2}+R_{3,3}$ which suffices. This completes the solution.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zsnim
6 posts
#6 • 1 Y
Y by Zvn
We claim that the solution is all pairs $(m,n)$ for which $3|mn$

The construction for $3|mn$ is the same as posts above.

Consider the following coloring of the board:
https://imgur.com/l0OL2u6

Description of the coloring (in case the image does not work):

We will color the board in 3 colors along the diagonals going upwards from left to right. Notice that in this coloring we have that, no matter which three squares we pick, we will always pick three squares with a different color.

Now, if $3 \nmid mn$ then one of the colors will be of a different quantity than the other two (it will be $1$ more or $1$ less than the other colors), hence the quantity of one color will be of different parity than the other two.

Claim: If the quantity of some color is uneven, then flipping all tails to heads on that color will take an uneven number of moves.

Assume we have m squares colored with color A and m is uneven. To turn one single coin from tails to heads it takes an uneven amount of moves performed on that coin so summing up m uneven numbers we get an uneven number, hence the claim is true

Claim: If the quantity of some color is even, then flipping all tails to heads on that color will take an even number of moves.

The proof is very similar to the proof given above.

Because we got that the number of moves must be both even and odd (because we have both parities for the quantities of colors), we got a contradiction. Hence, it must be that $3|mn$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Jack_w
109 posts
#7
Y by
The answer is $3\mid m$ or $3\mid n$ (i.e. $3\mid mn$). For a construction, observe that we can flip any $3 \times 2$ rectangle; then take a $3 \times 2$ rectangle and flip the L-shape in the bottom left, the L-shape one cell to the right of it, and the rotated L-shape in the bottom left to leave only the bottom row of the $3 \times 2$ flipped (look at oron's in post #2). To get the top row, just flip the whole $3 \times 2$. Thus we can flip any $3 \times 1$ rectangle, and by reflecting everything $45^{\circ}$, we can also flip any $1 \times 3$ rectangle. Therefore if $3 \mid mn$ we can repeatedly flip $1 \times 3$ rectangles along the rows or columns to flip the whole grid.

Also, since $m, n > 1$, we'll always have room to choose a $3 \times 2$ or $2 \times 3$ rectangle to do this.

Now index the rows $(1, \dots, m)$ from left to right and index the columns $(1, \dots, n)$ from top to bottom. In each cell $(i, j)$, write the value of $(i + j) \pmod3$. Then each move flips exactly one $0$, one $1$, and one $2$. So, to flip all $mn$ cells, the amount of $0$'s, $1$'s, and $2$'s must be equal $\pmod 2$. It's easy to see (say, by chopping off $3 \times k$ grids of rows and columns to leave a $2 \times 2$ or smaller) that the amount of cells labeled with each residue cannot differ by 2 or more, so they must be equal. This implies $3 \mid mn$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
YaoAOPS
1541 posts
#8
Y by
The construction is omitted cuz its silly.

We first show necessity. We want to find sols to \[ P(x, y)(1 + x + y) + Q(x, y)(x + y + xy) = (1 + x + \dots + x^m)(1 + y + \dots + y^n) \]over $\mathbb{F}_2$. Note that $x^2 + x + 1$ is irreducible over $\mathbb{F}_2$ so extend our field extension to get $\mathbb{F}_2[\zeta]$ where $\zeta$ is the third root of unity.

Now, substitute $x = \zeta, y = \zeta^2$. Then $1 + x + y = x + y + xy = 0$, so the LHS is $0$. Then either $\zeta$ is a root of $(1 + x + \dots + x^m)$ or $\zeta^2$ is a root of $(1 + y + \dots + y^n)$ so $3$ divides one of $m$ and $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dkedu
180 posts
#9
Y by
We claim the answer is $3\mid mn$.

Consider the sets of diagonals formed by taking $i-j\pmod 3$. Let there be $a,b,c$ in each of these sets of columns. We have that $a \equiv b\equiv c\pmod 2$. However, for the whole grid to be covered, this means $a = b= c$ since the size of the set of diagonals differ by at most $1$.

Note that $3\mid mn$ implies $3\mid m$ or $3\mid n$. By taking the following L-shapes, we can flip any $1 \times 3$ meaning we can flip the whole grid.

$(i,j),(i+1,j),(i,j+1)$, $(i+1,j+1), (i,j+1), (i+1,j)$, $(i+1,j+1), (i+1,j), (i+2,j)$ flips only $(i,j), (i+1,j), (i+2,j)$ so 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.
ezpotd
1272 posts
#10
Y by
hardest c1??

I claim the answer is $3 \mid mn$ with $mn \neq 3$.

Construction: We prove that we can achieve all heads for all $3$ by $x$ rectangles for $x > 1$. Then we can finish by just combining such rectangles, and applying moves on them separately.

We do this by proving we can achieve $3$ by $2$ and $3$ by $3$ rectangles. Then we can finish by just combining such rectangles, and applying moves on them separately.

To make a $3$ by $2$ do the move on the squared labeled 1 in the first move and 2 in the second move.

22
12
11

To make a $3$ by $3$ do the following moves written the same way as before to get the left column completely heads and everything else tails, then do the $3$ by $2$ to get the full thing.

(1) () ()
(123) (13) ()
(2) (23) ()
Proof of necessity: Color the rectangle by the following easily generalizable coloring
.......
231231231231...
312312312312...
123123123123...

Then each operation changes the parity of the total number of heads of each color by one, thus they all have the same parity of number of heads, if $3 \nmid mn$ this will not be possible in the final scenario since they will have all heads but the colors occur with different parities.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quantam13
113 posts
#11
Y by
2 way gen func nice
The answer is $3\mid mn$. I give an algebric proof of both directions

Treat the position as a polynomial in $\mathbb{F}_2(x,y)$

We now get that each move corresponds to adding some term of the form $x^iy^j$ times $x+y+1$ or $x+y+xy$ into the polynomial(modulo 2 FTW!). Therefore, a configuration can be made into all heads if and only if the corresponding polynomial is in form $P(x,y)(x+y+1) + Q(x,y)(x+y+xy)$.

Now we want to determine wheter
$$R(x,y) = (1+x+x^2+\dots+x^m)(1+y+y^2+\dots+y^n)$$can be written in that form. If we reduce modulo $x+y+1$, we must check that $P(x,-1-x)$ is divisible by $x+(-1-x)+x(-1-x) = -(x^2+x+1)$. This is true iff either $x^m+\dots+x^2+x+1$ or $x^n+\dots+x+1$ is divisible by $x^2+x+1$, which can be checked to occur if and only if $3\mid mn$, as desired


Remark: My original solution was the combinatorial one(in terms of construction) but then I got the algebric one while trying to prove the only if direction but I only got the only if of the algebric version by substituting $(x,y)=(\omega,\omega^2)$ but then later I was told by a friend the modulo $x+y+1$ trick
This post has been edited 4 times. Last edited by quantam13, May 9, 2025, 1:27 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8866 posts
#12
Y by
The answer is all $m, n$ such that $3 \mid m$ or $3 \mid n$.

Bound: We color the chessboard cells red, blue, or green such that every row and column reads red, blue, green, repeating in that order. Any operation performed on the chessboard will then operate on an equal number of red, blue, and green cells.

Claim: The number of red, blue, and green cells must all be the same parity.

Proof: Assume for the sake of contradiction that there were an even number of red cells and odd number of blue cells. It follows that to flip all the coins in the blue cells, it requires an odd number of operations (as every cell should be affected an odd number of times.) But applying the same argument to the red cells, there should be an even number of operations, contradiction. $\blacksquare$

Suppose there are $r$ red cells, $b$ blue cells, and $g$ green cells in the coloring. Observe that $|r-b|$ is unaffected if we remove any three columns or three rows; so the only possible values $|r-b|$ can take are those for a $1 \times 1$, $1 \times 2$, or $2 \times 2$ grid. For each of these grids, $|r-b| \leq 1$. This implies that $r=g=b$, so the number of cells is a multiple of three.

Construction: Clearly a $3 \times 2$ square can be constructed, and a $3 \times 3$ square can be constructed as follows: place the cells in a coordinate system such that $(1, 1)$ represents the bottom-left square, and consider performing operations on
  • the square with bottom-left corner $(1, 1)$, flipping that corner;
  • the square with top-right corner $(2, 2)$, flipping that corner;
  • the square with bottom-left corner $(1, 2)$, flipping that corner;
  • the square with top-right corner $(2, 2)$, flipping that corner; and
  • the square with bottom-left corner $(2, 1)$, flipping that corner.
Any $3 \times n$ grid can be divided into $3 \times 2$ and $3 \times 3$ grids, so the result follows.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
zRevenant
14 posts
#14
Y by
Answer: $3 \mid mn$


Proof: Let's colour the board in the following colouring:

1 2 3 1 2 3 1 2 3
2 3 1 2 3 1 2 3 1
3 1 2 3 1 2 3 1 2
1 2 3 1 2 3 1 2 3
2 3 1 2 3 1 2 3 1
3 1 2 3 1 2 3 1 2

Note, that in every move one of each type of coin is flipped. Therefore, the amount of $1$'s $2$'s and $3$'s initially should have been the same. This is only achieved when $3 \mid mn$, so the bound is done.

For construction, it is easy to see we can always fit in a $2 \times 3$ rectangle. Now, the only thing we need to do is learn how to flip all the coins in a $1 \times 3$ array. This however can be done in the following way:

T T T | H H T | T H T | T T T
T T T | T H T | H T T | H H H

Hence now we are done.
This post has been edited 2 times. Last edited by zRevenant, Apr 24, 2025, 8:39 AM
Z K Y
N Quick Reply
G
H
=
a