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
Jun 2, 2025
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
Jun 2, 2025
0 replies
XY is tangent to a fixed circle
a_507_bc   3
N a minute ago by lksb
Source: Baltic Way 2022/15
Let $\Omega$ be a circle, and $B, C$ are two fixed points on $\Omega$. Given a third point $A$ on $\Omega$, let $X$ and $Y$ denote the feet of the altitudes from $B$ and $C$, respectively, in the triangle $ABC$. Prove that there exists a fixed circle $\Gamma$ such that $XY$ is tangent to $\Gamma$ regardless of the choice of the point $A$.
3 replies
a_507_bc
Nov 12, 2022
lksb
a minute ago
One of the lines is tangent
Rijul saini   8
N 39 minutes ago by ihategeo_1969
Source: LMAO 2025 Day 2 Problem 2
Let $ABC$ be a scalene triangle with incircle $\omega$. Denote by $N$ the midpoint of arc $BAC$ in the circumcircle of $ABC$, and by $D$ the point where the $A$-excircle touches $BC$. Suppose the circumcircle of $AND$ meets $BC$ again at $P \neq D$ and intersects $\omega$ at two points $X$, $Y$.

Prove that either $PX$ or $PY$ is tangent to $\omega$.

Proposed by Sanjana Philo Chacko
8 replies
Rijul saini
Wednesday at 7:02 PM
ihategeo_1969
39 minutes ago
Tricky coloured subgraphs
bomberdoodles   2
N 44 minutes ago by bomberdoodles
Consider a graph with nine vertices, with the vertices labelled 1 through 9. An
edge is drawn between each pair of vertices.

Sally picks any edge of her choice, and colours that edge either red or blue. She keeps repeating
this process, choosing any uncoloured edge, and colouring that edge either red or blue.
The only rule is that she is never allowed to colour an edge either red or blue so that one
of these scenarios occurs:

(i) There exist three numbers $a, b, c$, with $1 \le a < b < c \le 9$, for which the edges $ab, bc, ac$ are
all coloured red.

(ii) There exist four numbers $p, q, r, s,$ with $1 \le p < q < r < s \le 9$, for which the edges $pq, pr,
ps, qr, qs, rs$ are all coloured blue.

For example, suppose Sally starts by choosing edges 14 and 34, and colouring both of these
edges red. Then if she picks edge 13, she must colour this edge blue, because she cannot colour
it red.

What is the maximum number of edges that Sally can colour?
2 replies
bomberdoodles
6 hours ago
bomberdoodles
44 minutes ago
x^2+6x+33 is perfect square
Demetres   6
N an hour ago by thdwlgh1229
Source: Cyprus 2022 Junior TST-1 Problem 1
Find all integer values of $x$ for which the value of the expression
\[x^2+6x+33\]is a perfect square.
6 replies
Demetres
Feb 21, 2022
thdwlgh1229
an hour ago
No more topics!
Hardest N7 in history
OronSH   25
N May 6, 2025 by sansgankrsngupta
Source: ISL 2023 N7
Let $a,b,c,d$ be positive integers satisfying \[\frac{ab}{a+b}+\frac{cd}{c+d}=\frac{(a+b)(c+d)}{a+b+c+d}.\]Determine all possible values of $a+b+c+d$.
25 replies
OronSH
Jul 17, 2024
sansgankrsngupta
May 6, 2025
Hardest N7 in history
G H J
G H BBookmark kLocked kLocked NReply
Source: ISL 2023 N7
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1748 posts
#1 • 15 Y
Y by ehuseyinyigit, peace09, kred9, KevinYang2.71, GeoKing, MarkBcc168, khina, aidan0626, Sedro, Tqhoud, megarnie, ohiorizzler1434, ihatemath123, Yiyj, Jack_w
Let $a,b,c,d$ be positive integers satisfying \[\frac{ab}{a+b}+\frac{cd}{c+d}=\frac{(a+b)(c+d)}{a+b+c+d}.\]Determine all possible values of $a+b+c+d$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math90
1482 posts
#2 • 2 Y
Y by OronSH, ihatemath123
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1748 posts
#3 • 7 Y
Y by peace09, KevinYang2.71, HyperDunteR, math90, megarnie, Alex-131, Yiyj
The answer is all non-squarefree positive integers.

