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
2 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
2 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
Own made functional equation
JARP091   1
N 10 minutes 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
10 minutes ago
Euler line of incircle touching points /Reposted/
Eagle116   6
N 29 minutes 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
1 viewing
Eagle116
Apr 19, 2025
pigeon123
29 minutes ago
Parallel lines on a rhombus
buratinogigle   1
N 41 minutes 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
2 hours ago
Giabach298
41 minutes ago
Orthocenter lies on circumcircle
whatshisbucket   90
N an hour 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
an hour ago
Polish MO Finals 2014, Problem 4
j___d   3
N an hour 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
+1 w
j___d
Jul 27, 2016
ariopro1387
an hour ago
S(an) greater than S(n)
ilovemath0402   1
N an hour 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
2 hours ago
ilovemath0402
an hour ago
Hagge-like circles, Jerabek hyperbola, Lemoine cubic
kosmonauten3114   0
an hour 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
an hour ago
0 replies
Incenter perpendiculars and angle congruences
math154   84
N an hour 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
an hour ago
Tangency of circles with "135 degree" angles
Shayan-TayefehIR   4
N 2 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
2 hours ago
FE inequality from Iran
mojyla222   4
N 2 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
2 hours ago
Line bisects a segment
buratinogigle   1
N 2 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
2 hours ago
cj13609517288
2 hours ago
Removing Numbers On A Blackboard
Kezer   5
N 2 hours ago by MathematicalArceus
Source: Bundeswettbewerb Mathematik 2017, Round 1 - #1
The numbers $1,2,3,\dots,2017$ are on the blackboard. Amelie and Boris take turns removing one of those until only two numbers remain on the board. Amelie starts. If the sum of the last two numbers is divisible by $8$, then Amelie wins. Else Boris wins. Who can force a victory?
5 replies
Kezer
Aug 7, 2017
MathematicalArceus
2 hours ago
Inspired by sadwinter
sqing   1
N 2 hours ago by sqing
Source: Own
Let $ 0<a <\frac{3}{2}$. Prove that
$$ \sqrt{ka+a^3}+\sqrt{ka+(3-2a)^3}+\sqrt{k(3-2a)+a^3} \geq 3\sqrt{k+1}$$Where $ 0\leq k\leq 10.5668462.$
$$ \sqrt{3a+a^3}+\sqrt{3a+(3-2a)^3}+\sqrt{3(3-2a)+a^3} \geq 6$$
1 reply
sqing
2 hours ago
sqing
2 hours ago
P(n) takes integer values at three consecutive integers
v_Enhance   22
N 2 hours ago by cursed_tangent1434
Source: European Girl's MO 2013, Problem 4
Find all positive integers $a$ and $b$ for which there are three consecutive integers at which the polynomial \[ P(n) = \frac{n^5+a}{b} \] takes integer values.
22 replies
v_Enhance
Apr 11, 2013
cursed_tangent1434
2 hours ago
Composite sum
rohitsingh0812   39
N Apr 23, 2025 by YaoAOPS
Source: INDIA IMOTC-2006 TST1 PROBLEM-2; IMO Shortlist 2005 problem N3
Let $ a$, $ b$, $ c$, $ d$, $ e$, $ f$ be positive integers and let $ S = a+b+c+d+e+f$.
Suppose that the number $ S$ divides $ abc+def$ and $ ab+bc+ca-de-ef-df$. Prove that $ S$ is composite.
39 replies
rohitsingh0812
Jun 3, 2006
YaoAOPS
Apr 23, 2025
Composite sum
G H J
Source: INDIA IMOTC-2006 TST1 PROBLEM-2; IMO Shortlist 2005 problem N3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rohitsingh0812
105 posts
#1 • 8 Y
Y by yayitsme, centslordm, Adventure10, HWenslawski, megarnie, SatisfiedMagma, and 2 other users
Let $ a$, $ b$, $ c$, $ d$, $ e$, $ f$ be positive integers and let $ S = a+b+c+d+e+f$.
Suppose that the number $ S$ divides $ abc+def$ and $ ab+bc+ca-de-ef-df$. Prove that $ S$ is composite.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Davron
484 posts
#2 • 41 Y
Y by mathbuzz, mjuk, HarvardMit, div5252, Swag00, jt314, Anar24, A_Math_Lover, Wizard_32, richrow12, Pluto1708, green_leaf, rashah76, Toinfinity, Illuzion, mathleticguyyy, yayitsme, Wizard0001, centslordm, hakN, Adventure10, HWenslawski, megarnie, W.R.O.N.G, arinastronomy, Mango247, rstenetbg, Ab_Rin, Stuffybear, kiyoras_2001, aidan0626, Sedro, and 9 other users
All the coefficients of $f(x)=(x+a)(x+b)(x+c)-(x-d)(x-e)(x-f)=$ $Sx^2+(ab+bc+ca-de-ef-fd)x+(abc+def)$ are multiples of $S$. Evaluating $f$ at $d$ we get that $f(d)=(a+d)(b+d)(c+d)$ is a multiple of $S$.
So this implies that $S$ is composite, since $a+d,b+d,c+d$ are all strictly less than $S$.

