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 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
Permutations of Integers from 1 to n
Twoisntawholenumber   75
N an hour ago by SYBARUPEMULA
Source: 2020 ISL C1
Let $n$ be a positive integer. Find the number of permutations $a_1$, $a_2$, $\dots a_n$ of the
sequence $1$, $2$, $\dots$ , $n$ satisfying
$$a_1 \le 2a_2\le 3a_3 \le \dots \le na_n$$.

Proposed by United Kingdom
75 replies
1 viewing
Twoisntawholenumber
Jul 20, 2021
SYBARUPEMULA
an hour ago
Again
heartwork   11
N 2 hours ago by Mathandski
Source: Vietnam MO 2002, Problem 5
Determine for which $ n$ positive integer the equation: $ a + b + c + d = n \sqrt {abcd}$ has positive integer solutions.
11 replies
heartwork
Dec 16, 2004
Mathandski
2 hours ago
Cono Sur Olympiad 2011, Problem 3
Leicich   5
N 2 hours ago by Thelink_20
Let $ABC$ be an equilateral triangle. Let $P$ be a point inside of it such that the square root of the distance of $P$ to one of the sides is equal to the sum of the square roots of the distances of $P$ to the other two sides. Find the geometric place of $P$.
5 replies
Leicich
Aug 23, 2014
Thelink_20
2 hours ago
IMO Genre Predictions
ohiorizzler1434   69
N 2 hours ago by whwlqkd
Everybody, with IMO upcoming, what are you predictions for the problem genres?


Personally I predict: predict
69 replies
ohiorizzler1434
May 3, 2025
whwlqkd
2 hours ago
ranttttt
alcumusftwgrind   41
N Yesterday at 7:58 PM by meyler
rant
41 replies
alcumusftwgrind
Apr 30, 2025
meyler
Yesterday at 7:58 PM
high tech FE as J1?!
imagien_bad   62
N Yesterday at 7:44 PM by jasperE3
Source: USAJMO 2025/1
Let $\mathbb Z$ be the set of integers, and let $f\colon \mathbb Z \to \mathbb Z$ be a function. Prove that there are infinitely many integers $c$ such that the function $g\colon \mathbb Z \to \mathbb Z$ defined by $g(x) = f(x) + cx$ is not bijective.
Note: A function $g\colon \mathbb Z \to \mathbb Z$ is bijective if for every integer $b$, there exists exactly one integer $a$ such that $g(a) = b$.
62 replies
imagien_bad
Mar 20, 2025
jasperE3
Yesterday at 7:44 PM
Stanford Math Tournament (SMT) 2025
stanford-math-tournament   5
N Yesterday at 7:35 PM by Munmun5
[center] :trampoline: :first: Stanford Math Tournament :first: :trampoline: [/center]

----------------------------------------------------------

[center]IMAGE[/center]

We are excited to announce that registration is now open for Stanford Math Tournament (SMT) 2025!

This year, we will welcome 800 competitors from across the nation to participate in person on Stanford’s campus. The tournament will be held April 11-12, 2025, and registration is open to all high-school students from the United States. This year, we are extending registration to high school teams (strongly preferred), established local mathematical organizations, and individuals; please refer to our website for specific policies. Whether you’re an experienced math wizard, a puzzle hunt enthusiast, or someone looking to meet new friends, SMT has something to offer everyone!

Register here today! We’ll be accepting applications until March 2, 2025.

For those unable to travel, in middle school, or not from the United States, we encourage you to instead register for SMT 2025 Online, which will be held on April 13, 2025. Registration for SMT 2025 Online will open mid-February.

For more information visit our website! Please email us at stanford.math.tournament@gmail.com with any questions or reply to this thread below. We can’t wait to meet you all in April!

5 replies
stanford-math-tournament
Feb 1, 2025
Munmun5
Yesterday at 7:35 PM
Goals for 2025-2026
Airbus320-214   141
N Yesterday at 7:30 PM by ZMB038
Please write down your goal/goals for competitions here for 2025-2026.
141 replies
Airbus320-214
May 11, 2025
ZMB038
Yesterday at 7:30 PM
Holy garbanzo
centslordm   13
N Yesterday at 5:55 PM by daijobu
Source: 2024 AMC 12A #23
What is the value of \[\tan^2 \frac {\pi}{16} \cdot \tan^2 \frac {3\pi}{16} + \tan^2 \frac {\pi}{16} \cdot \tan^2 \frac {5\pi}{16}+\tan^2 \frac {3\pi}{16} \cdot \tan^2 \frac {7\pi}{16}+\tan^2 \frac {5\pi}{16} \cdot \tan^2 \frac {7\pi}{16}?\]
$\textbf{(A) } 28 \qquad \textbf{(B) } 68 \qquad \textbf{(C) } 70 \qquad \textbf{(D) } 72 \qquad \textbf{(E) } 84$
13 replies
centslordm
Nov 7, 2024
daijobu
Yesterday at 5:55 PM
[MAIN ROUND STARTS MAY 17] OMMC Year 5
DottedCaculator   62
N Yesterday at 4:03 PM by Craftybutterfly
Hello to all creative problem solvers,

Do you want to work on a fun, untimed team math competition with amazing questions by MOPpers and IMO & EGMO medalists? $\phantom{You lost the game.}$
Do you want to have a chance to win thousands in cash and raffle prizes (no matter your skill level)?

Check out the fifth annual iteration of the

Online Monmouth Math Competition!

Online Monmouth Math Competition, or OMMC, is a 501c3 accredited nonprofit organization managed by adults, college students, and high schoolers which aims to give talented high school and middle school students an exciting way to develop their skills in mathematics.

Our website: https://www.ommcofficial.org/
Our Discord (6000+ members): https://tinyurl.com/joinommc
Test portal: https://ommc-test-portal-2025.vercel.app/

