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 Peer-to-Peer Programs Forum
jwelsh   157
N Dec 11, 2023 by cw357
Many of our AoPS Community members share their knowledge with their peers in a variety of ways, ranging from creating mock contests to creating real contests to writing handouts to hosting sessions as part of our partnership with schoolhouse.world.

To facilitate students in these efforts, we have created a new Peer-to-Peer Programs forum. With the creation of this forum, we are starting a new process for those of you who want to advertise your efforts. These advertisements and ensuing discussions have been cluttering up some of the forums that were meant for other purposes, so we’re gathering these topics in one place. This also allows students to find new peer-to-peer learning opportunities without having to poke around all the other forums.

To announce your program, or to invite others to work with you on it, here’s what to do:

1) Post a new topic in the Peer-to-Peer Programs forum. This will be the discussion thread for your program.

2) Post a single brief post in this thread that links the discussion thread of your program in the Peer-to-Peer Programs forum.

Please note that we’ll move or delete any future advertisement posts that are outside the Peer-to-Peer Programs forum, as well as any posts in this topic that are not brief announcements of new opportunities. In particular, this topic should not be used to discuss specific programs; those discussions should occur in topics in the Peer-to-Peer Programs forum.

Your post in this thread should have what you're sharing (class, session, tutoring, handout, math or coding game/other program) and a link to the thread in the Peer-to-Peer Programs forum, which should have more information (like where to find what you're sharing).
157 replies
jwelsh
Mar 15, 2021
cw357
Dec 11, 2023
k i C&P posting recs by mods
v_Enhance   0
Jun 12, 2020
The purpose of this post is to lay out a few suggestions about what kind of posts work well for the C&P forum. Except in a few cases these are mostly meant to be "suggestions based on historical trends" rather than firm hard rules; we may eventually replace this with an actual list of firm rules but that requires admin approval :) That said, if you post something in the "discouraged" category, you should not be totally surprised if it gets locked; they are discouraged exactly because past experience shows they tend to go badly.
-----------------------------
1. Program discussion: Allowed
If you have questions about specific camps or programs (e.g. which classes are good at X camp?), these questions fit well here. Many camps/programs have specific sub-forums too but we understand a lot of them are not active.
-----------------------------
2. Results discussion: Allowed
You can make threads about e.g. how you did on contests (including AMC), though on AMC day when there is a lot of discussion. Moderators and administrators may do a lot of thread-merging / forum-wrangling to keep things in one place.
-----------------------------
3. Reposting solutions or questions to past AMC/AIME/USAMO problems: Allowed
This forum contains a post for nearly every problem from AMC8, AMC10, AMC12, AIME, USAJMO, USAMO (and these links give you an index of all these posts). It is always permitted to post a full solution to any problem in its own thread (linked above), regardless of how old the problem is, and even if this solution is similar to one that has already been posted. We encourage this type of posting because it is helpful for the user to explain their solution in full to an audience, and for future users who want to see multiple approaches to a problem or even just the frequency distribution of common approaches. We do ask for some explanation; if you just post "the answer is (B); ez" then you are not adding anything useful.

You are also encouraged to post questions about a specific problem in the specific thread for that problem, or about previous user's solutions. It's almost always better to use the existing thread than to start a new one, to keep all the discussion in one place easily searchable for future visitors.
-----------------------------
4. Advice posts: Allowed, but read below first
You can use this forum to ask for advice about how to prepare for math competitions in general. But you should be aware that this question has been asked many many times. Before making a post, you are encouraged to look at the following:
[list]
[*] Stop looking for the right training: A generic post about advice that keeps getting stickied :)
[*] There is an enormous list of links on the Wiki of books / problems / etc for all levels.
[/list]
When you do post, we really encourage you to be as specific as possible in your question. Tell us about your background, what you've tried already, etc.

Actually, the absolute best way to get a helpful response is to take a few examples of problems that you tried to solve but couldn't, and explain what you tried on them / why you couldn't solve them. Here is a great example of a specific question.
-----------------------------
5. Publicity: use P2P forum instead
See https://artofproblemsolving.com/community/c5h2489297_peertopeer_programs_forum.
Some exceptions have been allowed in the past, but these require approval from administrators. (I am not totally sure what the criteria is. I am not an administrator.)
-----------------------------
6. Mock contests: use Mock Contests forum instead
Mock contests should be posted in the dedicated forum instead:
https://artofproblemsolving.com/community/c594864_aops_mock_contests
-----------------------------
7. AMC procedural questions: suggest to contact the AMC HQ instead
If you have a question like "how do I submit a change of venue form for the AIME" or "why is my name not on the qualifiers list even though I have a 300 index", you would be better off calling or emailing the AMC program to ask, they are the ones who can help you :)
-----------------------------
8. Discussion of random math problems: suggest to use MSM/HSM/HSO instead
If you are discussing a specific math problem that isn't from the AMC/AIME/USAMO, it's better to post these in Middle School Math, High School Math, High School Olympiads instead.
-----------------------------
9. Politics: suggest to use Round Table instead
There are important conversations to be had about things like gender diversity in math contests, etc., for sure. However, from experience we think that C&P is historically not a good place to have these conversations, as they go off the rails very quickly. We encourage you to use the Round Table instead, where it is much more clear that all posts need to be serious.
-----------------------------
10. MAA complaints: discouraged
We don't want to pretend that the MAA is perfect or that we agree with everything they do. However, we chose to discourage this sort of behavior because in practice most of the comments we see are not useful and some are frankly offensive.
[list] [*] If you just want to blow off steam, do it on your blog instead.
[*] When you have criticism, it should be reasoned, well-thought and constructive. What we mean by this is, for example, when the AOIME was announced, there was great outrage about potential cheating. Well, do you really think that this is something the organizers didn't think about too? Simply posting that "people will cheat and steal my USAMOO qualification, the MAA are idiots!" is not helpful as it is not bringing any new information to the table.
[*] Even if you do have reasoned, well-thought, constructive criticism, we think it is actually better to email it the MAA instead, rather than post it here. Experience shows that even polite, well-meaning suggestions posted in C&P are often derailed by less mature users who insist on complaining about everything.
[/list]
-----------------------------
11. Memes and joke posts: discouraged
It's fine to make jokes or lighthearted posts every so often. But it should be done with discretion. Ideally, jokes should be done within a longer post that has other content. For example, in my response to one user's question about olympiad combinatorics, I used a silly picture of Sogiita Gunha, but it was done within a context of a much longer post where it was meant to actually make a point.