davron
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
spider_boy
210 posts
#3 • 2 Y
Y by centslordm, Adventure10
My solution (some kind of minimality idea).

Suppose $S$ is prime.
We observe that if $(a, b, c, d, e ,f)$ is a solution then $(a-1, b-1, c-1, d+1, e+1, f+1)$ is also a solution. Note that $S$ does not change. Denote $X=\min\{a,b,c\}$. We can claim that $(a-X, b-X, c-X, d+X, e+X, f+X)$ also satisfies the conditions.
So we get $S \mid (d+X)(e+X)(f+X)$. But this is impossible, since $d+X,e+X, f+X$ are all $<S$. :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Particle
179 posts
#4 • 2 Y
Y by centslordm, Adventure10
Hidden due to length
This post has been edited 1 time. Last edited by Particle, May 21, 2013, 2:29 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
subham1729
1479 posts
#5 • 3 Y
Y by centslordm, Adventure10, Mango247
Well, note $(a+d)(b+d)(c+d)=A+dB+d^2S$ now so we get $S|(a+d)(b+d)(c+d)$ , suppose $S$ is prime then it must be less than one of $a+d,b+d,c+d$ but as $S=a+b+c+d$ so absurd and done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ksun48
1514 posts
#6 • 4 Y
Y by centslordm, Adventure10, Mango247, and 1 other user
Assume $S$ is a prime. Then $(x-a)(x-b)(x-c)$ and $(x+d)(x+e)(x+f)$ are the same polynomial, mod $S$, so by Lagrange's theorem $\{a,b,c\} = \{-d,-e,-f\}$. Thus $a+b+c+d+e+f \ge 3S > S$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AMN300
563 posts
#7 • 3 Y
Y by centslordm, Adventure10, Mango247
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
RayThroughSpace
426 posts
#8 • 3 Y
Y by centslordm, Adventure10, Mango247
For the sake of contradiction, let $S$ be prime. Note $S$ divides $(x-a)(x-b)(x-c) - (x+d)(x+e)(x+f)$. Substitute $x= a,b,c,-d,-e,-f,$ we get $S$ divides $(d+a)(d+b)(d+c) , (e+a)(e+b)(e+c), (f+a)(f+b)(f+c)$ and

$S|(a+d)(a+e)(a+f)$
$S|(b+d)(b+e)(b+f)$
$S|(c+d)(c+e)(c+f)$

From the first set of 3 conditions, WLOG, we can let $S|(a+d)$, $S|(b+e)$ and $S|(c+f)$. However, each of $(a+d),(b+e), (c+f)$ are smaller than $S$, a contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6882 posts
#9 • 15 Y
Y by Wizard_32, RAMUGAUSS, Gems98, rashah76, Cindy.tw, v4913, Robokop, SerdarBozdag, centslordm, hakN, mathleticguyyy, lahmacun, HamstPan38825, Adventure10, Mango247
Let $p$ be a fixed prime. We say a $6$-tuple $(a,b,c,d,e,f)$ of integers is good if $a+b+c+d+e+f = p$ and $p \mid abc+def$ and $p \mid ab+bc+ca-de-ef-fd$.

Claim: If $(a,b,c,d,e,f)$ is good then so is $(a+1, b+1, c+1, d-1, e-1, f-1)$.

Proof. Direct computation. $\blacksquare$