This is not a local competition; any student 18 or younger anywhere in the world can attend. We have changed some elements of our contest format, so read carefully and thoroughly. Join our Discord or monitor this thread for updates and test releases.

How hard is it?

We plan to raffle out a TON of prizes over all competitors regardless of performance. So just submit: a few minutes of your time will give you a great chance to win amazing prizes!

How are the problems?

You can check out our past problems and sample problems here:
https://www.ommcofficial.org/sample
https://www.ommcofficial.org/2022-documents
https://www.ommcofficial.org/2023-documents
https://www.ommcofficial.org/ommc-amc

How will the test be held?/How do I sign up?

Solo teams?

Test Policy

Timeline:
Main Round: May 17th - May 24th
Test Portal Released. The Main Round of the contest is held. The Main Round consists of 25 questions that each have a numerical answer. Teams will have the entire time interval to work on the questions. They can submit any time during the interval. Teams are free to edit their submissions before the period ends, even after they submit.

Final Round: May 26th - May 28th
The top placing teams will qualify for this invitational round (5-10 questions). The final round consists of 5-10 proof questions. Teams again will have the entire time interval to work on these questions and can submit their proofs any time during this interval. Teams are free to edit their submissions before the period ends, even after they submit.

Conclusion of Competition: Early June
Solutions will be released, winners announced, and prizes sent out to winners.

Scoring:

Prizes:

I have more questions. Whom do I ask?

We hope for your participation, and good luck!

OMMC staff

OMMC’S 2025 EVENTS ARE SPONSORED BY:

[list]
[*]Nontrivial Fellowship
[*]Citadel
[*]SPARC
[*]Jane Street
[*]And counting!
[/list]
62 replies
+2 w
DottedCaculator
Apr 26, 2025
Craftybutterfly
Yesterday at 4:03 PM
2v2 (bob lost the game)
GoodMorning   85
N Yesterday at 1:18 PM by maromex
Source: 2023 USAJMO Problem 5/USAMO Problem 4
A positive integer $a$ is selected, and some positive integers are written on a board. Alice and Bob play the following game. On Alice's turn, she must replace some integer $n$ on the board with $n+a$, and on Bob's turn he must replace some even integer $n$ on the board with $n/2$. Alice goes first and they alternate turns. If on his turn Bob has no valid moves, the game ends.

After analyzing the integers on the board, Bob realizes that, regardless of what moves Alice makes, he will be able to force the game to end eventually. Show that, in fact, for this value of $a$ and these integers on the board, the game is guaranteed to end regardless of Alice's or Bob's moves.
85 replies
GoodMorning
Mar 23, 2023
maromex
Yesterday at 1:18 PM
Suggestions for preparing for AMC 12
peppermint_cat   3
N Yesterday at 7:14 AM by Konigsberg
So, I have decided to attempt taking the AMC 12 this fall. I don't have any experience with math competitions, and I thought that here might be a good place to see if anyone who has taken the AMC 12 (or done any other math competitions) has any suggestions on what to expect, how to prepare, etc. Thank you!
3 replies
peppermint_cat
Yesterday at 1:04 AM
Konigsberg
Yesterday at 7:14 AM
Harmonic Mean
Happytycho   4
N Yesterday at 4:42 AM by elizhang101412
Source: Problem #2 2016 AMC 12B
The harmonic mean of two numbers can be calculated as twice their product divided by their sum. The harmonic mean of $1$ and $2016$ is closest to which integer?

$\textbf{(A)}\ 2 \qquad
\textbf{(B)}\ 45 \qquad
\textbf{(C)}\ 504 \qquad
\textbf{(D)}\ 1008 \qquad
\textbf{(E)}\ 2015 $
4 replies
Happytycho
Feb 21, 2016
elizhang101412
Yesterday at 4:42 AM
Jane street swag package? USA(J)MO
arfekete   31
N Yesterday at 1:48 AM by vsarg
Hey! People are starting to get their swag packages from Jane Street for qualifying for USA(J)MO, and after some initial discussion on what we got, people are getting different things. Out of curiosity, I was wondering how they decide who gets what.
Please enter the following info:

- USAMO or USAJMO
- Grade
- Score
- Award/Medal/HM
- MOP (yes or no, if yes then color)
- List of items you got in your package

I will reply with my info as an example.
31 replies
arfekete
May 7, 2025
vsarg
Yesterday at 1:48 AM
BMO 2021 problem 3
VicKmath7   20
N Apr 27, 2025 by Grasshopper-
Source: Balkan MO 2021 P3
Let $a, b$ and $c$ be positive integers satisfying the equation $(a, b) + [a, b]=2021^c$. If $|a-b|$ is a prime number, prove that the number $(a+b)^2+4$ is composite.

Proposed by Serbia
20 replies
VicKmath7
Sep 8, 2021
Grasshopper-
Apr 27, 2025
BMO 2021 problem 3
G H J
G H BBookmark kLocked kLocked NReply
Source: Balkan MO 2021 P3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VicKmath7
1390 posts
#1 • 2 Y
Y by jhu08, PineApplePen
Let $a, b$ and $c$ be positive integers satisfying the equation $(a, b) + [a, b]=2021^c$. If $|a-b|$ is a prime number, prove that the number $(a+b)^2+4$ is composite.