For the construction, take $(a,b,c,d)=(m,m(n-1),m(n-1),m(n-1)^2)$ giving $a+b+c+d=mn^2$ for $n\ge 2.$

To prove necessity rearrange it to \[ab(c+d)+cd(a+b)=\frac{(a+b)^2(c+d)^2}{a+b+c+d},\]so the RHS is an integer. Thus if $s=a+b+c+d$ works there must exist $x=a+b,y=c+d$ such that $x+y=s$ and $s\mid x^2y^2.$ Clearly $s\ne 1$ by size, now if $p\mid s$ then $p\mid x^2y^2.$ Suppose $p\mid x,$ then $p\mid y$ from $x+y=s.$ Thus any prime dividing $s$ also divides both $x,y.$ But if $s$ is squarefree, it is the smallest positive integer with all of its prime factors. Thus $x,y\ge s$ so $x+y\ge 2s,$ contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sunshine132
136 posts
#4 • 1 Y
Y by HaO-R-Zhe
I will prove that all non-square-free positive integers can be $a+b+c+d$.

We have $(a+b+c+d)(ab(c+d) + cd(a+b)) = (a+b)^2(c+d)^2$.

Notice that $n(k+1)^2$ works, because we can choose $a = nk^2$, $b = kn$, $c = kn$ and $d = n$.

Now, suppose $a+b+c+d = N$, where $N$ is square-free.
Take some $p|N$, such that $p$ does not divide $c+d$. Thus, $p|(a+b)^2(c+d)^2 \implies p|(a+b)^2 \implies p|a+b$. But $p|N \implies p|c+d$, contradiction.

Note that we can always find such $p$ because if not, then $N | c+d$, impossible, because $N > c+d$.

Thus, all non-square-free positive integers are our solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5610 posts
#5 • 2 Y
Y by KevinYang2.71, peace09
We claim the answer is all positive integers that are not squarefree.

To see these work, we only need to prove it for $a + b + c + d  = p^2$ for all primes $p$ because $(a, b, c, d)$ is a solution iff $(xa, xb, xc, xd)$ is for any positive integer $x$. Consider $a = 1, b = c = p-1$, and $d = (p-1)^2$. Clearly $a + b + c + d = p^2$. Now, we have $\frac{ab}{a+b} = \frac{p-1}{p}, \frac{cd}{c+d} = \frac{(p-1)^2}{p}, \frac{(a+b)(c+d)}{a + b + c + d} = \frac{p(p^2 - p)}{p^2} = p - 1$, and clearly $\frac{p-1}{p} + \frac{(p-1)^2}{p} = p - 1$, so this construction works. Now we prove $a + b + c + d$ can't be squarefree. Suppose otherwise.