We claim there exists no good $6$-tuple of positive integers. If not, WLOG $f$ is the smallest of the six numbers. Then by repeating the claim, the tuple $(a+f, b+f, c+f, d-f, e-f, 0)$ is good. But now $p \mid (a+f)(b+f)(c+f)$ and $p > \max(a+f, b+f, c+f)$, contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yayups
1614 posts
#10 • 3 Y
Y by centslordm, Adventure10, Mango247
We see that
\begin{align*}
a+b+c&\equiv -(d+e+f)\pmod{S} \\
ab+bc+ca&\equiv -(de+ef+fd)\pmod{S} \\
abc &\equiv -def\pmod{S}.
\end{align*}Now, assuming that $S$ is prime, we see that
\[(X-a)(X-b)(X-c)=(X+d)(X+e)(X+f)\]over $\mathbb{F}_S[X]$, so because of unique factorization, we have WLOG that $a\equiv -d\pmod{S}$, $b\equiv -e\pmod{S}$, and $c\equiv -f\pmod{S}$. In particular, this means that $S\mid a+d$. However, $S>a+d$, so this isn't possible. Therefore, $S$ couldn't have been prime to start with. $\blacksquare$
This post has been edited 1 time. Last edited by yayups, Apr 5, 2019, 9:30 PM
Reason: latex align fix
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zorger74
760 posts
#11 • 1 Y
Y by centslordm
Solution
This post has been edited 1 time. Last edited by Zorger74, Jan 23, 2021, 12:41 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Spacesam
596 posts
#12 • 1 Y
Y by centslordm
AFSOC $S = p$ for some prime $p$. Define \begin{align*}
    P(x) &= (x + a)(x + b)(x + c) = x^3 + x^2(a + b + c) + x(ab + bc + ca) + abc \\
    Q(x) &= (x - d)(x - e)(x - f) = x^3 - x^2(d + e + f) + x(de + ef + fd) - def,
\end{align*}and consider \begin{align*}
    R(x) &= P(x) - Q(x) \\
    &= x^2 \cdot p + x(ab + bc + ca - de - ef - fd) + abc + def.
\end{align*}Taking mod $p$, we find that $P(x) \equiv Q(x) \pmod p$.

However, plug in $x = d$. We know $Q$ has a root at $d$, so \begin{align*}
    P(d) = (d + a)(d + b)(d + c) \equiv 0\pmod p,