Proposed by Serbia
This post has been edited 1 time. Last edited by VicKmath7, Jan 1, 2023, 2:17 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
laikhanhhoang_3011
637 posts
#2 • 1 Y
Y by jhu08
look like it is not difficult but small cases confused us
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
InvertedDiabloNemesisXD
6 posts
#3 • 3 Y
Y by jhu08, Danie1, Arabian_Math
Case Bash solution
Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
BarisKoyuncu
577 posts
#4 • 2 Y
Y by jhu08, Iora
WLOG $a-b=p$ where $p$ is a prime number.
i) $p|b$
Let $b=pd$. Then, $(a,b)=(pd+p,pd)=p(d+1,d)=p$ and $[a,b]=[pd+p,pd]=p[d+1,d]=pd(d+1)$. Hence, $p+pd(d+1)=2021^c\Rightarrow p|2021^c\Rightarrow p|2021\Rightarrow p=43,47$.
i.a) $p=43$
$2021^c=p(d^2+d+1)=43(d^2+d+1)\Rightarrow d^2+d+(1-43^{c-1}\cdot 47^c)=0$. Hence, the number $\triangle_d 1-4(1-43^{c-1}\cdot 47^c)=4\cdot 43^{c-1}\cdot 47^c-3$ must a perfect square. But, $4\cdot 43^{c-1}\cdot 47^c-3\equiv -3\pmod{47}$ and $47\equiv 2\pmod{3}$. So, this number cannot be a perfect square. Contradiction.
i.b) $p=47$
$2021^c=p(d^2+d+1)=47(d^2+d+1)\Rightarrow d^2+d+(1-43^c\cdot 47^{c-1})=0$. Hence, the number $\triangle_d 1-4(1-43^c\cdot 47{c-1}c)=4\cdot 43^c\cdot 47^{c-1}-3$ must a perfect square. If $c\ge 2$, again $4\cdot 43^c\cdot 47^{c-1}-3\equiv -3\pmod{47}$. Contradiction. Thus, $c=1$. Then, $\triangle_d=4\cdot 43^c\cdot 47^{c-1}-3=4\cdot 43-3=169=13^2$. Hence, $d=\dfrac{-1\pm\sqrt{\triangle_d}}{2}=\dfrac{-1\pm 13}{2}=\{-7,6\}$. Since $d>0$, we find that $d=6$. Then, $b=pd=47\cdot 6=282$ and $a=b+p=282+47=329\Rightarrow (a+b)^2+4=611^2+4\equiv 0\pmod{5}$. Clearly, $611^2+4>5$, so it is composite.
ii) $p\not |b$
Then, $(a,b)=(b+p,b)=(b,p)=1$ and $[a,b]=[b+p,b]=(b+p)b$. Hence, $1+(b+p)b=2021^c\Rightarrow b^2+pb+(1-2021^c)=0$. Hence, the number $\triangle_d=p^2-4(1-2021^c)=p^2+4\cdot 2021^c-4$ must be a perfect square. Let $p^2+4\cdot 2021^c-4=t^2$ where $t\in \mathbb{Z^+}$. Then, $b=\dfrac{-p\pm \sqrt{t^2}}{2}$ and since $b>0$, we find that $b=\dfrac{t-p}{2}$. Then, $(a+b)^2+4=\left(\dfrac{t-p}{2}+\dfrac{t+p}{2}\right)^2+4=t^2+4$. Suppose that $t^2+4=q$ where $q$ is a prime number. Hence, $p^2+4\cdot 2021^c=t^2+4=q$.
ii.a) $c$ is even.
Let $c=2c_1$. Then, $p^2+(2\cdot 2021^{c_1})^2=q=t^2+2^2$. But, each prime number can be written in $1$ or $0$ different way as the sum of $2$ perfect squares. Thus, $\{p,2\cdot 2021^{c_1}\}=\{t,2\}$. Clearly, $2\cdot 2021^{c_1}>2$ so $p=2$. Then $q=p^2+4\cdot 2021^c\equiv 0\mod{2}\Rightarrow q=2$ but $p^2+4\cdot 2021^c>$. Contradiction.
ii.b) $c$ is odd.
If $p\neq 3$, then $t^2+4=p^2+4\cdot 2021^c\equiv (-1)^c\equiv -1\pmod{3}\Rightarrow t^2\equiv 2\pmod{3}$. Contradiction. So $p=3$. Then, $t^2+4=9+4\cdot 2021^c\equiv 9\pmod{47}\Rightarrow t^2\equiv 5\pmod{47}$. Contradiction.
This post has been edited 1 time. Last edited by BarisKoyuncu, Sep 8, 2021, 5:34 PM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
grupyorum
1424 posts
#6 • 1 Y
Y by jhu08
BarisKoyuncu wrote:
WLOG $a-b=p$ where $p$ is a prime number.
i) $p|b$
Let $b=pd$. Then, $(a,b)=(pd+p,pd)=p(d+1,d)=p$ and $[a,b]=[pd+p,pd]=p[d+1,d]=pd(d+1)$. Hence, $p+pd(d+1)=2021^c\Rightarrow p|2021^c\Rightarrow p|2021\Rightarrow p=43,47$.
i.a) $p=43$
$2021^c=p(d^2+d+1)=43(d^2+d+1)\Rightarrow d^2+d+(1-43^{c-1}\cdot 47^c)=0$. Hence, the number $\triangle_d 1-4(1-43^{c-1}\cdot 47^c)=4\cdot 43^{c-1}\cdot 47^c-3$ must a perfect square. But, $4\cdot 43^{c-1}\cdot 47^c-3\equiv -3\pmod{47}$ and $47\equiv 2\pmod{3}$. So, this number cannot be a perfect square. Contradiction.
i.b) $p=47$
$2021^c=p(d^2+d+1)=47(d^2+d+1)\Rightarrow d^2+d+(1-43^c\cdot 47^{c-1})=0$. Hence, the number $\triangle_d 1-4(1-43^c\cdot 47{c-1}c)=4\cdot 43^c\cdot 47^{c-1}-3$ must a perfect square. If $c\ge 2$, again $4\cdot 43^c\cdot 47^{c-1}-3\equiv -3\pmod{47}$. Contradiction. Thus, $c=1$. Then, $\triangle_d=4\cdot 43^c\cdot 47^{c-1}-3=4\cdot 43-3=169=13^2$. Hence, $d=\dfrac{-1\pm\sqrt{\triangle_d}}{2}=\dfrac{-1\pm 13}{2}=\{-7,6\}$. Since $d>0$, we find that $d=6$. Then, $b=pd=47\cdot 6=282$ and $a=b+p=282+47=329\Rightarrow (a+b)^2+4=611^2+4\equiv 0\pmod{5}$. Clearly, $611^2+4>5$, so it is composite.
ii) $p\not |b$
Then, $(a,b)=(b+p,b)=(b,p)=1$ and $[a,b]=[b+p,b]=(b+p)b$. Hence, $1+(b+p)b=2021^c\Rightarrow b^2+pb+(1-2021^c)=0$. Hence, the number $\triangle_d=p^2-4(1-2021^c)=p^2+4\cdot 2021^c-4$ must be a perfect square. Let $p^2+4\cdot 2021^c-4=t^2$ where $t\in \mathbb{Z^+}$. Then, $b=\dfrac{-p\pm \sqrt{t^2}}{2}$ and since $b>0$, we find that $b=\dfrac{t-p}{2}$. Then, $(a+b)^2+4=\left(\dfrac{t-p}{2}+\dfrac{t+p}{2}\right)^2+4=t^2+4$. Suppose that $t^2+4=q$ where $q$ is a prime number. Hence, $p^2+4\cdot 2021^c=t^2+4=q$.
ii.a) $c$ is even.
Let $c=2c_1$. Then, $p^2+(2\cdot 2021^{c_1})^2=q=t^2+2^2$. But, each prime number can be written in $1$ or $0$ different way as the sum of $2$ perfect squares. Thus, $\{p,2\cdot 2021^{c_1}\}=\{t,2\}$. Clearly, $2\cdot 2021^{c_1}>2$ so $p=2$. Then $q=p^2+4\cdot 2021^c\equiv 0\mod{2}\Rightarrow q=2$ but $p^2+4\cdot 2021^c>$. Contradiction.
ii.b) $c$ is odd.
If $p\neq 3$, then $t^2+4=p^2+4\cdot 2021^c\equiv (-1)^c\equiv -1\pmod{3}\Rightarrow t^2\equiv 2\pmod{3}$. Contradiction. So $p=3$. Then, $t^2+4=9+4\cdot 2021^c\equiv 9\pmod{47}\Rightarrow t^2\equiv 5\pmod{47}$. Contradiction.