On the other hand, there are many threads which consist largely of posts whose only content is an attached meme with the word "MAA" in it. When done in excess like this, the jokes reflect poorly on the community, so we explicitly discourage them.
-----------------------------
12. Questions that no one can answer: discouraged
Examples of this: "will MIT ask for AOIME scores?", "what will the AIME 2021 cutoffs be (asked in 2020)", etc. Basically, if you ask a question on this forum, it's better if the question is something that a user can plausibly answer :)
-----------------------------
13. Blind speculation: discouraged
Along these lines, if you do see a question that you don't have an answer to, we discourage "blindly guessing" as it leads to spreading of baseless rumors. For example, if you see some user posting "why are there fewer qualifiers than usual this year?", you should not reply "the MAA must have been worried about online cheating so they took fewer people!!". Was sich überhaupt sagen lässt, lässt sich klar sagen; und wovon man nicht reden kann, darüber muss man schweigen.
-----------------------------
14. Discussion of cheating: strongly discouraged
If you have evidence or reasonable suspicion of cheating, please report this to your Competition Manager or to the AMC HQ; these forums cannot help you.
Otherwise, please avoid public discussion of cheating. That is: no discussion of methods of cheating, no speculation about how cheating affects cutoffs, and so on --- it is not helpful to anyone, and it creates a sour atmosphere. A longer explanation is given in Seriously, please stop discussing how to cheat.
-----------------------------
15. Cutoff jokes: never allowed
Whenever the cutoffs for any major contest are released, it is very obvious when they are official. In the past, this has been achieved by the numbers being posted on the official AMC website (here) or through a post from the AMCDirector account.

You must never post fake cutoffs, even as a joke. You should also refrain from posting cutoffs that you've heard of via email, etc., because it is better to wait for the obvious official announcement. A longer explanation is given in A Treatise on Cutoff Trolling.
-----------------------------
16. Meanness: never allowed
Being mean is worse than being immature and unproductive. If another user does something which you think is inappropriate, use the Report button to bring the post to moderator attention, or if you really must reply, do so in a way that is tactful and constructive rather than inflammatory.
-----------------------------

Finally, we remind you all to sit back and enjoy the problems. :D

-----------------------------
(EDIT 2024-09-13: AoPS has asked to me to add the following item.)

Advertising paid program or service: never allowed

Per the AoPS Terms of Service (rule 5h), general advertisements are not allowed.

While we do allow advertisements of official contests (at the MAA and MATHCOUNTS level) and those run by college students with at least one successful year, any and all advertisements of a paid service or program is not allowed and will be deleted.
0 replies
v_Enhance
Jun 12, 2020
0 replies
k i Stop looking for the "right" training
v_Enhance   50
N Oct 16, 2017 by blawho12
Source: Contest advice
EDIT 2019-02-01: https://blog.evanchen.cc/2019/01/31/math-contest-platitudes-v3/ is the updated version of this.

EDIT 2021-06-09: see also https://web.evanchen.cc/faq-contest.html.

Original 2013 post
50 replies
v_Enhance
Feb 15, 2013
blawho12
Oct 16, 2017
A Familiar Point
v4913   51
N 7 minutes ago by xeroxia
Source: EGMO 2023/6
Let $ABC$ be a triangle with circumcircle $\Omega$. Let $S_b$ and $S_c$ respectively denote the midpoints of the arcs $AC$ and $AB$ that do not contain the third vertex. Let $N_a$ denote the midpoint of arc $BAC$ (the arc $BC$ including $A$). Let $I$ be the incenter of $ABC$. Let $\omega_b$ be the circle that is tangent to $AB$ and internally tangent to $\Omega$ at $S_b$, and let $\omega_c$ be the circle that is tangent to $AC$ and internally tangent to $\Omega$ at $S_c$. Show that the line $IN_a$, and the lines through the intersections of $\omega_b$ and $\omega_c$, meet on $\Omega$.
51 replies
v4913
Apr 16, 2023
xeroxia
7 minutes ago
Apple sharing in Iran
mojyla222   3
N 23 minutes ago by math-helli
Source: Iran 2025 second round p6
Ali is hosting a large party. Together with his $n-1$ friends, $n$ people are seated around a circular table in a fixed order. Ali places $n$ apples for serving directly in front of himself and wants to distribute them among everyone. Since Ali and his friends dislike eating alone and won't start unless everyone receives an apple at the same time, in each step, each person who has at least one apple passes one apple to the first person to their right who doesn't have an apple (in the clockwise direction).