\end{align*}but $p > d + a, d + b, d + c$ and so we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mano
46 posts
#13 • 1 Y
Y by centslordm
$S\geq6$, so assume for the sake of contradiction that $S$ is prime. Let $P(x)\coloneqq (x-a)(x-b)(x-c)$ and $Q(x)\coloneqq (x+a)(x+b)(x+c)$. Multiplying out, we get that $P(x)\equiv Q(x)\;(\text{mod}\,S)$ for all integers $x$. In particular, we get that for an integer $x$, $S$ divides $P(x)$ if and only if $S$ divides $Q(x)$, which, because $S$ is assumed to be a prime, means that $\{a, b, c\}$ is just some permutation of $\{-d, -e, -f\}$ modulo $S$. WLOG, assume that $a\equiv -d$, $b\equiv -e$ and $c\equiv -f$ modulo $S$. But this means that $a+d$, $b+e$ and $c+f$ are all multiples of $S$, which is impossible, because they are positive integers which sum up to $S$.
This post has been edited 1 time. Last edited by Mano, Apr 28, 2021, 9:35 AM
Reason: 6, not 1
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bever209
1522 posts
#14 • 1 Y
Y by centslordm
Note that $(x+a)(x+b)(x+c)-(x-d)(x-e)(x-f)$ has all of its coefficients divisible by $S$. This implies $S|(d+a)(d+b)(d+c)$. FTSOC assume $S$ is prime. Then it must divide either $d+a,d+b,d+c$, all of which are smaller than $S$, a contradiction, so we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bora_olmez
277 posts
#15
Y by
Assume for the sake of contradiction that $S$ is prime. Notice that $$S \mid (a+k)(b+k)(c+k)+(d-k)(e-k)(f-k)$$for all $k \in \mathbb{Z}$.
Then taking $k$ to be $-a,-b,-c$ we have that $\{d,e,f\} = \{-a,-b,-c\}$ in $\mathbb{F}_S$ using that $S$ is prime, yet, adding any such values of $a,b,c,d,e,f$, we have that $$S = a+b+c+d+e+f \geq 3S$$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.
Sprites
478 posts
#16
Y by
Suppose that $S$ is a prime and let $x=-d,y=-e,z=-f$,so that $abc \equiv xyz \pmod S$
Now consider the polynomial $ (a+k)(b+k)(c+k)+(d-k)(e-k)(f-k)$ and clearly inputting $x,y,z$ implies $S|(a+d)(a+e)(a+f)$,which implies that $S$ divides one of $(a+d),(a+e),(a+f)$,a contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AwesomeYRY
579 posts
#17 • 1 Y
Y by trying_to_solve_br
Note that the polynomial $f(x) = (x-a)(x-b)(x-c)-(x+d)(x+e)(x+f) = (ab+ac+bc-de-ef-df)x-(abc+def)$ is divisible by $S$ for all integers $x$. Thus,
\[S\mid f(a) = -(a+d)(a+e)(a+f)\]To finish, $S$ cannot be prime because $a+d,a+e,a+f<a+b+c+d+e+f = S$, so we're done. $\blacksquare$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HoRI_DA_GRe8
599 posts
#18
Y by
Sol
This post has been edited 1 time. Last edited by HoRI_DA_GRe8, Dec 18, 2021, 3:56 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mogmog8
1080 posts
#19 • 1 Y
Y by centslordm
Notice \begin{align*}S\mid f(x)&=Sx^2+(ab+bc+ca-de-df-fd)x+(abc+def)\\&=(x+a)(x+b)(x+c)-(x-d)(x-e)(x-f)\end{align*}Letting $x=d,$ we have $S\mid (d+a)(d+b)(d+c),$ which is absurd if $S$ is prime as $S>d+a,d+b,d+c.$ $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1743 posts
#20
Y by
Assume for the sake of contradiction $S$ is prime, and take polynomials $P(x)=(x-a)(x-b)(x-c)$ and $Q(x)=(x+d)(x+e)(x+f).$ Note that \[P(x)\equiv x^3 - (a+b+c)x^2 + (ab+bc+ca)x-abc \pmod S\]Note that on the other hand, \[Q(x)\equiv x^3 + (d+e+f)x^2 + (de+ef+fd)x+def \pmod S\]Now, $Q(x)-P(x)=Sx^2+(de+ef+fd-ab-bc-ca)x+abc+def.$ Note that this is divisible by $S.$ In particular, $Q(a)-P(a)=(a+d)(a+e)(a+f)$ is divisible by $S.$ Note that each of those factors are less than $S$ but $S$ is prime, 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.
HamstPan38825
8874 posts
#21
Y by
Observe that we have the system of congruences
\begin{align*}
a+b+c &\equiv -d-e-f \pmod S \\
ab+bc+ca &\equiv de+ef+fd \pmod S \\
abc &\equiv -def \pmod S.
\end{align*}This means that $$(x-a)(x-b)(x-c) \equiv (x+d)(x+e)(x+f) \pmod S$$for all $x \in \mathbb Z$ as the resulting polynomials are equivalent under modulo $S$. Letting $x=a$, $$S \mid (a+d)(a+e)(a+f),$$but $a+d, a+e, a+f < S$, and thus $S$ must be composite.
This post has been edited 1 time. Last edited by HamstPan38825, Jul 20, 2022, 12:02 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Kimchiks926
256 posts
#22 • 2 Y
Y by mkomisarova, Mango247
Suppose otherwise that $S$ is prime $p$. Then we have the following equations.
\begin{align*} 
a+b+c \equiv -(d+e+f) \pmod p \\ 
ab+bc+ca \equiv de+ef+df \pmod p \\ 
abc \equiv -def \pmod p 
\end{align*}We will construct numbers $a_1,b_1, c_1, d_1, e_1, f_1$ such that:
\begin{align*} 
a_1+b_1+c_1 \equiv -(d_1+e_1+f_1) \pmod p \\ 
a_1b_1+b_1c_1+c_1a_1 \equiv d_1e_1+e_1f_1+d_1f_1 \pmod p \\ 
a_1b_1c_1 \equiv -d_1e_1f_1 \pmod p 
\end{align*}In fact, this is not so hard to do. It is just enough to take $a_1=a+1, b_1=b+1, c_1 =c_1$ and $d_1 =d-1, e_1 =e-1, f_1 =f-1$. It is easy to see that they satisfy the first congruence. Note that:
\begin{align*} 
(a+1)(b+1)+(b+1)(c+1)+(c+1)(a+1) \equiv (d-1)(e-1)+(e-1)(f-1)+(f-1)(d-1) \pmod p\\ 
ab+bc+ca +2(a+b+c)+3 \equiv de+ef+fd -2(d+e+f)+3 \pmod p
\end{align*}We see that the second desired congruence is also satisfied by given congruences. Also, observe that:
\begin{align*} 
(a+1)(b+1)(c+1) \equiv -(d-1)(e-1)(f-1)  \pmod p \\
a+b+c+(ab+bc+ca)+abc+1 \equiv -((d+e+f)-(de+ef+fd)+def-1) \pmod p \\
(a+b+c+de+f) +(ab+bc+ca-de-ef-fd)+(abc+def) \equiv 0 \pmod p
\end{align*}We see that the third desired congruence is also satisfied by given congruences.