You can excise a fair amount of work here. Let $d={\rm gcd}(a,b)$ with $a=da_1$ and $b=db_1$, $(a_1,b_1)=1$. Assume w.l.o.g. $a_1>b_1$ (clearly $a\ne b$). We then have $d(a_1-b_1)=p$ for a prime $p$, thus $d\in\{1,p\}$. Now, if $d=p$ then we obtain that
\[
d\left(b_1^2+b_1+1\right)=43^c\cdot 47^c.
\]If $47\mid b_1^2+b_1+1$, then $47\mid (2b_1+1)^2+3$, but $(-3/47)=-1$ as $47\equiv -1\pmod{6}$. Hence, in this case, $47^c\mid d = p$, thus $c=1$ and $d=47$ is the only possibility. With this we find $b_1^2+b_1+1=43$, for which $(a_1,b_1)=(7,6)$ is obtained; and for this solution, $(a+b)^2+4>5$ is divisible by $5$, hence is the conclusion.

This brings us to the case $(a,b)=1$, $a-b=p$, which is handled exactly as demonstrated by Baris. (Let me also add that one way to prove the also contradiction, $t^2\equiv 5\pmod{47}$, in the very last step is to use the quadratic reciprocity: $(5/47)(47/5)=1$ whereas $(57/5)=(2/5)=-1$.)
This post has been edited 1 time. Last edited by grupyorum, Sep 8, 2021, 5:48 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
steppewolf
351 posts
#7 • 1 Y
Y by jhu08
Proposed by Serbia
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VicKmath7
1390 posts
#8 • 1 Y
Y by mijail
Woah this was very hard and nice NT, involving QRs. This is similar to the above soln.
Case 1. $gcd(a,b)$ is not $1$. Then $a=p(x+1)$ and $b=px$. Thus $p(x^2+x+1)=2021^c$. Hence $p=43$ or $p=47$.
Case 1.1 $p=47$. The number we want to be composite is $A=4.47^{c+1}.43^c-3.47^2+4$. Note that if $c$ is even, then $A$ is divisible by $3$, done. If $c$ is odd, then $A$ is $(-1)2^{c+1}.(-2)^c+2=2(2^{2c}+1) (mod 5)$ which is divisible by $5$ for odd $c$.
Case 1.2 $p=43$. We prove that this is actually impossible. Note that $(2x+1)^2=4.47^c.43^{c-1}+3$, so $-3$ is a QR modulo $47$, but that's impossible due to quadratic reciprocity.
Case 2. $gcd(a,b)=1$. Thus $1+ab=2021^c$ and $a-b=p$ and we want $A=p^2+4.2021^c$ to be composite.
Case 2.1 $p>3$. Then $c$ can't be odd, otherwise $A$ is divisible by $3$. So suppose $c$ is even. We have that $b^2+bp+1-2021^c=0$ and it's discriminant is $p^2+4.2021^c-4=d^2$. Thus the prime $A$ is representable as sum of two squares in two ways. But that's impossible (view this as a lemma: if $p=a^2+b^2=c^2+d^2$, then $p^2=(ac-bd)^2+(ad+bc)^2=(ad-bc)^2+(ac+bd)^2$ but note that $a^2c^2=b^2d^2 (mod p)$, and now we easily see contradiction).
Case 2.2 $p=3$ ($2$ is impossible, obviously). We have similarly that $b^2+3b+1-2021^c=0$ so it's discriminant is $4.2021^c+5=d^2$, but now finish again with quadratic reciprocity modulo $47$.
So we're done.
This post has been edited 3 times. Last edited by VicKmath7, Sep 9, 2021, 6:57 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
P2nisic
406 posts
#9
Y by
VicKmath7 wrote:
Let $a, b$ and $c$ be positive integers satisfying the equation $(a, b) + [a, b]=2021^c$. If $|a-b|$ is a prime number, prove that the number $(a+b)^2+4$ is composite.