We have \[ (ab(c+d) + cd(a+b))(a + b + c  + d) = ((a + b)(c+d) )^2 \]Thus, for any prime $p$ dividing $a + b + c + d$, $p$ divides either $a + b$ or $c + d$, so $p$ must divide both $a + b$ and $c + d$. However, this implies the product of distinct primes dividing $a + b + c + d$ divide $a + b$ and $c + d$. This product equals $a + b + c + d$ since $a + b + c + d$ is squarefree, so $a + b + c + d \mid a + b$, meaning $a + b + c + d \le a + b$, absurd.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Marinchoo
407 posts
#6
Y by
The answer is all non-square-free integers. The construction is $(a,b,c,d) = (kn^2, kn, kn, k)$ for any $n, k\geq 1$, when both sides equal $kn$ and $a+b+c+d=k(n+1)^2$. To show these are the only answers, we can rewrite the equation as:
\[\mathbb{N} \ni abc+abd+acd+bcd=\frac{(a+b)^2(c+d)^2}{a+b+c+d}.\]Now for any prime $p\mid a+b+c+d$, $p\mid (a+b)^2(c+d)^2\iff p\mid a+b$ and $p\mid c+d$. Therefore, if $a+b+c+d$ is square-free and $p\mid a+b+c+d$, then $p^4\mid (a+b)^2(c+d)^2$, which is impossible as
\[(a+b)^2(c+d)^2<(a+b+c+d)^4 \Longrightarrow (a+b+c+d)^4\nmid (a+b)^2(c+d)^2.\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
brainfertilzer
1831 posts
#7 • 1 Y
Y by megarnie
There exists a solution whenever $p^2\mid a+b+c+d$ for some prime $p$. Denoting $n = (a+b+c+d)/p^2$, the construction is $$(a,b,c,d) = (n(p-1), n(p-1)^2, n, n(p-1)),$$which clearly works. Now, suppose $a+b+c+d$ is squarefree. Clear fractions:
\[ (a+b+c+d)(abc + abd + acd + bcd) =\left((a+b)(c+d)\right)^2.\]Note that we have
\[ 0\equiv \left((a+b)(c+d)\right)^2\equiv (a+b)^4\pmod{a+b+c+d}\]\[ \implies 0\equiv a+b\pmod{a+b+c+d},\]absurd.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pokmui9909
185 posts
#8
Y by
Easy for its position. The answer is all non-squarefree positive integers.

Let $s = a + b + c + d$, assume $s$ is square-free. Multiply $s(a + b)(c + d)$ on both sides, we can see $$s \mid (a + b)^2(c+d)^2.$$Let $p$ be a prime divisor of $s$, then either $p \mid a + b$ or $p \mid c + d$. Both are equivalent, so $p \mid s \implies p \mid a + b$ holds.
Thus $s \mid a + b$, and this is clearly a contradiction.

For construction, let $a = 1, b = c = p - 1, d = (p-1)^2$, we can generate $p^2$. Multiply some integer to $a, b, c, d$, we can make all non-squarefree positive integers. $\blacksquare$
This post has been edited 1 time. Last edited by pokmui9909, Jul 17, 2024, 1:39 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueberryfaygo_55
340 posts
#9 • 1 Y
Y by megarnie
We claim that $a+b+c+d$ can take all non-squarefree values. We first show that $a+b+c+d$ cannot be squarefree, then provide a working construction for all non-squarefree values.

Let $a+b=m$, $c+d=n$, $ab=x$, and $cd=y$. The given condition is equivalent to \begin{align*} \dfrac{x}{m} + \dfrac yn &= \dfrac{mn}{m+n}.
\end{align*}Cross multiplying yields $$(xn+ym)(m+n)=m^2n^2,$$which implies that $m+n \mid m^2n^2$. Consider a prime $p$ that divides $m+n$. Then, $p \mid m^2$ or $p \mid n^2$, meaning that $p \mid m$ or $p \mid n$, but $p \mid m+n$, so $p$ must divide both $m$ and $n$ for all prime divisors $p$ of $m+n$. For the sake of contradiction, suppose that $m+n=a+b+c+d$ is squarefree. Letting $m+n = p_1 p_2 \cdots p_k$ $(k \geq 1)$, since $m$ is divisible by every prime divisor of $m+n$, we must have $m = C p_1 p_2 \cdots p_k$ for some positive integer $C$, but $$C p_1 p_2 \cdots p_k \geq p_1 p_2 \cdots p_k,$$so $m \geq m+n$, which is clearly absurd. Thus, $m+n = a+b+c+d$ cannot be squarefree.

Now if $a+b+c+d$ is non-squarefree, let $a+b+c+d = a^2k$ for positive integers $a,k$ where $a > 1$. Then, we take $\{a,b,c,d\} = \{k, (a-1)k, (a-1)k, (a-1)^2k\}$ for the given condition to hold. Indeed, we can check that the left hand side is \begin{align*}
\dfrac{ab}{a+b} + \dfrac{cd}{c+d} &= \dfrac{k^2(a-1)}{ka} + \dfrac{k^2(a-1)^3}{k(a-1)a} \\
&= \dfrac{k(a-1)}{a} + \dfrac{k(a-1)^2}{a} \\
&= \dfrac{k(a-1) + k(a-1)^2}{a} \\
&= k(a-1).
\end{align*}The right hand side is \begin{align*}
\dfrac{(a+b)(c+d)}{a+b+c+d} &= \dfrac{ka \cdot k(a-1)a}{ka+k(a-1)a} \\
&= \dfrac{k^2a^2(a-1)}{ka^2} \\
&= k(a-1)
\end{align*}which is indeed also the left hand side, so we are done. $\blacksquare$
This post has been edited 1 time. Last edited by blueberryfaygo_55, Jul 17, 2024, 3:44 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Assassino9931
1390 posts
#10
Y by
Much easier when one has seen USA TST 2021/1
as the equation here is equivalent to $(a+b+c+d)(abc+abd+acd+bcd) = (a+b)^2(c+d)^2$.

If $s=a+b+c+d$ works, so does $sm$ by multiplying each of $a$, $b$, $c$, $d$ with $m$. Now mimicking the USA problem, take $d=1$ and $a=bc$ to get $s=(b+1)(c+1)$ and $bc(b+1)^2(c+1)^2 = b^2(c+1)^4$. This is satisfied by $b=c$, with $s=(b+1)^2$, hence any non-squarefree integer works.

Conversely, if $p$ is a prime dividing $a+b+c+d$, then $p$ divides the RHS with power at least $2$ (since RHS is a square) and moreover it divides at least one of $a+b$ and $c+d$, hence both due to dividing $a+b+c+d$. But if $a+b+c+d = p_1p_2\cdots p_k$ and each $p_i$ divides $a+b$ and $c+d$, then in fact the whole RHS divides $a+b$ and $c+d$ separately, which is impossible, as they are smaller in size.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tqhoud
26 posts
#11
Y by
we can check easily that

$$a=n,b=nm,c=nm,d=nm^2$$
is a solution and

$$a+b+c+d=n(m+1)^2$$
where $n,m\ge 1$

so all non squarefree is a solution

If $a+b+c+d$ is a squarefree and solution for this problem

We can check that

$$(a+b+c+d)(ab(c+d)+cd(a+b))=(a+b)^2(c+d)^2$$
let $a+b=t$ and $c+d=r$

so we find that

$$t+r|(tr)^2 $$
and because that $t+r$ is a squarefree

$$t+r|tr$$
but

$$t+r=gcd(t+r,tr)=gcd(t,r)|t<t+r$$
wrong result and we are done
This post has been edited 2 times. Last edited by Tqhoud, Jul 17, 2024, 9:12 PM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dkedu
180 posts
#12
Y by
e claim the answer is all squareful numbers, that is there exists $m\ge 2$ such that $m^2\mid a+ b+ c+d$. We provide a construction, let $a+b+c+d = m^2k$, then take $(a,b,c,d) = (k, k(m-1),k(m-1),k(m-1)^2)$. We will now show these are the only ones.

WLOG $\gcd(a,b,c,d) = 1$ since scaling an solution does not change whether it works or not. Now assume for the sake of contradiction that $\nu_p(a+b+c+d) \le 1$ for all $p$ prime. Now for all prime $p$ such that $\nu_p(a+b+c+d) =1$. We WLOG that $\nu_p(a) \le 1, \nu_p(a+b) \le 1$.

If $\nu_p(a+b) = 0$, then $\nu_p(c+d) = 0$, but then \[\nu_p(LHS) \ge 0 > -1 = \nu_p(RHS)\]which is a contradiction.

$\nu_p(a+b) = 1$ and $\nu_p(c+d) = n \ge 1$, so if $\nu_p(a) = 1$, then $\nu_p(b), \nu_p(c), \nu_p(d) \ge 1$, so we contradict our assumption that the greatest common divisor is $0$.

So we have $\nu_p(a+b) = 1, \nu_p(a) = 0$, so $\nu_p(b) = 0$ and we let $\nu_p(c+d) = l\ge 1$. Then we have
\[-1 \le \nu_p(LHS) = \nu_p(RHS) = l\]so we have $\nu_p(c) + \nu_p(d) = l-1$ meaning $\nu_p(c) = \nu_p(d) = \frac{l-1}{2}$. So let $l = 2k + 1$.

However this means that for all $p \mid a+b+c+d$, $p \mid a+b, c+d$, so if $a+b+c+d$ is squarefree then $a+b+c+d \mid a+b,c+d$ which is clearly a contradiction so we are done.
This post has been edited 2 times. Last edited by dkedu, Jul 17, 2024, 11:13 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pikapika007
298 posts
#13
Y by
not a new (or difficult) idea at all, see USA TST 2021/1, ISL 2005 N3, USAMO 2015/5

The answer is $a + b + c + d$ not squarefree.

Proof of sufficiency. Let $a + b + c + d = pq^2$ with $p$ squarefree. Then
\[ (a, b, c, d) = (p, p(q-1), p(q-1), p(q-1)^2) \]works.

Proof of necessity. Conversely, assume $a + b + c + d$ is squarefree. Then
\[ \frac{(a+b)^2(c+d)^2}{a+b+c+d} = ab(c+d)+cd(a+b) \]is an integer, so $a + b + c + d \mid (a+b)^2(c+d)^2$. Thus
\[ (a+b)^2(c+d)^2 \equiv (a+b)^2(-a-b)^2 \equiv (a+b)^4  \equiv 0 \pmod{a + b + c + d} \]which implies $a + b + c + d \mid a + b$ since $a + b + c + d$ is squarefree, an obvious size contradiction.
This post has been edited 2 times. Last edited by pikapika007, Jul 18, 2024, 2:42 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihategeo_1969
247 posts
#14 • 1 Y
Y by GreenTea2593
Absolute disgrace of a problem. Does not deserve this spot.

We will prove that the only solutions are $\boxed{\text{all non-squarefree numbers}}$.

Necessity Assume $a+b+c+d$ is squarefree. We can rearrange the equation and we get \[(abc+abc+acd+bcd)(a+b+c+d)=(a+b)^2(c+d)^2\]Now if we let $p \mid a+b+c+d$. Then see that $p \mid a+b$ and $p \mid c+d$. And now by comparing $\nu_p$, we get \[p^3 \mid (abc+abc+acd+bcd) \implies (a+b+c+d)^3 \mid (abc+abc+acd+bcd)\]but this is false by Rearrangement inequality.
Construction See that $(a,b,c,d)=\left(n,n(p-1),n(p-1),n(p-1)^2 \right)$ is a solution which gives us $a+b+c+d=np^2$, that is non-squarefree.
This post has been edited 1 time. Last edited by ihategeo_1969, Aug 4, 2024, 1:00 PM
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
#15
Y by
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathPerson12321
3801 posts
#17
Y by
OronSH wrote:
The answer is all non-squarefree positive integers.

For the construction, take $(a,b,c,d)=(m,m(n-1),m(n-1),m(n-1)^2)$ giving $a+b+c+d=mn^2$ for $n\ge 2.$

To prove necessity rearrange it to \[ab(c+d)+cd(a+b)=\frac{(a+b)^2(c+d)^2}{a+b+c+d},\]so the RHS is an integer. Thus if $s=a+b+c+d$ works there must exist $x=a+b,y=c+d$ such that $x+y=s$ and $s\mid x^2y^2.$ Clearly $s\ne 1$ by size, now if $p\mid s$ then $p\mid x^2y^2.$ Suppose $p\mid x,$ then $p\mid y$ from $x+y=s.$ Thus any prime dividing $s$ also divides both $x,y.$ But if $s$ is squarefree, it is the smallest positive integer with all of its prime factors. Thus $x,y\ge s$ so $x+y\ge 2s,$ contradiction.

yep
its basically just rearrange the terms then nt i used the same sol
first time i actually solved one of these
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Hermione.Potter
14 posts
#18 • 4 Y
Y by sami1618, jp62, Assassino9931, yofro
Once you are able to get the correct answer set (by trying small cases etc.), you're done. I do agree that it's way too simple as a N7. Unfortunately, I did not see this during TST and tripped by not trying $a+b+c+d=9$ (even after correctly knowing to skip C4). Here's another interpretation of the problem:
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shanelin-sigma
168 posts
#19
Y by
OronSH wrote:
Let $a,b,c,d$ be positive integers satisfying \[\frac{ab}{a+b}+\frac{cd}{c+d}=\frac{(a+b)(c+d)}{a+b+c+d}.\]Determine all possible values of $a+b+c+d$.

It's seemed that there are many solutions......
But I'm curious about whether it has geometric solution (like 2001 IMO P6)
I tried to construct some geometric structure, but I failed
Does anyone have some idea?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jp62
54 posts
#20 • 13 Y
Y by Hermione.Potter, ihatemath123, OronSH, sami1618, ehuseyinyigit, Seungjun_Lee, khina, sansgankrsngupta, GrantStar, Therealway, gghx, GM_YoanaMl, yofro
Here's the construction using resistors, as a followup to #18 and #19:

https://i.imgur.com/V3Q0MtA.jpeg

The leftmost circuit has a resistance of $\frac{ab}{a+b}+\frac{cd}{c+d}$ and the rightmost circuit has a resistance of $\frac{(a+b)(c+d)}{a+b+c+d}$.
For the construction, we set the middle circuit to have the same resistance as both the left and the right.
The first equality is attained when $b=c$ for us to be able to swap the resistors.
The second equality is attained when $ad=bc$, by the Wheatstone bridge.

This gives us a family of solutions that works. By setting $a=1$ we get $d=b^2$ for a total sum of $a+b+c+d=1+b+b+b^2=(1+b)^2$, and scaling this up gives $k(1+b)^2$ for any $k,b\in\mathbb N$.
Thus any non-squarefree positive integer can be attained as the value of $a+b+c+d$.

It remains to do the NT to prove that for distinct primes $p_1$ through $p_r$, $a+b+c+d=\prod p_i$ doesn't work.
We clear denominators to get $$(a+b+c+d)(abc+bcd+cda+dab)=(a+b)^2(c+d)^2.$$Since $p_i$ divides the LHS, it must also divide the RHS. Notice $p_i\mid a+b\iff p_i\mid c+d$. Therefore, we get $\nu_{p_i}(RHS)\geq 4$.
From $\nu_{p_i}(a+b+c+d)=1$ we get $\nu_{p_i}(abc+bcd+cda+dab)\geq3$.

Combining all these inequalities shows that $$abc+bcd+cda+dab\geq\prod p_i^3=(a+b+c+d)^3=3abc+3bcd+3cda+3dab+\text{junk}$$which is clearly false.

Storytime and commentary
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EeEeRUT
85 posts
#22
Y by
Here are my thought process for this problem.

First, we observe that the term $a+b$ and $c+d$ appear often, so we let $a+b = x$, $c+d=y$, $ab =n$ and $cd = m$.

We get $$(x+y)(mx + ny) = x^2y^2$$Let $\gcd(x,y) = k$ and we replace $x$ with $ki$ and $y$ with $kj$, so the equation turns into $$(i+j)(mi+nj) = k^2i^2j^2$$where $\gcd(x,y) =1$

Note : We can’t suppose without the loss of generality that $k =1$, since it may result in some of $a,b,c,d$ being an irrational.

The equation we get are something like $$\alpha \beta \text{ is perfect square}$$So, we went for a classical technique by observing $\gcd(i+j,mi+nj)$

By euclidian algorithm, we will end up with $\gcd(i+j,pi)$ or $\gcd(i+j,pj)$, which both of them is $1$

Thus, $i+j$ is forced to be a perfect square.
But, we know that both $\gcd(i+j,j^2)$ and $\gcd(i+j,i^2)$ is $1$.
So, it need to be square of some divisor of $k$.
In other words, we can say that $$i+j = \frac{k^2}{q^2} \text{for some divisor q of k}$$Thus, $$a+b+c+d= \frac{\gcd(a+b,c+d)^3}{q^2}$$Note : It is impossible to have $q = k$, since it will result in $i+j =1$, meaning one of $i,j$ need to be $0$.

So, we have $a+b+c+d$ is always non square free.

But, we know that this equality is homogenized, thus if it is possible to have $a+b+c+d = S$, then it is also possible to have $a+b+c+d = \epsilon S$

Now, we want to know that what prime number $p$ can’t satisfy $a+b+c+d = p^2$

We have $$mx + ny = ( \frac{xy}{p} )^2$$
Thus, we have $$ p \mid x \text{or} p \mid y$$But, since we have $x+y = p^2$ , we have $$p \mid x,y$$Suppose $x = wp, y = zp$, we have $w+z = p$ and the equation $$ mw + nz = w^2z^2p^2$$Consider mod $p$ $$mw - nw \equiv m-n  \equiv 0 \pmod{p}$$At this point, the condition we get are quite strong, so we are gonna proceed with some trial and error.
Let $a=1, b=p-1, c = p-1, d= p^2-2p +1$. We are gonna see that this tuplet works. So, the answer is $\boxed{ a+b+c+d \text{ is a non square free integers}}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SomeonesPenguin
129 posts
#23 • 1 Y
Y by zzSpartan
The answer is all non squarefree positive integers.

It suffices to show that all the squares work since if $(a,b,c,d)$ is a solution, then $(ka,kb,kc,kd)$ is as well. For this, just pick $(a,b,c,d)=(1,p,p,p^2)$.

Note that the condition is equivalent to \[(a+b+c+d)(abc+abd+acd+bcd)=(a+b)^2(c+d)^2\]And suppose that $a+b+c+d$ is squarefree and let $a+b=x$ and $c+d=y$. We have $x+y\mid xy$ since $x+y$ is squarefree and this implies $x+y\mid x^2$ so $x+y\mid x$, which is a contradiction. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8880 posts
#24 • 1 Y
Y by RainbowJessa
The hardest part of the problem is to not overthink it. :/

The answer is all non-squarefree positive integers.

Construction: It suffices to construct for perfect squares $n^2$. In this case, take $(a, b, c, d) = (1, n-1, n-1, n(n-1))$, so
\[\frac{ab}{a+b} + \frac{cd}{c+d} = \frac{n-1}n + \frac{(n-1)^2}n = n-1 = \frac{n^2(n-1)}{n^2} = \frac{(a+b)(c+d)}{a+b+c+d}.\]Bound: This proof is so stupid it's funny. We may assume $\gcd(a, b, c, d) = 1$. Let $p \mid a+b+c+d$. Because \[\frac{(a+b)^2(c+d)^2}{a+b+c+d} = ab(c+d)+cd(a+b)\]is an integer, $p \mid a+b$ and $p \mid c+d$. On the other hand, if $p \mid a+b$ and $p \mid c+d$, then clearly $p \mid a+b+c+d$; so $a+b+c+d$ consists of the products of the primes $p$ that divide both $a+b$ and $c+d$. But then $a+b+c+d \mid \gcd(a+b, c+d)$, which is clearly impossible for size issues.

Remark: The $ab(c+d)+cd(a+b)$ is completely useless, and I spent too much time trying to figure out its significance.
This post has been edited 1 time. Last edited by HamstPan38825, Dec 16, 2024, 5:10 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1746 posts
#25 • 1 Y
Y by RainbowJessa
The answer is non-squarefree.

Sufficient: Let $n=x^2y$ where $x>1$. Then $(y,y(x-1),y(x-1),y(x-1)^2)$ just works.
Necessary: Suppose $a+b+c+d$ is squarefree. If $p\mid a+b+c+d$ then either $a+b$ and $c+d$ are both divisible by $p$ or they both aren't. If they both aren't then $\nu_p$ of the LHS is nonnegative while the $\nu_p$ of the RHS is negative, impossible. Therefore, $p\mid a+b$. Since $a+b+c+d$ is squarefree, $a+b=a+b+c+d$, impossible.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sansgankrsngupta
154 posts
#26
Y by
Sunshine132 wrote:
I will prove that all non-square-free positive integers can be $a+b+c+d$.

We have $(a+b+c+d)(ab(c+d) + cd(a+b)) = (a+b)^2(c+d)^2$.

Notice that $n(k+1)^2$ works, because we can choose $a = nk^2$, $b = kn$, $c = kn$ and $d = n$.

Now, suppose $a+b+c+d = N$, where $N$ is square-free.
Take some $p|N$, such that $p$ does not divide $c+d$. Thus, $p|(a+b)^2(c+d)^2 \implies p|(a+b)^2 \implies p|a+b$. But $p|N \implies p|c+d$, contradiction.

Note that we can always find such $p$ because if not, then $N | c+d$, impossible, because $N > c+d$.

Thus, all non-square-free positive integers are our solutions.

OG! WOW
This post has been edited 1 time. Last edited by sansgankrsngupta, May 6, 2025, 6:30 AM
Reason: -
Z K Y
N Quick Reply
G
H
=
a