Since $a,b,c, d,e,f$ are positive integers and their sum it $p$, then they all are less than $p$. WLOG $a$ is the largest among $a,b,c$. With each construction we increase $a,b,c$ by $1$ and decrease $d,e,f$ by $1$. We can keep doing it until $a$ becomes $p$. Suppose that we needed for that $k$ constructions, in other words $a+k =p=a_k$. Consider congruence:
$$ a_kb_kc_k \equiv d_ke_kf_k \equiv 0 \pmod p $$We see that it implies that $d_ke_kf_k \equiv 0 \pmod p$. WLOG assume that $d_k = d-k$ is the one which is divisible by $p$. Then $0 \equiv a_k + d_k = a+k+d-k = a+ d \pmod p$, which is contradiction, since it forces $b,c,e,f$ to be $0$.

Our initial assumption was wrong, therefore $S$ composite as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SatisfiedMagma
462 posts
#23 • 1 Y
Y by kamatadu
I'm not smart as others to see that you can really form a polynomial... Anyways here is a solution by induction which kind of makes the polynomial in a different way which I feel is intuitive too...

Solution. Assume on the contrary that $S$ is prime. We will make use of these handy identities in the solution.
\begin{align}
        (a+1)(b+1)(c+1) &= abc + (ab+bc+ca) + (a+b+c) + 1 \\
        (d-k)(e-k)(f-k) &= def - (de+ef+df) + (d+e+f) - 1
    \end{align}The following claim is the crux of the problem.

Claim: $S \mid (a+x)(b+x)(c+x) + (d-x)(e-x)(f-x)$ for all $x \in \mathbb{Z}_{\ge 0}$.

Proof: The proof is by induction with the base case being trivial. As an induction hypothesis, assume that $S \mid (a+k)(b+k)(c+k) + (d-k)(e-k)(f-k)$. For ease of notation label $a+k = A$, $d - k = D$ and so on. Now finally for the inductive step, we will just work backward.
\begin{align*}
            S \mid (A+1)(B+1)(C+1) &+ (D-1)(E-1)(F-1) \\
            \iff S \mid (ABC + DEF) + (AB+BC+CA) &- (DE+EF+FA) + (A+B+C+\ldots)
        \end{align*}By the induction hypothesis, we will cancel of $ABC + DEF$ term. It is not hard to see that $S \mid (A+B+C+D+E+F)$ as well.
\begin{align*}
            \iff S \mid AB + BC + CA - DE - EF - FA
        \end{align*}It isn't hard to expand this out and realize its a tautology. So, the induction is complete.$\square$
Finally choose $x = d$. This would give
\[S = a + b + c + d + e + f \mid (a + d)(b + d)(c+d).\]Since $S$ is a prime, it must divide one of the factors. But since all the factors are positive and less than $S$, its the desired contradiction. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sman96
136 posts
#24 • 1 Y
Y by lian_the_noob12
Let's allow $0$ as value of $d,e,f$.
FTSOC, let's assume that $S = p$ is a prime.
Here, \begin{align*}
S &= a+b+c+d+e+f\\ &= (a+1) + (b+1)+(c+1) + (d-1)+(e-1)+(f-1)
\end{align*}
Now, $p\mid a+b+c+d+e+f$, $p\mid abc+def$ and $p\mid ab+bc+ca-de-ef-df$. Summing these up gives, $$p\mid (a+1)(b+1)(c+1) + (d-1)(e-1)(f-1)$$Also, \begin{align*}
&\sum_{cyc}(a+1)(b+1) - \sum_{cyc}(d-1)(e-1)\\
=& ab+bc+ca-de-ef-df +2(a+b+c+d+e+f)
\end{align*}
Therefore, $\displaystyle p\mid \sum_{cyc}(a+1)(b+1) - \sum_{cyc}(d-1)(e-1)$.
So, if $(a,b,c,d,e,f)$ is a solution then, $(a+1, b+1, c+1, d-1,e-1,f-1)$ is also a solution with $S= p$.