Let $d=(a,b)$ and $a=dx$,$b=dy$ and suppose that $d$ different from $1$ then:
As $d|x-y|=prime$ we have $x=y+1$ and $d=prime$.
Now at the first equation we have:
$d(y^2+y+1)=2021^c$
If $c>=2$ then $47|y^2+y+1$ by the well known lemma:Let $q=prime=2(mod3)$ then if $q|c^2+cd+d^2$ we have $q|c$ and $q|d$.So $47|1$ contradiction.
If $c=1$ we have $d=47$ and $y=6$ which gives$47^2(6+7)^2+4=0(mod5)$

So $d=1$ and we have:$ab+1=2021^c$ (1)and $|a-b|=p$.(2)
We consider two cases:

If $c=1(mod2)$ then (1) $mod3$ gives $a=b(mod3)$ using condition (2) we have $a=b+3$ so equation (1) became:
$b^2+3b+1=2021^c$ or $(2b+3)^2-5=4*2021^c$
But $(5/43)=(43/5)=(3/5)=-1$ so no solution.

If $c=0(mod2)$ set $c=2d$ then we have:
$ab+1=2021^{2d}$ or $4ab+4=2021^{2d}*4$
or$(a+b)^2-(a-b)^2+4=2021^{2d}*4$
or$(a+b)^2+4=2021^{2d}*4+p^2$.

Suppose that $(a+b)^2+4=prime$ then it is well known that every prime in the form $4k+1$ can be written as a sum of two square in a unique way.
This mean that $p=2$ but it is obvious that $p=odd$ so contradiction.
This post has been edited 1 time. Last edited by P2nisic, Sep 8, 2021, 8:53 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sbealing
308 posts
#10
Y by
Let $p=|a-b|$.

Case 1: $p \vert a,b$ We have:
$$2021^c=(a,b)+[a,b]=p+\frac{ab}{p} \Rightarrow ab=p \left(2021^{c}-p\right) $$$$\Longrightarrow (a+b)^2=(a-b)^2+4ab=p^2+4p\left(2021^{c}-p\right)=p \left(4 \times 2021^{c}-3p\right)$$As $p \vert a+b$ we have $p \vert 4 \times 2021^{c}$ and hence $p \in \{2,43,47\}$. In the case $p=2$, the quantity in question is even and $>2$ so composite. For $p=47$ observe:
$$(a+b)^2+4 \equiv 2 \left(4-1\right)+4 \equiv 0 \pmod{5}$$and as $(a+b)^2+4>5$ it follows it is composite. Finally, for $p=43$ observe that $2021^{c} \in \{7,11\} \pmod{19}$ thus:
$$(a+b)^2=43 \left(4 \times 2021^{c}-3 \times 43\right) \in \{8,12\} \pmod{19}$$and by a direct check neither of these are quadratic residues modulo $19$ thus this case cannot occur.

Case 2: $p \nmid a,b$ We have:
$$2021^c=(a,b)+[a,b]=1+ab \Rightarrow (a+b)^2+4=(a-b)^2+4\left(1+ab\right)=p^2+4 \times 2021^{c}$$Firstly observe if $p=2$ then the quantity is even and $>2$ so composite. Now consider $p>2$.

Case 2.1: $c$ is evenIn this case, as $p>2$ and $2 \times 2021^{c/2}>2$, it follows $(a+b)^2+2^2$ is composite else we would have a prime written as a sum of two squares in two distinct ways.

Case 2.2: $p=3$ In this case observe:
$$(a+b)^2=4 \times 2021^{c}+3^2-4 \equiv 5 \pmod{43}$$but by LQR as $\mathrm{LHS}$ is a perfect square we have:
$$1=\left(\frac{5}{43}\right)=\left(\frac{43}{5}\right)=\left(\frac{3}{5}\right)=-1$$which is a contradiction.

Case 2.3: $p>3$, $c$ odd Here we have:
$$(a+b)^2+4 \equiv 4 \times (-1)^{c}+1 \equiv 0 \pmod{3}$$so $\mathrm{LHS}$ is divisible by $3$ and $>3$ therefore composite.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
square_root_of_3
78 posts
#11 • 1 Y
Y by MathsLion
I just wonder how the person who came up with this problem thought of this. I wonder at what point did they say 'let's put a-b to be a prime'. Did they first come up with the solution for the case where $(a,b)=1$ and $a-b$ is prime and then just added the particular case to make it longer? Or did they try solving the general $(a,b)+[a,b]=2021^c$ and then managed to just do the first two small cases?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
oVlad
1746 posts
#12 • 3 Y
Y by Pitagar, steppewolf, Mango247
Why so bashy? :noo: Anyways, my only goal while solving this was to shorten the solution as much as possible. I think I succeeded:

Let $b=a+p.$ We then have two cases:

Case One: Assume that $p$ divides $a.$ In other words, let $a=pk$ and $b=p(k+1).$ Our condition is then equivalent to \[\Phi_3(k)=k^2+k+1=\frac{2021^c}{p}\]It's well known that for any prime number $q$ and positive integer $n,$ only prime numbers congruent to $0$ or 1 modulo $q$ can divide $\Phi_q(n).$

