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

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

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

Summer camps are starting this month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have a transformative summer experience. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following upcoming events:
[list][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

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

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

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

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Monday, Jun 30 - Jul 21
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

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

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

Physics

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

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

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
4 hours ago
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
smallest a so that S(n)-S(n+a) = 2018, where S(n)=sum of digits
parmenides51   3
N 21 minutes ago by TheBaiano
Source: Lusophon 2018 CPLP P3
For each positive integer $n$, let $S(n)$ be the sum of the digits of $n$. Determines the smallest positive integer $a$ such that there are infinite positive integers $n$ for which you have $S (n) -S (n + a) = 2018$.
3 replies
parmenides51
Sep 13, 2018
TheBaiano
21 minutes ago
Ducks can play games now apparently
MortemEtInteritum   35
N 2 hours ago by pi271828
Source: USA TST(ST) 2020 #1
Let $a$, $b$, $c$ be fixed positive integers. There are $a+b+c$ ducks sitting in a
circle, one behind the other. Each duck picks either rock, paper, or scissors, with $a$ ducks
picking rock, $b$ ducks picking paper, and $c$ ducks picking scissors.
A move consists of an operation of one of the following three forms:

[list]
[*] If a duck picking rock sits behind a duck picking scissors, they switch places.
[*] If a duck picking paper sits behind a duck picking rock, they switch places.
[*] If a duck picking scissors sits behind a duck picking paper, they switch places.
[/list]
Determine, in terms of $a$, $b$, and $c$, the maximum number of moves which could take
place, over all possible initial configurations.
35 replies
MortemEtInteritum
Nov 16, 2020
pi271828
2 hours ago
2017 IGO Advanced P3
bgn   18
N 2 hours ago by Circumcircle
Source: 4th Iranian Geometry Olympiad (Advanced) P3
Let $O$ be the circumcenter of triangle $ABC$. Line $CO$ intersects the altitude from $A$ at point $K$. Let $P,M$ be the midpoints of $AK$, $AC$ respectively. If $PO$ intersects $BC$ at $Y$, and the circumcircle of triangle $BCM$ meets $AB$ at $X$, prove that $BXOY$ is cyclic.

Proposed by Ali Daeinabi - Hamid Pardazi
18 replies
bgn
Sep 15, 2017
Circumcircle
2 hours ago
Own made functional equation
JARP091   1
N 2 hours ago by JARP091
Source: Own (Maybe?)
\[
\text{Find all functions } f : \mathbb{R} \to \mathbb{R} \text{ such that:} \\
f(a^4 + a^2b^2 + b^4) = f\left((a^2 - f(ab) + b^2)(a^2 + f(ab) + b^2)\right)
\]
1 reply
JARP091
May 31, 2025
JARP091
2 hours ago
Euler line of incircle touching points /Reposted/
Eagle116   6
N 3 hours ago by pigeon123
Let $ABC$ be a triangle with incentre $I$ and circumcentre $O$. Let $D,E,F$ be the touchpoints of the incircle with $BC$, $CA$, $AB$ respectively. Prove that $OI$ is the Euler line of $\vartriangle DEF$.
6 replies
Eagle116
Apr 19, 2025
pigeon123
3 hours ago
Parallel lines on a rhombus
buratinogigle   1
N 3 hours ago by Giabach298
Source: Own, Entrance Exam for Grade 10 Admission, HSGS 2025
Given the rhombus $ABCD$ with its incircle $\omega$. Let $E$ and $F$ be the points of tangency of $\omega$ with $AB$ and $AC$ respectively. On the edges $CB$ and $CD$, take points $G$ and $H$ such that $GH$ is tangent to $\omega$ at $P$. Suppose $Q$ is the intersection point of the lines $EG$ and $FH$. Prove that two lines $AP$ and $CQ$ are parallel or coincide.
1 reply
buratinogigle
4 hours ago
Giabach298
3 hours ago
Orthocenter lies on circumcircle
whatshisbucket   90
N 3 hours ago by bjump
Source: 2017 ELMO #2
Let $ABC$ be a triangle with orthocenter $H,$ and let $M$ be the midpoint of $\overline{BC}.$ Suppose that $P$ and $Q$ are distinct points on the circle with diameter $\overline{AH},$ different from $A,$ such that $M$ lies on line $PQ.$ Prove that the orthocenter of $\triangle APQ$ lies on the circumcircle of $\triangle ABC.$

Proposed by Michael Ren
90 replies
whatshisbucket
Jun 26, 2017
bjump
3 hours ago
Polish MO Finals 2014, Problem 4
j___d   3
N 3 hours ago by ariopro1387
Source: Polish MO Finals 2014
Denote the set of positive rational numbers by $\mathbb{Q}_{+}$. Find all functions $f: \mathbb{Q}_{+}\rightarrow \mathbb{Q}_{+}$ that satisfy
$$\underbrace{f(f(f(\dots f(f}_{n}(q))\dots )))=f(nq)$$for all integers $n\ge 1$ and rational numbers $q>0$.
3 replies
j___d
Jul 27, 2016
ariopro1387
3 hours ago
S(an) greater than S(n)
ilovemath0402   1
N 3 hours ago by ilovemath0402
Source: Inspired by an old result
Find all positive integer $n$ such that $S(an)\ge S(n) \quad \forall a \in \mathbb{Z}^{+}$ ($S(n)$ is sum of digit of $n$ in base 10)
P/s: Original problem
1 reply
ilovemath0402
4 hours ago
ilovemath0402
3 hours ago
Hagge-like circles, Jerabek hyperbola, Lemoine cubic
kosmonauten3114   0
3 hours ago
Source: My own
Let $\triangle{ABC}$ be a scalene oblique triangle with circumcenter $O$ and orthocenter $H$, and $P$ ($\neq \text{X(3), X(4)}$, $\notin \odot(ABC)$) a point in the plane.
Let $\triangle{A_1B_1C_1}$, $\triangle{A_2B_2C_2}$ be the circumcevian triangles of $O$, $P$, respectively.
Let $\triangle{P_AP_BP_C}$ be the pedal triangle of $P$ with respect to $\triangle{ABC}$.
Let $A_1'$ be the reflection in $P_A$ of $A_1$. Define $B_1'$, $C_1'$ cyclically.
Let $A_2'$ be the reflection in $P_A$ of $A_2$. Define $B_2'$, $C_2'$ cyclically.
Let $O_1$, $O_2$ be the circumcenters of $\triangle{A_1'B_1'C_1'}$, $\triangle{A_2'B_2'C_2'}$, respectively.

Prove that:
1) $P$, $O_1$, $O_2$ are collinear if and only if $P$ lies on the Jerabek hyperbola of $\triangle{ABC}$.
2) $H$, $O_1$, $O_2$ are collinear if and only if $P$ lies on the Lemoine cubic (= $\text{K009}$) of $\triangle{ABC}$.
0 replies
kosmonauten3114
3 hours ago
0 replies
Incenter perpendiculars and angle congruences
math154   84
N 4 hours ago by zuat.e
Source: ELMO Shortlist 2012, G3
$ABC$ is a triangle with incenter $I$. The foot of the perpendicular from $I$ to $BC$ is $D$, and the foot of the perpendicular from $I$ to $AD$ is $P$. Prove that $\angle BPD = \angle DPC$.