Now we continue this process until one of the elements becomes $0$. WLOG that be $f$.
Then we will get, $p\mid abc$. But therefore $p$ must divide one of $a,b,c$ which isn't possible as, $p = a+b+c+d+e$. This gives 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.
IAmTheHazard
5005 posts
#25 • 1 Y
Y by centslordm
Suppose that $S$ was prime. Then the polynomials $(x+a)(x+b)(x+c)$ and $(x-d)(x-e)(x-f)$ have equivalent expansions modulo $p$, hence we must have $\{-a,-b,-c\} \equiv \{d,e,f\} \pmod{S} \implies \{S-a,S-b,S-c\}=\{d,e,f\}$. But then $d+e+f=3S-a-b-c \implies S=a+b+c+d+e+f=3S$: contradiction. $\blacksquare$
This post has been edited 1 time. Last edited by IAmTheHazard, Aug 12, 2023, 5:46 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lifeismathematics
1188 posts
#26
Y by
Consider $P(x)=(x+a)(x+b)(x+c)-(x-d)(x-e)(x-f)$

$P(x)=Sx^2+x(ab+bc+ca-ed-ef-df)+(abc+def) \implies S|P(x)$ $\forall x \in \mathbb{Z}$

$P(d)=(a+d)(b+d)(c+d)$ hence as $S|P(d)$. Now , $\mathrm{FTSOC}$ assume $S$ is prime, then as we have $S|(a+d)(b+d)(c+d)$ we have at least one of $(a+d), (b+d) , (c+d)> S$ but since $S=a+b+c+d+e+f$ this is absurd for $a,b,c,d,e, f \in \mathbb{Z}^{+}$ , hence our assumption false and hence $S$ is composite $\blacksquare$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sixoneeight
1138 posts
#27 • 1 Y
Y by fuzimiao2013
Solved with xor, xook, and xonk, also known as fuzimiao2013, sixoneeight, popop614.

We can rewrite the condition as
\[
(t-a)(t-b)(t-c) \equiv (t+d)(t+e)(t+f) \pmod{S}
\]for all integer $t$. Suppose for the sake of contradiction that $S$ was prime. Take $t=a$. Then, $S$ divides one of $a+d$, $a+e$, $a+f$. However, since $a,b,c,d,e,f$ are positive integers, that would mean that one of $a+d, a+e, a+f$ is equal to $S$. This is a contradiction as the rest of the variables could not be positive, so $S$ must be composite.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_comb01
662 posts
#28
Y by
FTSOC let $S$ be a prime
$a+b+c \equiv -(d+e+f)$
$abc \equiv (-d)(-e)(-f)$
$ab+bc+ca \equiv (-d)(-e)+(-e)(-f)+(-d)(-f)$
In $\mathbb{F}_S$
$(x-a)(x-b)(x-c) \equiv (x+d)(x+e)(x+f)$
therefore $\{a,b,c\} \equiv \{-d,-e,-f\}$ in $\mathbb{F}_S$
$\therefore$ we're done.
This post has been edited 2 times. Last edited by math_comb01, Dec 27, 2023, 11:57 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EpicBird08
1756 posts
#29 • 2 Y
Y by GeoKing, torch
Thanks to torch for suggesting this problem to me!

Let $k$ be an integer. Note that $S$ divides the quantity $$abc + def + k(ab+bc+ca-de-ef-fd) + k^2(a+b+c+d+e+f) + 1 - 1 = (a+k)(b+k)(c+k) - (d-k)(e-k)(f-k).$$Now there are $2$ cases.

Case 1: The smallest of $a,b,c,d,e,f$ is one of $a,b,c.$ WLOG suppose it is $a.$ Letting $k = -a$ gives $S \mid -(d+a)(e+a)(f+a),$ so switching the positive sign yields $$S \mid (d+a)(e+a)(f+a).$$If $S$ was prime, then it would have to divide at least one of these factors, say $d+a$ (the other cases are symmetrical to this). Then $a+b+c+d+e+f \mid d+a,$ which is a contradiction due to size issues.

Case 2: The smallest of $a,b,c,d,e,f$ is one of $d,e,f.$ WLOG suppose it is $d.$ Letting $k = d$ gives $S \mid (a+d)(b+d)(c+d),$ and repeat the size argument from the previous case.