Thus, since $47\equiv 2\bmod 3$ then $47\nmid \Phi_3(k)$ so $47\nmid 2021^c/p.$ Therefore, $c=1$ and $p=47.$ After computing, this yields $k=6.$ Just bash $(a+b)^2+4.$

Case Two: Assume that $p$ does not divide $a.$ Then, our condition rewrites as \[1+a(a+p)=2021^c\iff (2a+p)^2+4=4\cdot 2021^c+p^2.\]
Assume that $p>3.$ Clearly, $3$ cannot divide $(2a+p)^2+4$ so $4\cdot 2021^c+p^2\equiv (-1)^c+1\not\equiv 0\bmod 3$ which implies that $c$ is even.

Hence, $(a+b)^2+4=(2a+p)^2+4$ can be written as the sum of $2$ squares in two ways, so it must be composite.

If $p=3$ then $(2a+p)^2\equiv 5\bmod{43}$ which is a contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IndoMathXdZ
694 posts
#13 • 2 Y
Y by steppewolf, mijail
Balkan MO 2021/3 wrote:
Let $a, b$ and $c$ be positive integers satisfying the equation $(a, b) + [a, b]=2021^c$. If $|a-b|$ is a prime number, prove that the number $(a+b)^2+4$ is composite.
WLOG $a > b$. Since $(a,b) \mid |a - b|$, which is a prime number, then there are two possible cases.
Case 01. $(a,b) = p$ for some prime number $p$.
Since $|a - b| = (a,b) = p$. This implies $(a,b) = (px + p, px)$ for some $x \in \mathbb{N}$. Therefore, we get
\[ p(x^2 + x + 1) = 2021^c \]First, we claim that $c = 1$. Otherwise, $x^2 + x + 1 \equiv 0 \pmod{47}$. However, $-3$ is not a QR modulo $47$. Furthermore, this implies that $p = 47$, which gives us $x^2 + x + 1 = 43$, and this gives $x = 6$ as a solution. Just check that
\[ (a + b)^2 + 4 = p^2(2x + 1)^2 + 4 = 47^2 \cdot 13^2 + 4 \equiv 0 \pmod{5} \]and $a + b > 1$, which implies $(a + b)^2 + 4$ is composite.
Case 02. $(a,b) = 1$.
We then have
\[ (a + b)^2 + 4 = (a - b)^2 + 4(ab + 1) = (a - b)^2 + 4 \cdot 2021^c = p^2 + 4 \cdot 2021^c \]We first claim that $|a - b| \not= 3$. Otherwise, then $b^2 + 3b + 1 = 2021^c \equiv 0 \pmod{47}$, and one can check that $5$ is not a QR modulo $47$. We claim that $c$ must be even. Indeed, if $c$ is odd, then $p^2 + 4 \cdot 2021^c \equiv 0 \pmod{3}$.
Now, note that $(a + b)^2 + 2^2$ can be represented as $p^2 + (2 \cdot 2021^{c/2})^2$ as well, and we could quickly check that $p \not= 2$, or otherwise it's composite because it's divisible by $4$. We'll finish off by the following claim and conclude that $(a + b)^2 + 4$ must in fact be composite.

Claim. Every prime $1$ modulo $4$ has a unique representation as a sum of squares.
Proof. Suppose otherwise, that $p = a^2 + b^2 = c^2 + d^2$ for some $a,b,c,d \in \mathbb{Z}$. Then,
\[ (a + bi)(a - bi) = (c + di)(c - di) \]Note that $\mathbb{Z}[i]$ is a UFD, which implies that $a + bi$ and $c + di$ can't both be primes. WLOG $a + bi$ is not a prime. Then, there exists a nontrivial factorization $a + bi = (x + yi)(z + wi)$. Therefore,
\[ p = N(a + bi) = N(x + yi)N(z + wi) = (x^2 + y^2)(z^2 + w^2) \]contradicting the fact that $p$ is a prime.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lazizbek42
548 posts
#14
Y by
By Thue lemma c odd
mod 3 c Evan
This post has been edited 1 time. Last edited by lazizbek42, Dec 4, 2021, 5:14 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CT17
1481 posts
#15
Y by
WLOG let $a < b$.

Case 1: $(a,b) = 43$. Let $a = 43a'$ and $b = 43(a'+1)$. Then we have

$$43 + 43a'(a'+1) = 2021^c\implies a'^2 + a' + 1 = \frac{2021^c}{43}$$
a contradiction by mod $47$.

Case 2: $(a,b) = 47$. Let $a = 47a'$ and $b = 47(a' + 1)$. Then we have

$$47 + 47a'(a'+1) = 2021^c\implies a'^2 + a' + 1 = \frac{2021^c}{47}$$
a contradiction by mod $47$ unless $c = 1$. When $c = 1$, we have $a' = 6$ so that

$$(a+b)^2 + 4 = (13\cdot 47)^2 + 4\equiv 0\pmod{5}$$
is composite, as desired.

Case 3: $(a,b) = 1$. Let $p = b - a$ so that $a^2 + ap + 1 = 2021^c$. Note that $p\neq 2$, as otherwise $a$ and $b$ would both be even. We have $2$ subcases.

Subcase 3.1: $c$ is odd. Then $2021^c - 1\equiv 1\pmod{3}$, so $a\equiv b\pmod{3}$. Hence $p = 3$, and $a^2 + 3a + 1\equiv 0\pmod{43}$. In particular, the discriminant $5$ of this quadratic must be a QR mod $43$, which we can verify is false with quadratic reciprocity.

Subcase 3.2: $c$ is even. Then we have