Alex Zhu.
84 replies
math154
Jul 2, 2012
zuat.e
4 hours ago
Tangency of circles with "135 degree" angles
Shayan-TayefehIR   4
N 4 hours ago by Mysteriouxxx
Source: Iran Team selection test 2024 - P12
For a triangle $\triangle ABC$ with an obtuse angle $\angle A$ , let $E , F$ be feet of altitudes from $B , C$ on sides $AC , AB$ respectively. The tangents from $B , C$ to circumcircle of triangle $\triangle ABC$ intersect line $EF$ at points $K , L$ respectively and we know that $\angle CLB=135$. Point $R$ lies on segment $BK$ in such a way that $KR=KL$ and let $S$ be a point on line $BK$ such that $K$ is between $B , S$ and $\angle BLS=135$. Prove that the circle with diameter $RS$ is tangent to circumcircle of triangle $\triangle ABC$.

Proposed by Mehran Talaei
4 replies
Shayan-TayefehIR
May 19, 2024
Mysteriouxxx
4 hours ago
FE inequality from Iran
mojyla222   4
N 4 hours ago by shanelin-sigma
Source: Iran 2025 second round P5
Find all functions $f:\mathbb{R}^+ \to \mathbb{R}$ such that for all $x,y,z>0$
$$
3(x^3+y^3+z^3)\geq f(x+y+z)\cdot f(xy+yz+xz) \geq (x+y+z)(xy+yz+xz).
$$
4 replies
mojyla222
Apr 19, 2025
shanelin-sigma
4 hours ago
Line bisects a segment
buratinogigle   1
N 4 hours ago by cj13609517288
Source: Own, Entrance Exam for Grade 10 Admission, HSGS 2025
Let $ABC$ be a triangle with $AB = AC$. A circle $(O)$ is tangent to sides $AC$ and $AB$, and $O$ is the midpoint of $BC$. Points $E$ and $F$ lie on sides $AC$ and $AB$, respectively, such that segment $EF$ is tangent to circle $(O)$ at point $P$. Let $H$ and $K$ be the orthocenters of triangles $OBF$ and $OCE$, respectively. Prove that line $OP$ bisects segment $HK$.
1 reply
buratinogigle
4 hours ago
cj13609517288
4 hours ago
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
1391 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
1435 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
1391 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
144 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
172 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
172 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
1559 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