Therefore, in any case, $S$ must be composite, as desired.
This post has been edited 1 time. Last edited by EpicBird08, Jun 21, 2024, 10:31 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PEKKA
1850 posts
#30
Y by
Used a whole bunch of ARCH Hints after 30 min of failing:
FTSOC $S=p$ for some prime $p.$
Let $d_0=-d, e_0=-e, f_0=-f.$ Then we get a vieta-like relation modulo $P.$ This implies that $a,b,c$ and $d_0,e_0,f_0$ are roots to the same polynomial with coefficients modulo $p.$
Now WLOG $a-d_0 \equiv 0\pmod{p},b-e_0 \equiv 0\pmod{p}, c-f_0 \equiv 0\pmod{p}.$
Therefore, $a+d, b+e, c+f$ are multiples of $p$
Therefore, $S=a+d+b+e+c+f=p(k)$ for some integer $k>1$ which violates the condition that $S=p,$ or $S$ is prime. Therefore $S$ must be composite.
This post has been edited 1 time. Last edited by PEKKA, Jun 23, 2024, 7:03 PM
Reason: edit
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
658 posts
#31
Y by
Really cute problem. I'm surprised I found the nice solution! We consider ordered pairs of sets $(\{a,b,c\},\{d,e,f\})$ which satisfy the given conditions. We call such a pair a good pair and if $a+b+c+d+e+f=k$ then we say that it is a $k-$good pair. We start off by proving the following nice result about $k-$good pairs.

Claim : For all integers $k$ for which there exists a $k-$good pair $(\{a,b,c\},\{d,e,f\})$, the pairs $(\{a-1,b-1,c-1\},\{d+1,e+1,f+1\})$ and $(\{a+1,b+1,c+1\},\{d-1,e-1,f-1\})$ are also $k-$good.

Proof : It is not hard to see that they must be $k-$good if they are good at all, since the sum $a+b+c+d+e+f$ does not change in either instance. We show that if $(\{a,b,c\},\{d,e,f\})$ is good then the pair $(\{a-1,b-1,c-1\},\{d+1,e+1,f+1\})$ must also be good. This is a mere calculation. Note that,
\[    (a-1)(b-1)(c-1)+(d+1)(e+1)(f+1) = (abc+def) -(ab+bc+ca-de-ef-fd) + (a+b+c+d+e+f)\]where each of the bracketed terms are known to be multiples of $a+b+c+d+e+f$. The proof of the other is entirely similar, so this finishes the proof of the claim.