$$(a+b)^2 + 4 = (2a + p)^2 + 4 = 4a^2 + 4ap + p^2 + 4 = 4\cdot 2021^c + p^2 = \left(2\cdot 2021^{\frac{c}{2}}\right)^2 + p^2$$
By a well-known theorem, since $(a+b)^2 + 4$ is expressible as the sum of $2$ squares in $2$ different ways it is composite, as desired.
This post has been edited 1 time. Last edited by CT17, Apr 1, 2022, 2:39 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sttsmet
139 posts
#16 • 1 Y
Y by Mango247
Can anybody tell me the NAME of this well known theorem with the sum of two squares??
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alinazarboland
168 posts
#17
Y by
I though it's gonna require a lot of case works but it didn't. Assume the statement doesn't hold:
If $gcd(a,b) \geq 2$ , then it would be $p \in \{43,47\}$. let $a=px , b=p(x+1)$ so $p(x^2+x+1)=2021^c$. But it's well-known that the polynomial $x^2+x+1$has no prime divisor in the form $3k+2$ , but $47$ is such number. So $p=47$ and $c=1$ and we should've:$x^2+x+1=43$ which means $x=6$ and $a=282$,$b=329$ so we can just compute the desired expression and it wouldn't be a prime number.

Now let $gcd(a,b)=1$ and $ab=2021^c -1$ , which means : $(a+b)^2 + 4 = p^2 + 4.2021^c$ where $p=|a-b|$. if $c$ was odd , we're done since it's divisible by $3$. if it was odd , it's well-known that every prime number in the form $4k+1$ can be UNIQUELY written as $x^2+y^2$ for positive integers $x,y$. So $\{2.2021^{c/2},p\}=\{a+b,2\}$ but by the definition of $p$ , we have $p+1 \le a+b$ so $p=2 , a+b=2.2021^{c/2}$ . this is impossible since one of $a-b , a+b$ for $a=b (mod 2)$ should be divisible by $4$ which is a contradiction and we're done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alinazarboland
168 posts
#18 • 1 Y
Y by sttsmet
sttsmet wrote:
Can anybody tell me the NAME of this well known theorem with the sum of two squares??

I don't know the name but in post #8 , VicKmath7 explained it. let $p=a^2+b^2=c^2+d^2$ so
$$p^2=(ac-bd)^2+(ad+bc)^2=(ad-bc)^2+(ac+bd)^2 *$$and $a^2c^2=b^2d^2 (mod p)$ follows from the fact that if $p=a^2+b^2$ , $\frac{a}{b}$ (clearly $a,b$ are not zero modulo $p$) is the solution of $x^2 = -1 (modp)$ in Z_p so $\frac{a^2}{b^2}=\frac{d^2}{c^2}$. Which contradicts $*$
This post has been edited 1 time. Last edited by alinazarboland, Aug 22, 2022, 5:02 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ATGY
2502 posts
#19
Y by
brah interesting problem

WLOG, say $a > b$. Let $\gcd(a, b) = d$, $a = dx, b = dy, (x, y) = 1, \text{lcm}(a, b) = dxy$. Notice that $d \mid dxy \implies d \mid 2021^c$. Say:
$$p = (a - b) = dx - dy = d(x - y) \implies d = 1 \; \text{or} \; (x - y) = 1$$Case 1: $d = 1$. This means that $(x, y) = (a, b)$, so we have $1 + ab = 2021^c$. If $c$ is even:
$$(a + b)^2 + 4 = (a - b)^2 + 4ab + 4 = p^2 + 4(ab + 1) = p^2 + 4\cdot2021^c$$If $(a + b)^2 + 4$ was prime, it only can be uniquely represented as a sum of squares, which means $(a + b)^2 + 4 = p^2 + 4\cdot2021^c \implies p = 2$, however, that means it's even, contradiction.
If $c$ was odd, we have $2021^c \equiv 2\mod3 \implies ab \equiv 1 \mod3 \implies a \equiv b\mod3$. However, this means $a - b = 3$ since it's prime, so $a = b + 3 \implies (a + b)^2 = (2b + 3)^2 = 4b(b + 3) + 9 = 4\cdot2021^c + 5 = 4\cdot43^c\cdot47^c + 5$. This means $5$ is a quadratic residue mod $47$.
$$\left(\frac{5}{47}\right) = \left(\frac{47}{5}\right) = \left(\frac{2}{5}\right) = -1$$Contradiction.