Find all values of $n$ such that after some number of steps, the situation reaches a point where each person has exactly one apple.
3 replies
mojyla222
Apr 20, 2025
math-helli
23 minutes ago
Iran second round 2025-q1
mohsen   5
N 24 minutes ago by math-helli
Find all positive integers n>2 such that sum of n and any of its prime divisors is a perfect square.
5 replies
mohsen
Apr 19, 2025
math-helli
24 minutes ago
Iran Team Selection Test 2016
MRF2017   9
N an hour ago by SimplisticFormulas
Source: TST3,day1,P2
Let $ABC$ be an arbitrary triangle and $O$ is the circumcenter of $\triangle {ABC}$.Points $X,Y$ lie on $AB,AC$,respectively such that the reflection of $BC$ WRT $XY$ is tangent to circumcircle of $\triangle {AXY}$.Prove that the circumcircle of triangle $AXY$ is tangent to circumcircle of triangle $BOC$.
9 replies
MRF2017
Jul 15, 2016
SimplisticFormulas
an hour ago
2025 ELMOCOUNTS - Mock MATHCOUNTS Nationals
vincentwant   106
N an hour ago by mathkiddus
text totally not copied over from wmc (thanks jason <3)
Quick Links:
[list=disc]
[*] National: (Sprint) (Target) (Team) (Sprint + Target Submission) (Team Submission) [/*]
[*] Miscellaneous: (Leaderboard) (Sprint + Target Private Discussion Forum) (Team Discussion Forum)[/*]
[/list]
-----
Eddison Chen (KS '22 '24), Aarush Goradia (CO '24), Ethan Imanuel (NJ '24), Benjamin Jiang (FL '23 '24), Rayoon Kim (PA '23 '24), Jason Lee (NC '23 '24), Puranjay Madupu (AZ '23 '24), Andy Mo (OH '23 '24), George Paret (FL '24), Arjun Raman (IN '24), Vincent Wang (TX '24), Channing Yang (TX '23 '24), and Jefferson Zhou (MN '23 '24) present:



[center]IMAGE[/center]

[center]Image credits to Simon Joeng.[/center]

2024 MATHCOUNTS Nationals alumni from all across the nation have come together to administer the first-ever ELMOCOUNTS Competition, a mock written by the 2024 Nationals alumni given to the 2025 Nationals participants. By providing the next generation of mathletes with free, high quality practice, we're here to boast how strong of an alumni community MATHCOUNTS has, as well as foster interest in the beautiful art that is problem writing!

The tests and their corresponding submissions forms will be released here, on this thread, on Monday, April 21, 2025. The deadline is May 10, 2025. Tests can be administered asynchronously at your home or school, and your answers should be submitted to the corresponding submission form. If you include your AoPS username in your submission, you will be granted access to the private discussion forum on AoPS, where you can discuss the tests even before the deadline.
[list=disc]
[*] "How do I know these tests are worth my time?" [/*]
[*] "Who can participate?" [/*]
[*] "How do I sign up?" [/*]
[*] "What if I have multiple students?" [/*]
[*] "What if a problem is ambiguous, incorrect, etc.?" [/*]
[*] "Will there be solutions?" [/*]
[*] "Will there be a Countdown Round administered?" [/*]
[/list]
If you have any other questions, feel free to email us at elmocounts2025@gmail.com (or PM me)!
106 replies
vincentwant
Apr 20, 2025
mathkiddus
an hour ago
Equal area sum in regular n-gon triangulation
CyclicISLscelesTrapezoid   18
N an hour ago by Ilikeminecraft
Source: USAMO 2024/3
Let $m$ be a positive integer. A triangulation of a polygon is $m$-balanced if its triangles can be colored with $m$ colors in such a way that the sum of the areas of all triangles of the same color is the same for each of the $m$ colors. Find all positive integers $n$ for which there exists an $m$-balanced triangulation of a regular $n$-gon.

Note: A triangulation of a convex polygon $\mathcal{P}$ with $n \ge 3$ sides is any partitioning of $\mathcal{P}$ into $n-2$ triangles by $n-3$ diagonals of $\mathcal{P}$ that do not intersect in the polygon's interior.

Proposed by Krit Boonsiriseth
18 replies
CyclicISLscelesTrapezoid
Mar 20, 2024
Ilikeminecraft
an hour ago
Discuss the Stanford Math Tournament Here
Aaronjudgeisgoat   297
N an hour ago by Orthogonal.
I believe discussion is allowed after yesterday at midnight, correct?
If so, I will put tentative answers on this thread.
By the way, does anyone know the answer to Geometry Problem 5? I was wondering if I got that one right
Also, if you put answers, please put it in a hide tag

Answers for the Algebra Subject Test
Estimated Algebra Cutoffs
Answers for the Geometry Subject Test
Estimated Geo Cutoffs
Answers for the Discrete Subject Test
Estimated Cutoffs for Discrete
Answers for the Team Round
Guts Answers
297 replies
Aaronjudgeisgoat
Apr 14, 2025
Orthogonal.
an hour ago
funny title placeholder
pikapika007   58
N an hour ago by RaymondZhu
Source: USAJMO 2025/6
Let $S$ be a set of integers with the following properties:
[list]
[*] $\{ 1, 2, \dots, 2025 \} \subseteq S$.
[*] If $a, b \in S$ and $\gcd(a, b) = 1$, then $ab \in S$.
[*] If for some $s \in S$, $s + 1$ is composite, then all positive divisors of $s + 1$ are in $S$.
[/list]
Prove that $S$ contains all positive integers.
58 replies
pikapika007
Mar 21, 2025
RaymondZhu
an hour ago
Scores are out for jmo
imagien_bad   104
N an hour ago by study1126
RIP..................
104 replies
imagien_bad
Yesterday at 6:10 PM
study1126
an hour ago
Prove a polynomial has a nonreal root
KevinYang2.71   46
N 2 hours ago by megarnie
Source: USAMO 2025/2
Let $n$ and $k$ be positive integers with $k<n$. Let $P(x)$ be a polynomial of degree $n$ with real coefficients, nonzero constant term, and no repeated roots. Suppose that for any real numbers $a_0,\,a_1,\,\ldots,\,a_k$ such that the polynomial $a_kx^k+\cdots+a_1x+a_0$ divides $P(x)$, the product $a_0a_1\cdots a_k$ is zero. Prove that $P(x)$ has a nonreal root.
46 replies
KevinYang2.71
Mar 20, 2025
megarnie
2 hours ago
Tennessee Math Tournament (TMT) Online 2025
TennesseeMathTournament   85
N 2 hours ago by MathPerson12321
Hello everyone! We are excited to announce a new competition, the Tennessee Math Tournament, created by the Tennessee Math Coalition! Anyone can participate in the virtual competition for free.

The testing window is from March 22nd to April 12th, 2025. Virtual competitors may participate in the competition at any time during that window.

The virtual competition consists of three rounds: Individual, Bullet, and Team. The Individual Round is 60 minutes long and consists of 30 questions (AMC 10 level). The Bullet Round is 20 minutes long and consists of 80 questions (Mathcounts Chapter level). The Team Round is 30 minutes long and consists of 16 questions (AMC 12 level). Virtual competitors may compete in teams of four, or choose to not participate in the team round.

To register and see more information, click here!

If you have any questions, please email connect@tnmathcoalition.org or reply to this thread!

Thank you to our lead sponsor, Jane Street!

IMAGE
85 replies
TennesseeMathTournament
Mar 9, 2025
MathPerson12321
2 hours ago
An FE. Who woulda thunk it?
nikenissan   114
N 3 hours ago by blueprimes
Source: 2021 USAJMO Problem 1
Let $\mathbb{N}$ denote the set of positive integers. Find all functions $f : \mathbb{N} \rightarrow \mathbb{N}$ such that for positive integers $a$ and $b,$ \[f(a^2 + b^2) = f(a)f(b) \text{ and } f(a^2) = f(a)^2.\]
114 replies
nikenissan
Apr 15, 2021
blueprimes
3 hours ago
SCORES ARE OUT IN MAA PORTAL
youlost_thegame_1434   10
N 3 hours ago by YauYauFilter
see attached image
10 replies
youlost_thegame_1434
Yesterday at 10:09 PM
YauYauFilter
3 hours ago
SL Difficulty Level
MajesticCheese   5
N 3 hours ago by llddmmtt1
Is there a rough difficulty comparison between IMO shortlist questions and USAMO questions? For example,

SL 1, 2, 3 -> USAMO P1
SL 4, 5, 6 -> USAMO P2
SL 7, 8, 9 -> USAMO P3

(This is just my guess; probably not correct)

Also feel free to compare it with other competitions(like the jmo) as well! :-D
5 replies
MajesticCheese
Apr 20, 2025
llddmmtt1
3 hours ago
flipping rows on a matrix in F2
danepale   16
N Apr 9, 2025 by Marcus_Zhang
Source: Croatia TST 2016
Let $N$ be a positive integer. Consider a $N \times N$ array of square unit cells. Two corner cells that lie on the same longest diagonal are colored black, and the rest of the array is white. A move consists of choosing a row or a column and changing the color of every cell in the chosen row or column.
What is the minimal number of additional cells that one has to color black such that, after a finite number of moves, a completely black board can be reached?
16 replies
danepale
Apr 27, 2016
Marcus_Zhang
Apr 9, 2025
flipping rows on a matrix in F2
G H J
Source: Croatia TST 2016
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
danepale
99 posts
#1 • 3 Y
Y by nguyendangkhoa17112003, Adventure10, Mango247
Let $N$ be a positive integer. Consider a $N \times N$ array of square unit cells. Two corner cells that lie on the same longest diagonal are colored black, and the rest of the array is white. A move consists of choosing a row or a column and changing the color of every cell in the chosen row or column.
What is the minimal number of additional cells that one has to color black such that, after a finite number of moves, a completely black board can be reached?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shinichiman
3212 posts
#2 • 9 Y
Y by baopbc, ineX, NTA1907, jev2001, tpdtthltvp, cookie112, bluedragon17, Adventure10, KK_1729
Answer

Solution
This post has been edited 4 times. Last edited by shinichiman, Apr 28, 2016, 1:08 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SFScoreLow
91 posts
#3 • 2 Y
Y by vjdjmathaddict, Adventure10
Inductive solution. We prove that at least $2N-4$ additional squares must be colored black. Number the rows $1$ to $N$ from bottom to top and columns $1$ to $N$ from left to right. Initially cells $(1,1)$ and $(N, N)$ are black.

Lemma. Every $2 \times 2$ square must contain an even number of black squares to begin with.
Proof. A move does not change the parity of the number of black squares within a $2 \times 2$ square since we either change $1, -1 \longleftrightarrow -1, 1$ or $1, 1 \longleftrightarrow -1, -1$. $\blacksquare$

Let $(i, j)_S$ denote the square containing cells $(i, j), (i+1, j), (i, j+1), (i+1, j+1)$.

Finally, proceed by induction. Base case $N = 2$ is trivial. Consider an $N \times N$ board. The squares $(1,1)_S$ and $(N-1, N-1)_S$ must contain at least one other black cell. Suppose cell $(2,2)$ (or $(N-1, N-1)$ symmetrically) is colored. If there are two black cells in the first row or first column, we can invoke the induction hypothesis to get that there are at least $2(N-1) - 2 + 2 = 2N-2$ black cells on the board to begin with. If, collectively, row $1$ and column $1$ contain only one black cell (on $(1,1)$) we can consider the two sequence of squares $(1, 2)_S \rightarrow (1,3)_S \rightarrow \cdots \rightarrow (1, N-1)_S$ and $(2,1)_S \rightarrow (3, 1)_S \rightarrow \cdots \rightarrow (N-1, 1)_S$ to get that there are at least $2(N-1)+1 = 2N-1$ black squares on the board. So we can assume that neither $(2,2)$ nor $(N-1, N-1)$ are colored.

WLOG $(1,2)$ is colored black. If $(N, N-1)$ is also coloured, we consider $(1, 2)_S \rightarrow (1,3)_S \rightarrow \cdots \rightarrow (1, N-1)_S$ and $(N-1,N-2)_S \rightarrow (N-1, N-3)_S \rightarrow \cdots \rightarrow (N-1, 1)_S$ to get that there are at least $2N$ black squares (each square in the sequences above 'adds' a black cell, creating a snake-like pattern extending across the board. Note that by adding a black cell to $(1, k)_S$ we also add one to $(1, k+1)_S$ because otherwise $(2,2)$ must be colored black). Hence (since $(N, N-1)$ and $(N-1, N-1)$ are both white) $(N-1, N)$ is colored black. This allows us to consider $(1, 2)_S \rightarrow (1,3)_S \rightarrow \cdots \rightarrow (1, N-2)_S$ and $(N-1, N-1)_S \rightarrow (N-2, N-1) \rightarrow \cdots \rightarrow (2, N-1)$ to conclude that at least $2(N-1) = 2N-2$ squares are colored unless the cell $(2, N-1)$, the overlap of $(1, N-2)_S$ and $(2, N-1)_S$, is black. But then cell $(1, N)$ must be colored black so that $(1, N-1)_S$ contains two black cells. In all cases we must have at least $2N-2$ squares colored black in order for the procedure to work. The construction is noted in the post above.
This post has been edited 3 times. Last edited by SFScoreLow, Apr 30, 2016, 1:48 AM
Reason: typos
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6874 posts
#4 • 9 Y
Y by Mathematicsislovely, CALCMAN, v4913, hakN, Executioner230607, HamstPan38825, Mango247, Mango247, MS_asdfgzxcvb
Solution from Twitch Solves ISL:

The answer is $2n-4$ additional cells.

We'll do the usual reduction: all the moves commute with each other and doing the same move twice does nothing. Also, it'll be more natural to get from all-white to the ``starting'' state; we'll do so as they are equivalent anyways.

Thus, we may as well assume (by permuting rows/columns)
  • we operated on the first $a$ rows;
  • we operated on the first $b$ columns.
The given hypothesis is equivalent to saying that if we do this operation on an initially empty board, then we got $k$ black cells, and at least two of them are not in the same row or column. The problem asks for the smallest possible value of $k-2$.
However, the point is that we have the explicit value \[ k = a(n-b) + b(n-a). \]It will be more economical actually to write \[ n^2 - k = ab + (n-a)(n-b) 	\le \sqrt{ \left( a^2+(n-a)^2 \right) 	\left( b^2+(n-b)^2 \right)}. \]We now analyze two cases:
  • If any of $a$ or $b$ are $0$ or $n$, we may directly check we need $k \ge 2n$ in order to have two black cells not in the same row or column.
  • Otherwise, $x^2 + (n-x)^2 \le 1 + (n-1)^2$ for $1 \le x \le n-1$, so \[ n^2 - k \le 1^2 + (n-1)^2 \]which means $k \ge 2n-2$.
In conclusion, $k-2 \ge 2n-4$; and moreover equality occurs at $a=b=1$, which is checked to indeed work.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bluedragon17
87 posts
#5
Y by
This is a very badly written solution, I am sorry for that :( . Also, my solution is almost the same solution as shinichiman's but I did not use the notation he used.
The answer is $2N-4$.

$N=2$ is trivial, so we let $N\ge3$.
Let $a_{k}$ be the number of times we change the colors in the $k$th column(and similarly $b_k$ for the rows.) For any cell $(i,j)$ we have,
$\Rightarrow a_{i} + b_{j} = 2k$ (if $(i,j)$ is black)
or
$\Rightarrow a_{i} + b_{j}= 2k+1$ (if $(i,j)$ is white )

$\textbf{Case:1}$ There is exactly one black cell in the first column.

So except for this cell, $a_1 + b_j$ is odd for all $j>1$. But since $(n,n)$ is initially black, we need all of the cells in the $n$th column to be black which gives us $N-2$ more cells( $b_j$ have the same parity). Also, notice that for any $k$th row, $a_k+b_j$ has the same parity, so initially, they are either all black or all white. (leaving the first cell in all the columns). To minimize we keep $1$ black cell in all these columns, so we get another $N-2$ from here giving us a total of $2N-4$ $\blacksquare$

$\textbf{Case:2}$ There is more than one black cell in the first column.

$a_1+b_j$ is again odd, so $b_j$ has the same parity but only for the black cells and of course, $j>1$.. So all the cells in the rows of these black cells are either all black or all white, we set all of them to be white to minimize. Thus, if we have $k\geq2$ additional black cells in the first column, we basically have $N-k$ additional black cells in the rest of the columns except for the last one. Using the same parity argument for the last column, we see that we atleast need $k-2$ additional black cells taking account of the fact that $(N,N)$ is already black.
$\Rightarrow$$k+(N-2)(N-k) + k-1 \geq k + 2(N-2) + k-2 > 2N-4$ $\blacksquare$
This post has been edited 4 times. Last edited by bluedragon17, Apr 13, 2022, 12:46 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mogmog8
1080 posts
#6 • 1 Y
Y by centslordm
Denote the square in the $i$th row and $j$th column as $(i,j)$. WLOG let $(1,1)$ and $(n,n)$ be the diagonally painted squares. We claim the answer is $2n-4$, which works when we paint the symmetric difference of the first column and last row. Swapping the last row and all the columns after the first gives a fully painted grid.

If we end up swapping $a$ rows and $b$ columns, we begin with $ab+(n-a)(n-b)$ painted squares. This is because $(i,j)$ must begin painted if and only if both row $i$ and column $j$ are swapped or they are both not swapped.

Consider when $a=0$. Then, we cannot swap the first or last column since $(1,1)$ and $(n,n)$ need to be swapped an even number of times. Hence, all of the first and last column need to be painted, resulting in at least $2n$ painted squares. If $a=n$, we must paint the first and last column so we again have at least $2n$ painted squares. Similarly, $b=0$ and $b=n$ yield at least $2n$ painted squares.

We claim that $ab+(n-a)(n-b)\ge 2n-2$ when $0<a,b<n$. Indeed, \[0\le (n-a-b)^2=[n^2+2ab-n(a+b)]-[n(a+b)-a^2-b^2]\]so \begin{align*}[ab+(n-a)(n-b)]-[2n-2]&=2ab+n^2-n(a+b)-2n+2\\&\ge n(a+b)-a^2-b^2-2n+2\\&=[n(a-1)-a^2+1]+[n(b-1)-b^2+1]\\&=(n-a-1)(a-1)+(n-b-1)(b-1)\\&\ge 0\end{align*}as desired. $\square$
This post has been edited 1 time. Last edited by Mogmog8, Feb 24, 2023, 8:54 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8857 posts
#7
Y by
The answer is $2n-4$. For a construction, color one row that contains one of the corner squares black, a column that contains the other corner square black, and their intersection white. We will look at the problem backwards, where we start from a completely black grid and attempt to leave as minimal black squares left as possible via valid operations.

Claim. Suppose that $k \geq n-1$ rows and columns that are not along the periphery of the grid are chosen. Then the number of intersection points between these rows and columns is at least $(n-2)(k-n+2)$.

Proof. Tautological. $\blacksquare$

Thus, if $k \geq n-1$ rows and columns are chosen, the number of white squares (squares toggled exactly once) within the interior $(n-2) \times (n-2)$ square is at most $(n-2)^2-(n-2)(k-n+2) = (n-2)(2n-4-k)$.

On the other hand, the number of squares that are now white that share a row or column with each one of the corner squares is precisely $k$ respectively. Thus, we can guarantee at most $\text{max}(k, 2n-2-k) = k$ more white squares among the non-corner periphery squares, as both of the edge rows and columns can be toggled or neither can be toggled to keep the corner square black. (Note that the two other corners can be made white.) As a result, the total number of white squares is at most $$N = (n-2)(2n-k) + 2k + 2 = n(n-2) + 2 - (n-4)(k-n+2) \leq n^2-2n+2.$$This proves the bound for $k \geq n-1$; if $k \leq n-2$, the total number of toggled squares is obviously at most $n^2-2n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pinkpig
3761 posts
#8
Y by
solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
joshualiu315
2513 posts
#9
Y by
For this solution, denote $(i,j)$ as the square in the $i$th row and $j$th column; we will consider getting from the all-white state to our starting position as it is easier to work with.

The answer is $\boxed{2n-4}$. Letting the original shaded squares be $(1,1)$ and $(n,n)$, the optimal coloring being the symmetric difference of row $1$ and column $n$.

For simplicity, denote each row/column as \textit{toggled} if it differs from its original state and \textit{original} otherwise. Suppose we toggle $a$ rows and $b$ columns. For $(i,j)$, ending up as a white square in the starting position requires both row $i$ and column $j$ to either be both toggled or both original, hence the number of black squares in the starting position is

\[n^2-ab+(n-a)(n-b) \ge n^2-\sqrt{(a^2+(n-a)^2)(b^2+(n-b)^2)}\]
where the inequality follows by Cauchy. Then, it follows that the RHS is optimized at $a=b=1$, which corresponds to $2n-2$ squares starting out black. Taking away the corners gives our desired minimum.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dolphinday
1323 posts
#10
Y by
All moves are commutative, so we only need to invert rows and columns at most once, and order doesn't matter.
$\newline$
Consider starting from an all-white position, and inverting to our starting position.
$\newline$
If we invert $a$ rows and $b$ columns, then the total number of black squares in our starting position is $n^2- (ab + (n - a)(n - b))$, because a square is left white(and needs to be colored black) if it is inverted $0$ times or $2$ times.
Our goal is to minimize $ab + (n - a)(n - b)$.
$\newline$
Note that \[(ab + (n - a)(n - b)) \leq \sqrt{(a^2 + (n - a)^2)(b^2 + (n - a)^2}\]\[\sqrt{(a^2 + (n - a)^2)(b^2 + (n - a)^2} \geq \sqrt{(1^2 + (n - 1)^2)(1^2 + (n - 1)^2} = n^2 - 2n + 2\].
\[n^2 - (n^2 - 2n + 2) = 2n - 2\].
Subtracting two(because the corner cells are already filled in) gives us $2n - 4$ which is achievable by coloring $n - 2$ cells on the bottom row(without coloring in the corner cell) and then coloring $n - 2$ cells on the left column without coloring in the corner cell.
$\newline$
Swapping the bottom row and then the leftmost column makes everything white, and from there it is easy to swap to make everything black.
This post has been edited 1 time. Last edited by dolphinday, Jan 6, 2024, 3:27 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
794 posts
#11
Y by
Noting that operations are commutable and that it is useless to operate on a single row/column multiple times, suppose we operate on $x$ rows and $y$ columns, where $0 \leq x, y \leq n$. Then the number of squares toggled an even number of times is
\[ab + (n-a)(n-b) = n^2-(a+b)n+2ab,\]
or the number of originally black squares. To minimize this expression, note $(x,y) = (0,n)$ fails, so the next best we can do is $(x,y)=(1,n-1)$, which is easy to construct. Thus our answer is
\[\left(n^2-n \cdot n + 2(n-1)\right) - 2 = \boxed{2n-4}.\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
two_steps
102 posts
#12
Y by
is this correct?

Let $a_{i,j} \in \{0,1\}$ refer to the color of the cell at the $i$th row $j$th column, where $1$ is black and $0$ is white. A move is equivalent to adding one to each cell of a row/column modulo $2$. Note that applying the move to the same row/column twice is pointless, and the order of the moves doesn't matter. Next, observe that once we've determined whether the first row is flipped, we also determine whether each of the columns are flipped. (If $a_{1,j}$ is currently white, we must flip column $j$, and otherwise, we don't.) Once we apply these determined moves, each row must be monochromatic (since we've determined everything else).

Let row $1$ have $k$ black cells after we've determined if it's flipped. Then, we'd have to flip $n-k$ columns. For each row, the flipped cells and not flipped cells must initially have different colors in order for the rows to be monochromatic after applying the column moves. Thus, there are either $k$ or $n-k$ black cells in each row (including the first). For a fixed $2\le k\le n-2$, the least number of additional black cells is
\[n\min\{k,n-k\}-2\ge 2n-2\]For $k=1$ or $n-1$, we actually can't achieve $n$ since it would imply that the original configuration solely consists of the first column black. The next smallest value is
\[(n-1) + \underbrace{1 + \cdots + 1}_{n-1} - 2 = 2n-4\]For $k=0$ or $n$, the original configuration would consist of monochromatic rows, yielding a minimum of $2n$. Overall, the minimum is $2n-4$. This may be achieved by coloring $a_{1,k}$ and $a_{k, n}$ black for $2\le k \le n-1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
peace09
5417 posts
#13
Y by
Posting solely to commemorate the remarkable idiocy of my solution... I guess that's what happens when you spend less than 25% of the last week asleep :coolspeak:

One can reduce any sequence of moves to the states of $2n$ toggles, one for each row and column. The corners being black implies that exactly one of $r_1,c_1$ and exactly one of $r_n,c_n$ are toggled. Whence the answer is $\boxed{2n-4}$ by toggling $r_1,c_n$ (Case 1), in which case optimality follows since pairs of non-vertex points on opposite sides are of opposite states. If $r_1,r_n$ are toggled (or $c_1,c_n$ but WLOG let it be the former; Case 2), ... let's do something silly: label a row by $1$ if it is untoggled and $i$ if it toggled, and let each cell be the product of its row and column. If $r_u$ is the number of untoggled rows and so on, we want to min
\[\text{Im}((r_u+r_ti)(c_u+c_ti))=r_uc_t+r_tc_u.\]Here in Case 2, we have $r_t,c_u\ge2$, at which point the minimum is clearly $2n\ge2n-4$ at, say, $(0,n,n-2,2)$.
This post has been edited 2 times. Last edited by peace09, Apr 27, 2024, 8:16 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueprimes
334 posts
#14
Y by
For $N = 1$ the answer is trivially $0$. For $N \ge 2$ we claim the answer is $2N - 4$.

For construction, define column $i$ as the column with $i - 1$ columns to the left of it. Define similarly for rows from the bottom. Then assign each cell a coordinate $(i, j)$ on column $i$ and row $j$. WLOG $(1, 1)$ and $(N, N)$ are black. Then color $(i, j)$ black if $1 \le i \le N - 1, j = 0$ or $i = N, 1 \le j \le N - 1$. Note that this configuration is valid as we can toggle the columns $1, 2, \dots, N - 1$ and row $1$ which turns it all black.

To show it is the actual minimum, consider the all-black array. It suffices to show that if we toggle rows/columns that leaves two opposite corners black, then there must be at least $2N - 2$ black cells on the array. Suppose we toggle $1 \le r \le N$ rows and $1 \le c \le N$ columns, there will be
$$rc + (N - r)(N - c) = 2rc - N(r + c) + N^2 = \frac{(2r - N)(2c - N) + N^2}{2}$$black cells. WLOG $r \ge c$. Then $(2r - N, 2c - N) = (N, -N), (N - 2, -N), (N - 2, -N + 2) \implies (r, c) = (N, 0), (N - 1, 0), (N - 1, 1)$ generate the three smallest possible values of the above quantity in order. Clearly toggling $N$ or $N - 1$ rows cannot form two opposite black corners, but $(N - 1, 1)$ has a valid construction (we described it earlier.) Hence plugging in we have
$$(\text{number of black cells}) \ge \frac{(N - 2)(-N + 2) + N^2}{2} = \frac{4N - 4}{2} = 2N - 2$$and 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.
EpicBird08
1749 posts
#15
Y by
My solution is different from the rest of the solutions on this thread, would appreciate if someone could check it. :)

Assume that the two diagonally black corners are in the top left and bottom right. The problem is equivalent to coloring the entire grid white as we can then flip the color of every row to get an entirely black grid.

The answer is $\boxed{2n-4}.$ For the construction, we color all the edge pieces on the top and right edges of our grid black, giving $2n - 4$ additional black squares colored. This can be turned into the grid with all black squares as we flip the color of the first row and the last column to get an entirely white grid.

Now we will show that we cannot do better. Assume for the sake of contradiction that at most $2n-5$ additional black squares can be colored so that the grid can be made entirely white. Notice that flipping the color of any row or column twice will do nothing, so we can assume that we flip the color of any row or column at most once.

To turn the bottom right black square into a white square, we must flip the color of exactly one of the last row or the last column. Without loss of generality, suppose that we flip the color of the last row. Then the bottom left corner is now colored black, so we must flip the color of the first column to make it white. Since we use at most $2n-5$ additional black squares and there are $2n-4$ edge squares which we flipped the color of, there is at least one edge square at this point which is now black. Suppose that this edge square is on the bottom row. Since we already flipped the bottom row, we must flip the color of the column of this black square. The result is a shaded square on the top edge. Since we already flipped the column of this new square, we must flip the top row of the grid, which shades the top left corner black. Since we flipped both the top row and leftmost column of the grid, this is a contradiction, and we are done.
This post has been edited 2 times. Last edited by EpicBird08, Dec 26, 2024, 2:28 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
550 posts
#16
Y by
We claim that the minimum is $2n-4.$ For the construction, pick a corner point not shaded yet and shade everything between this point and a shaded corner, as well as with the other shaded corner. (excluding the endpoints) Then, we can shade the two rows/columns passing through our unshaded corner point to make the entire board white, then we invert the board by inverting every row.

It now suffices to prove the bound. Since every operation is inversible and commutative, it suffices to start from a white board, and find a set of operations that makes at least $2$ squares in two corners black at the end, while minimizing the number of black squares at the end too. Suppose that we toggle $a$ rows and $b$ columns. Then clearly $a+b \geq 2$ in order for it to be possible to choose rows and columns so that the two corner squares are turned black. Similarly we have $a+b \leq n-2.$ Then, observe that after the operations, there are always $na+nb-2ab$ black squares. This also equals $\frac12 \left( n^2-(n-2a)(n-2b) \right).$ It thus suffices to maximize $(n-2a)(n-2b).$ Clearly both of these factors are either positive or negative. If they are both positive, we wish to minimize both $a, b.$ Thus either $(a, b) = (1, 1), (2, 0), (0, 2).$ In the former case we get $2n-2,$ while the other cases yield $n.$ Clearly the maximum is $2n-2$ so in total we would need to add $2n-4$ black squares in the original grid. This result can be similarly found if $(n-2a), (n-2b)$ are both negative. Therefore, the minimum is indeed $2n-4$ black squares.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Marcus_Zhang
979 posts
#17
Y by
Bad write up
Z K Y
N Quick Reply
G
H
=
a