We wish to show that there exists no $p-$good pairs for any prime $p$. By way of contradiction, say there exists such a prime $p$ and a $p-$good pair $(\{a,b,c\},\{d,e,f\})$. Then, WLOG say the minimum element of the set $\{a,b,c,d,e,f\}$ is $a$. By way of our claim, it follows that the pair $(\{0,b-a,c-a\},\{d+a,e+a,f+a\})$ is also $p-$good. Note that here, $d'=d+a$ , $e'=e+a$ and $f'=f+a$ are all positive integers. Then,
\[p|(0)(b-a)(c-a)+(d+a)(e+a)(f+a)=d'e'f'\]Since $p$ is a prime, this implies that $p$ divides one of $d'$ , $e'$ and $f'$. But, since $p=0 + (b-a) + (c-a) + (d+a) + (e+a) + (f+a)$ where the first 3 terms are non-negative and the last two terms are strictly positive,
\[p = (b-a) + (c-a) + (d+a) + (e+a) + (f+a) \ge d'+e'+f' > d',e',f' \]which is a clear contradiction. Thus, there cannot exist such a prime $p$ which proves the desired result.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kingu
220 posts
#32
Y by
Same solution as everyone else.
Storage
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4191 posts
#33
Y by
a bit silly, statement reminded me of usa tst 2021/1

Suppose FTSOC $a+b+c+d+e+f=p$.

Claim: For any integer $t$,
$$(a+t)(b+t)(c+t)+(d-t)(e-t)(f-t)\equiv 0\pmod p.$$
We have
$$(abc+def)+t(ab+ac+bc-de-df-ef)+t^2(a+b+c+d+e+f)+(t^3-t^3)\equiv 0\pmod{p}.$$
In particular, if $t=d$, then $p\mid (a+d)(b+d)(c+d)$. However, $a+d,b+d,c+d$ are all less than $p$, contradiction if $p$ is prime.

code golf because this is funny
This post has been edited 1 time. Last edited by john0512, Nov 15, 2024, 8:46 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
emi3.141592
71 posts
#34
Y by
Suppose that \(S\) is prime. Observe that
\[
a + b + c \equiv -d - e - f \pmod{S}
\]\[
abc \equiv -def \pmod{S}
\]\[
ab + bc + ca \equiv de + ef + fd \pmod{S}
\]By Vieta, we have that for every positive integer \(n\), the following relation holds:
\[
(n + a)(n + b)(n + c) \equiv (n - d)(n - e)(n - f) \pmod{S}.
\]By setting \(n = -a\), we obtain that \(S\) divides one of the numbers \(-a-d\), \(-a-e\), or \(-a-f\).

By symmetry, we can assume without loss of generality that \(S \mid -a-d\). In particular, we have \(-d \equiv a \pmod{S}\), i.e., \(S \mid d+a\).

However, this is a contradiction, since
\[
a + d < a + b + c + d + e + f = S.
\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AshAuktober
1014 posts
#35
Y by
Note that by Vieta, we have $S \mid P(x) = (x-a)(x-b)(x-c) - (x+d)(x+e)(x+f)$.
But putting $x = a$ we get $S$ cannot be prime, qed.
This post has been edited 1 time. Last edited by AshAuktober, Dec 20, 2024, 3:11 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mr.Sharkman
500 posts
#36
Y by
Assume for the sake of contradiction that $a+b+c+d+e+f$ is prime. Then, $a+b+c \equiv -d-e-f,$ $ab+bc+ca \equiv de+df+ef,$ and $abc \equiv -def,$ when taken modulo $a+b+c+d+e+f.$ Let $i_{1} \equiv -i,$ for $i \in \{a,b,c\}.$ It is clear that $a_{1}+b_{1}+c_{1} \equiv d+e+f,$ and $a_{1}b_{1}+a_{1}c_{1}+b_{1}c_{1} \equiv de+ef+df,$ and $a_{1}b_{1}c_{1} \equiv de+ef+df.$ So, $\{a_{1}, a_{2}, a_{3}\}, \{d, e, f\}$ are the solutions of some cubic modulo $p.$ But, by Lagrange's Theorem, this can only have at most $3$ solutions, so these sets are the same, in some order. So, $i+j \equiv 0,$ where $i \in \{a,b,c\},$ and $j \in \{d,e,f\}.$ But, then $i+j < a+b+c+d+e+f,$ so we have a contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Perelman1000000
138 posts
#37
Y by
v_Enhance wrote:
Let $p$ be a fixed prime. We say a $6$-tuple $(a,b,c,d,e,f)$ of integers is good if $a+b+c+d+e+f = p$ and $p \mid abc+def$ and $p \mid ab+bc+ca-de-ef-fd$.

Claim: If $(a,b,c,d,e,f)$ is good then so is $(a+1, b+1, c+1, d-1, e-1, f-1)$.

Proof. Direct computation. $\blacksquare$

We claim there exists no good $6$-tuple of positive integers. If not, WLOG $f$ is the smallest of the six numbers. Then by repeating the claim, the tuple $(a+f, b+f, c+f, d-f, e-f, 0)$ is good. But now $p \mid (a+f)(b+f)(c+f)$ and $p > \max(a+f, b+f, c+f)$, contradiction.

When i first saw this problem on math class in 15 minutes i had exactly same solution as you :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
678 posts
#38
Y by
Note that this implies that the polynomials $P(x) = (x + d)(x + e)(x + f), Q(x) = (x - a)(x - b)(x - c)$ are congruent modulo $S.$ Thus, $P(x) - Q(x) \equiv 0\pmod S.$ However, $P(a) - Q(a) = (a + d)(a + e)(a + f) \equiv 0 \pmod S.$ However, each of the factors are less than $S,$ which finishes.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
401 posts
#39
Y by
Suppose, FTSOC, it is a prime. Let $a + b + c + d + e + f = p$. We have $p \mid ab + bc + ca - de - ef - df \implies p \mid abc + c^2(a + b) - dec - efc - dfc \implies p \mid - def + c^2(-c - d - e - f) - dec - efc - dfc \implies p \mid c^3 + c^2d + c^2e + c^2f + dec + efc + dfc + def = (c + d)(c + e)(c + f)$.

So, $p$ must divide one of them but all three are less than $a + b + c + d + e + f$, a contradiction. So, $S$ is composite.
This post has been edited 1 time. Last edited by alexanderhamilton124, Feb 4, 2025, 7:50 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
YaoAOPS
1541 posts
#40
Y by
This means that $S$ divides the coefficients of
\[
	(x+a)(x+b)(x+c) - (x-d)(x-e)(x-f).
\]If $S$ was prime, then this means that $\{a, b, c\} \equiv \{-d, -e, -f\} \pmod{S}$, however then $p$ divides one of $a+d, a+e, a+f$, giving a contradiction by size.
This post has been edited 1 time. Last edited by YaoAOPS, Apr 23, 2025, 2:44 PM
Z K Y
N Quick Reply
G
H
=
a