Case 2: If $d \neq 1$, we have $x - y = 1 \implies x = y + 1$. Furthermore, $d$ is prime and $d \mid 2021^c \implies d = 43, 47$.
Subcase 2.1: $d = 43$. We have:
$$d + dxy = 43(xy + 1) = 2021^c \implies xy + 1 = 43^{c - 1}\cdot47^c$$We also have $(x + y)^2 = (2y + 1)^2 = 4y^2 + 4y + 1 = 4y(y + 1) + 1 = 4\cdot43^{c - 1}\cdot47^c - 3$, which means $-3$ is a quadratic residue mod 47. We have:
$$\left(\frac{-3}{47}\right) = \left(\frac{-1}{47}\right)\cdot\left(\frac{3}{47}\right) = \left(\frac{47}{3}\right) = \left(\frac{2}{3}\right) = -1$$Contradiction.
Subcase 2.2: $d = 47$. We have:
$$d + dxy = 47(xy + 1) = 2021^c \implies xy + 1 = 43^c\cdot47^{c - 1}$$Now, $(x + y)^2 = (2y + 1)^2 = 4y(y + 1) + 1 = 4\cdot43^c\cdot47^{c - 1} - 3$. For $c > 1$, we are done by the same step as earlier, however if $c = 1$, we have $(2y + 1)^2 = 169 \implies y = 6, x = 7, a = 47\cdot7, b = 47\cdot6, 5 \mid (a + b)^2 + 4$. Hence, 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.
MathLuis
1536 posts
#20
Y by
First WLOG $a>b$ ($a=b$ obviously cannot happen), then since $a-b$ is a prime and $d=(a,b) \mid a-b$ we have $d=a-b$ or $d=1$. Suppose FTSOC that $(a+b)^2+4=p$ was a prime.
Case 1: $d=1$
In this case $ab+1=2021^c$ it means that $ab=2021^c-1$, now if both $a,b$ were even then clearly $(a+b)^2+4$ cannot be a prime as it is divisbile by $4$. Now back to $a-b=q$ where $q$ is a prime we also have that $b^2+qb+1-2021^c=0$ which means by quadratic formula that:
$$b=\frac{-q+\sqrt{q^2+4 \cdot 2021^c-4}}{2} \implies q^2+4 \cdot (2021^c-1)=t^2$$Now clearly $a+b$ is odd so $q \ge 3$, and also notice that $b=\frac{t-q}{2}$ implies that $a=\frac{t+q}{2}$ so we in fact get $a+b=t$, so if we have that $p=t^2+4=q^2+4 \cdot 2021^c$ and $c$ is even then as $p \equiv 1 \pmod 4$ must have exactly one representation of the form $p=x^2+y^2$ (this can be proven using Thue Lemma), then we have that either $4=q^2$ or $4=4 \cdot 2021^c$, of course neither can happen therefore we get a contradiction!. And if $c$ is odd then if $q \ge 5$ we get that as $2021 \equiv -1 \pmod 3$ that $t^2 \equiv 2 \pmod 3$ which is a contradiction so $q=3$, but then $t^2=4 \cdot 2021^c+5 \equiv 5 \pmod 47$ and this is a contradiction as by QR's we have that $\left( \frac{5}{47} \right) = \left( \frac{47}{5} \right)= \left( \frac{2}{5} \right)=-1$ so no such $t$ should exist, contradiction!.
Case 2: $d=q$ prime.
In this case we have $a=qx+q$ and $b=qx$ and $[a,b]=q(x^2+x)$ so $2021^c=qx^2+qx+q=q(x^2+x+1)$ and so $q \mid 2021^c$ therefore $q=43,47$, as an extra notice that if some prime $r \mid x^2+x+1$ then we must have by orders that either $r=3$ and $x \equiv 1 \pmod 3$ or $r \equiv 1 \pmod 3$, but notice that $47 \equiv 2 \pmod 3$ so we must have $q=47$ and $c=1$ or else $47 \mid x^2+x+1$ and that can't happen, which means that we must have $43=x^2+x+1$ and it's clear that the only positive solution is $x=6$ therefore $a=47 \cdot 7=329$ and $b=47 \cdot 6=282$ and thus $p=611^2+4$ must be prime, but this can't happen as then $611^2+4 \equiv 1+4 \equiv 0 \pmod 5$ so $5 \mid p$ which would mean $p=5$, an obvious size contradiction!.
Therefore in either case we can't have that $(a+b)^2+4$ is prime, thus we are done :cool:.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NuMBeRaToRiC
22 posts
#21
Y by
Is this wrong?
Can someone check it!
Let $a>b$, $a-b=p$ prime and $(a,b)=d$. For the contrary let $(a+b)^2+4=q$ prime. Then $d\mid (a,b)\mid {a-b}=p$, so $d=1$ or $p$.
Case 1: If $d=1$, then $ab+1=[a,b]+(a,b)=2021^c$. If $c$ even then $(a+b)^2+2^2=q=(a-b)^2+4(ab+1)=(a-b)^2+(2\cdot2021^\frac{c}{2})^2$, which is the contradiction, because a prime number has unique represantion as sum of two squares (I think its Fermat theorem). So if $c$ odd then $ab\equiv 1 \pmod 3$, i.e $a\equiv b\pmod 3$, so $a-b=p=3$. So our condition becomes $b^2+3b+1\equiv 0\pmod {43}$ (in fact $b^2+3b+1=2021^c$). In other word $(2b+3)^2\equiv 8\pmod {43}$, i.e $(\frac{8}{43})=1$, but $1=(\frac{8}{43})=(\frac{2^3}{43})=(\frac{2}{43})=(-1)^{\frac{43^2-1}{8}}=-1$, which is contradiction.
Case 2: If $d=p$, then $a=b+p$, $b=pb_1$ and $p(1+b_1(b_1+1))=(a,b)+[a,b]=2021^c$, so $b_1(b_1+1)+1=43^{c-1}47^c$ or $43^c47^{c-1}$. If $47\mid b_1(b_1+1)+1$, then $b_1(b_1+1)+1\equiv 0\pmod {47}$, i.e $(2b_1+1)^2\equiv -3\pmod {47}$. So $(\frac{-3}{47})=1$, but
$1=(\frac{-3}{47})=(\frac{-1}{47})(\frac{3}{47})=(-1)(\frac{47}{3})(-1)^{\frac{(3-1)(47-1)}{4}}=-1$,
which is contradiction. So $47\nmid b_1(b_1+1)+1$, i.e $b_1(b_1+1)+1=43$ ($c=1$), then $b_1=6$, $p=47$, $b=6\cdot47$, $a=7\cdot47$. And $(a+b)^2+4$ is not prime (because it divisible by 5).
So we are done!
This post has been edited 4 times. Last edited by NuMBeRaToRiC, May 2, 2025, 4:04 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Grasshopper-
10 posts
#24
Y by
sttsmet wrote:
Can anybody tell me the NAME of this well known theorem with the sum of two squares??

I think it's called "Fermat's Two Squares Theorem"
Z K Y
N Quick Reply
G
H
=
a