We have your learning goals covered with Spring and Summer courses available. Enroll today!

G
Topic
First Poster
Last Poster
k a My Retirement & New Leadership at AoPS
rrusczyk   1571
N Mar 26, 2025 by SmartGroot
I write today to announce my retirement as CEO from Art of Problem Solving. When I founded AoPS 22 years ago, I never imagined that we would reach so many students and families, or that we would find so many channels through which we discover, inspire, and train the great problem solvers of the next generation. I am very proud of all we have accomplished and I’m thankful for the many supporters who provided inspiration and encouragement along the way. I'm particularly grateful to all of the wonderful members of the AoPS Community!

I’m delighted to introduce our new leaders - Ben Kornell and Andrew Sutherland. Ben has extensive experience in education and edtech prior to joining AoPS as my successor as CEO, including starting like I did as a classroom teacher. He has a deep understanding of the value of our work because he’s an AoPS parent! Meanwhile, Andrew and I have common roots as founders of education companies; he launched Quizlet at age 15! His journey from founder to MIT to technology and product leader as our Chief Product Officer traces a pathway many of our students will follow in the years to come.

Thank you again for your support for Art of Problem Solving and we look forward to working with millions more wonderful problem solvers in the years to come.

And special thanks to all of the amazing AoPS team members who have helped build AoPS. We’ve come a long way from here:IMAGE
1571 replies
rrusczyk
Mar 24, 2025
SmartGroot
Mar 26, 2025
k a March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/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, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
Sunday, Apr 13 - Aug 10
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Tuesday, Mar 25 - Jul 8
Sunday, Apr 13 - Aug 10
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21


Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Mar 23 - Jul 20
Monday, Apr 7 - Jul 28
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Mar 16 - Jun 8
Wednesday, Apr 16 - Jul 2
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Monday, Mar 17 - Jun 9
Thursday, Apr 17 - Jul 3
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Sunday, Mar 2 - Jun 22
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
Wednesday, Apr 23 - Oct 1
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
Monday, Apr 21 - Oct 13
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Sunday, Mar 23 - Aug 3
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Sunday, Mar 16 - Aug 24
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Sunday, Mar 23 - Jun 15
Wednesday, Apr 16 - Jul 2
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Friday, Apr 11 - Jun 27
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

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


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

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

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Mar 2, 2025
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
Deriving Van der Waerden Theorem
Didier2   0
10 minutes ago
Source: Khamovniki 2023-2024 (group 10-1)
Suppose we have already proved that for any coloring of $\Large \mathbb{N}$ in $r$ colors, there exists an arithmetic progression of size $k$. How can we derive Van der Waerden's theorem for $W(r, k)$ from this?
0 replies
+1 w
Didier2
10 minutes ago
0 replies
Not so classic orthocenter problem
m4thbl3nd3r   6
N 12 minutes ago by maths_enthusiast_0001
Source: own?
Let $O$ be circumcenter of a non-isosceles triangle $ABC$ and $H$ be a point in the interior of $\triangle ABC$. Let $E,F$ be foots of perpendicular lines from $H$ to $AC,AB$. Suppose that $BCEF$ is cyclic and $M$ is the circumcenter of $BCEF$, $HM\cap AB=K,AO\cap BE=T$. Prove that $KT$ bisects $EF$
6 replies
m4thbl3nd3r
Yesterday at 4:59 PM
maths_enthusiast_0001
12 minutes ago
Functional equations
hanzo.ei   1
N 13 minutes ago by GreekIdiot
Source: Greekldiot
Find all $f: \mathbb R_+ \rightarrow \mathbb R_+$ such that $f(xf(y)+f(x))=yf(x+yf(x)) \: \forall \: x,y \in \mathbb R_+$
1 reply
hanzo.ei
an hour ago
GreekIdiot
13 minutes ago
A number theory problem from the British Math Olympiad
Rainbow1971   6
N 27 minutes ago by ektorasmiliotis
Source: British Math Olympiad, 2006/2007, round 1, problem 6
I am a little surprised to find that I am (so far) unable to solve this little problem:

[quote]Let $n$ be an integer. Show that, if $2 + 2 \sqrt{1+12n^2}$ is an integer, then it is a perfect square.[/quote]

I set $k := \sqrt{1+12n^2}$. If $2 + 2 \sqrt{1+12n^2}$ is an integer, then $k (=\sqrt{1+12n^2})$ is at least rational, so that $1 + 12n^2$ must be a perfect square then. Using Conway's topograph method, I have found out that the smallest non-negative pairs $(n, k)$ for which this happens are $(0,1), (2,7), (28,97)$ and $(390, 1351)$, and that, for every such pair $(n,k)$, the "next" such pair can be calculated as
$$
\begin{bmatrix}
7 & 2 \\
24 & 7 
\end{bmatrix} \begin{bmatrix}
n \\
k 
\end{bmatrix}
.$$The eigenvalues of that matrix are irrational, however, so that any calculation which uses powers of that matrix is a little cumbersome. There must be an easier way, but I cannot find it. Can you?

Thank you.




6 replies
Rainbow1971
Yesterday at 8:39 PM
ektorasmiliotis
27 minutes ago
CHKMO 2017 Q3
noobatron3000   7
N an hour ago by Entei
Source: CHKMO
Let ABC be an acute-angled triangle. Let D be a point on the segment BC, I the incentre of ABC. The circumcircle of ABD meets BI at P and the circumcircle of ACD meets CI at Q. If the area of PID and the area of QID are equal, prove that PI*QD=QI*PD.
7 replies
noobatron3000
Dec 31, 2016
Entei
an hour ago
Geometry
Jackson0423   1
N an hour ago by ricarlos
Source: Own
In triangle ABC with circumcenter O, if the intersection point of lines BO and AC is N, then BO = 2ON, and BMN = 122 degrees with respect to the midpoint M of AB. Find MNB.
1 reply
Jackson0423
Yesterday at 4:40 PM
ricarlos
an hour ago
Chile TST IMO prime geo
vicentev   4
N an hour ago by Retemoeg
Source: TST IMO CHILE 2025
Let \( ABC \) be a triangle with \( AB < AC \). Let \( M \) be the midpoint of \( AC \), and let \( D \) be a point on segment \( AC \) such that \( DB = DC \). Let \( E \) be the point of intersection, different from \( B \), of the circumcircle of triangle \( ABM \) and line \( BD \). Define \( P \) and \( Q \) as the points of intersection of line \( BC \) with \( EM \) and \( AE \), respectively. Prove that \( P \) is the midpoint of \( BQ \).
4 replies
+1 w
vicentev
Today at 2:35 AM
Retemoeg
an hour ago
Cute orthocenter geometry
MarkBcc168   77
N an hour ago by ErTeeEs06
Source: ELMO 2020 P4
Let acute scalene triangle $ABC$ have orthocenter $H$ and altitude $AD$ with $D$ on side $BC$. Let $M$ be the midpoint of side $BC$, and let $D'$ be the reflection of $D$ over $M$. Let $P$ be a point on line $D'H$ such that lines $AP$ and $BC$ are parallel, and let the circumcircles of $\triangle AHP$ and $\triangle BHC$ meet again at $G \neq H$. Prove that $\angle MHG = 90^\circ$.

Proposed by Daniel Hu.
77 replies
MarkBcc168
Jul 28, 2020
ErTeeEs06
an hour ago
Sharygin CR P20
TheDarkPrince   37
N 2 hours ago by E50
Source: Sharygin 2018
Let the incircle of a nonisosceles triangle $ABC$ touch $AB$, $AC$ and $BC$ at points $D$, $E$ and $F$ respectively. The corresponding excircle touches the side $BC$ at point $N$. Let $T$ be the common point of $AN$ and the incircle, closest to $N$, and $K$ be the common point of $DE$ and $FT$. Prove that $AK||BC$.
37 replies
TheDarkPrince
Apr 4, 2018
E50
2 hours ago
Gheorghe Țițeica 2025 Grade 7 P3
AndreiVila   1
N 2 hours ago by Rainbow1971
Source: Gheorghe Țițeica 2025
Out of all the nondegenerate triangles with positive integer sides and perimeter $100$, find the one with the smallest area.
1 reply
AndreiVila
Yesterday at 8:41 PM
Rainbow1971
2 hours ago
Gheorghe Țițeica 2025 Grade 9 P3
AndreiVila   1
N 3 hours ago by AlgebraKing
Source: Gheorghe Țițeica 2025
Consider the plane vectors $\overrightarrow{OA_1},\overrightarrow{OA_2},\dots ,\overrightarrow{OA_n}$ with $n\geq 3$. Suppose that the inequality $$\big|\overrightarrow{OA_1}+\overrightarrow{OA_2}+\dots +\overrightarrow{OA_n}\big|\geq \big|\pm\overrightarrow{OA_1}\pm\overrightarrow{OA_2}\pm\dots \pm\overrightarrow{OA_n}\big|$$takes place for all choiches of the $\pm$ signs. Show that there exists a line $\ell$ through $O$ such that all points $A_1,A_2,\dots ,A_n$ are all on one side of $\ell$.

Cristi Săvescu
1 reply
AndreiVila
Yesterday at 9:16 PM
AlgebraKing
3 hours ago
Two circles are tangents in a triangles with angle 60
nAalniaOMliO   1
N 3 hours ago by sunken rock
Source: Belarusian National Olympiad 2025
In a triangle $ABC$ angle $\angle BAC = 60^{\circ}$. Point $M$ is the midpoint of $BC$, and $D$ is the foot of altitude from point $A$. Points $T$ and $P$ are marked such that $TBD$ is equilateral, and $\angle BPD=\angle DPC = 30^{\circ}$ and this points lie in the same half-plane with respect to $BC$, not in the same as $A$.
Prove that the circumcircles of $ADP$ and $AMT$ are tangent.
1 reply
nAalniaOMliO
Yesterday at 8:27 PM
sunken rock
3 hours ago
Gheorghe Țițeica 2025 Grade 8 P3
AndreiVila   1
N 3 hours ago by sunken rock
Source: Gheorghe Țițeica 2025
Two regular pentagons $ABCDE$ and $AEKPL$ are given in space, such that $\angle DAK = 60^{\circ}$. Let $M$, $N$ and $S$ be the midpoints of $AE$, $CD$ and $EK$. Prove that:
[list=a]
[*] $\triangle NMS$ is a right triangle;
[*] planes $(ACK)$ and $(BAL)$ are perpendicular.
[/list]
Ukraine Olympiad
1 reply
AndreiVila
Yesterday at 9:00 PM
sunken rock
3 hours ago
Geometry Problem in Taiwan TST
chengbilly   3
N 3 hours ago by Hakurei_Reimu
Source: 2025 Taiwan TST Round 2 Independent Study 2-G
Given a triangle $ABC$ with circumcircle $\Gamma$, and two arbitrary points $X, Y$ on $\Gamma$. Let $D$, $E$, $F$ be points on lines $BC$, $CA$, $AB$, respectively, such that $AD$, $BE$, and $CF$ concur at a point $P$. Let $U$ be a point on line $BC$ such that $X$, $Y$, $D$, $U$ are concyclic. Similarly, let $V$ be a point on line $CA$ such that $X$, $Y$, $E$, $V$ are concyclic, and let $W$ be a point on line $AB$ such that $X$, $Y$, $F$, $W$ are concyclic. Prove that $AU$, $BV$, $CW$ concur at a single point.

Proposed by chengbilly
3 replies
chengbilly
Mar 27, 2025
Hakurei_Reimu
3 hours ago
IMO 2018 Problem 2
juckter   95
N Mar 26, 2025 by Marcus_Zhang
Find all integers $n \geq 3$ for which there exist real numbers $a_1, a_2, \dots a_{n + 2}$ satisfying $a_{n + 1} = a_1$, $a_{n + 2} = a_2$ and
$$a_ia_{i + 1} + 1 = a_{i + 2},$$for $i = 1, 2, \dots, n$.

Proposed by Patrik Bak, Slovakia
95 replies
juckter
Jul 9, 2018
Marcus_Zhang
Mar 26, 2025
IMO 2018 Problem 2
G H J
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_comb01
662 posts
#94
Y by
Cool Problem!
We claim that the answer is $3|n$; having construction $(-1,2,-1,-1,2,-1 \cdots -1,2,-1)$.
Clearly all the $a_i$ cannot be equal. Notice:
$$a_{i+2}(a_{i}a_{i+1}+1)=(a_{i+2})^2$$$$a_i(a_{i+1}a_{i+2}+1)=(a_i)(a_{i+3})$$subtracting these equations yield
$$a_{i+2}+a_{i+1}a_{i+3}=a_{i+2}^2+a_i$$summing over cyclically gives
$$\sum_{cyc} a_i^2 = \sum_{cyc} a_ia_{i+3}$$which is equivalent to
$$ \sum_{cyc} (a_i-a_{i+3})^2= 0 $$which implies if $3$ does not divide $n$; then all the numbers are equal, which is a clear contradiction!. Hence the claimed $n$ only work
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eibc
597 posts
#95
Y by
The answer is all $n$ such that $3 \mid n$. For such $n$, take $a_i = 2$ if $3 \mid i$ and $a_i = -1$ otherwise, which can be verified to work.

To prove these are the only such $n$, we note that $a_{i + 1}a_{i + 2} + 1 = a_{i + 3}$, and multiplying both sides of this by $a_i$ gives $a_ia_{i + 3} - a_i = a_ia_{i + 1} a_{i + 2} = a_{i + 2}(a_{i + 2} - 1) = a_{i + 2}^2 - a_{i + 2}$, or $a_{i + 2}^2 - a_ia_{i + 3} - a_{i + 2} + a_i = 0$. Cyclically summing this result (and letting $a_{n + 3} = a_3$) gives
\begin{align*}
\sum_{i = 1}^n a_i^2 - \sum_{i = 1}^n a_ia_{i + 3}  &= \frac{1}{2} \left(\sum_{i = 1}^n (a_i^2 - 2a_ia_{i + 3} + a_{i + 3}^2)\right) \\
&= \frac{1}{2} \left(\sum_{i = 1}^n (a_i - a_{i + 3})^2 \right) \\
&= 0.
\end{align*}Thus if $i \equiv j \pmod 3$, then $a_i = a_j$. If $3 \nmid n$, then the sequence $1, 4, 7, \ldots$ hits every residue modulo $n$ so all the $a_i$ are equal, but this gives imaginary solutions. If $3 \mid n$ then we can use the aforementioned sequence, 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.
blueprimes
315 posts
#96
Y by
We claim that the only $n$ that works are multiples of $3$. Multiplying the general recursion by $a_{i + 2}$ yields $a_i a_{i + 1} a_{i + 2} + a_{i + 2} = a_{i + 2}^2$. Then
$$\sum_{i = 1}^n a_i a_{i + 1} a_{i + 2} = \sum_{i = 1}^n (a_{i + 2}^2 - a_{i + 2}) \implies \sum_{i = 1}^n a_i a_{i + 1} a_{i + 2} = \sum_{i = 1}^n a_i^2 - \sum_{i = 1}^n a_i$$Now we can "re-link" the terms to obtain the summation
$$\sum_{i = 1}^n (a_i a_{i + 1} a_{i + 2} + a_i) = \sum_{i = 1}^n a_i a_{i + 3} = \sum_{i = 1}^n a_i^2$$$$\implies \sum_{i = 1}^n (a_i - a_{i + 3})^2 = 0.$$If $3$ divides $n$, let $n = 3k$ for some positive integer $k$. We have $a_1 = a_4 = \dots = a_{3k - 2}, a_2 = a_5 = \dots = a_{3k - 1}, a_3 = a_6 = \dots = a_{3k}$. Observe that we can set these common equal values as $2, -1, -1$ respectively, yielding a valid solution. On the other hand if $3$ does not divide $n$, all $a_i$ are equal, so $a_1^2 + 1 = a_1$ which has no real solutions. Our proof is complete.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1728 posts
#97 • 1 Y
Y by megarnie
The answer is $n\equiv 0\pmod 3.$ For the construction take $a_{3k+1}=a_{3k+2}=-1,a_{3k}=2.$ Now notice that if $a_i,a_{i+1}>0$ we have $a_{i+2},a_{i+3}>1$ and for $j\ge 3$ we have $a_{i+j+1}>a_{i+j},$ impossible. Also if $a_i=0$ we have $a_{i+1}=a_{i+2}=1,$ contradiction from earlier. Now if we consider the indices of the positive $a_i$ we see that they cannot be adjacent and two that are consecutive cannot be spaced by more than $2$ since if $a_i,a_{i+1}$ are negative then $a_{i+2}$ is positive. Now if $n \not\equiv 0\pmod 3$ we can see that there must be some $a_i=a,a_{i+1}=-b,a_{i+2}=1-ab$ with $a,b,1-ab$ positive. Of these choose the maximal $b.$ If $b\le 1$ we have $a_{i+3}=1+b(ab-1).$ However since $a,b>0$ we have $0<ab<1$ so $ab-1>-1$ and $1+b(ab-1)>0,$ impossible since this implies $a_{i+2},a_{i+3}$ both positive. Now if $b>1$ we have $a_{i-1}=-\frac{b+1}a$ and $a_{i-2}=\frac{a(1-a)}{b+1}.$ Now we have $a_{i-2}>0,a_{i-1}<0,a_i>0,$ but $1-ab>0$ gives $1+b-ab>0$ which gives $\frac{b+1}a>b,$ contradicting maximality finishing.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dolphinday
1318 posts
#98
Y by
Multiply by $a_{i+2}$ to get
\[a_ia_{i+1}a_{i+2} + a_{i+2} = a_{i+2}^2 \implies\]
\[\sum_{i=1}^{n} a_ia_{i+1}a_{i+2} \sum_{i=1}^{n} a_{i+2} = \sum_{i=1}^{n} a_{i+2}^2\]\[\implies \sum_{i=1}^{n} a_ia_{i+1}a_{i+2} = \sum_{i=1}^{n} a_{i}^2 - \sum_{i=1}^{n} a_{i}\]\[\implies \sum_{i=1}^{n} a_i(a_{i+1}a_{i+2} + 1) = \sum_{i=1}^{n} a_{i}^2 = \sum_{i=1}^{n} a_ia_{i+3}\]\[\implies \sum_{i=1}^{n} (a_i - a_{i+3})^2 = 0\]Hence, every $3$rd term must be equal.
So $3 | n$, or all $a_i$ are equal.
If all $a_i$ are equal, then $x^2 + 1 = x$ has no solutions, so $3 | n$ must be true.
$\newline$

Our construction for $3 | n$ is
$(-1, -1,  2, -1, -1,  2, \dots, 2)$.
This post has been edited 2 times. Last edited by dolphinday, Jan 31, 2024, 10:29 PM
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
#99
Y by
We claim multiples of $3$ work just by repeating the sequence $(2, -1, -1)$.

It is obvious that $0$ cannot occur since this would cause all the terms to be positive and grow arbitrarily large. Therefore $1$ cannot occur since it implies that $0$ occurs as one of the previous two terms.

Now it is obvious that we cannot have two positive numbers in a row for similar reasons to above. Now if we have two negatives, by definition the next term must positive and if we have negative then positive, the next term must be negative since we cannot have two positives in a row.

Claim: We cannot have the sequence, positive, negative, positive.

We get the cases where it alternates forever between positive and negative or it starts with two negatives and then alternates between positive and negative before having two negatives again.

Case 1: We get that the positive numbers must always be increasing which gives a contradiction since they will eventually repeat.

Case 2: If this sequence goes negative, negative, positive, negative, positive, we get that the first positive must be greater than $1$ and the second positive must be less than $1$. But we can also get that the negative between the two positives must be less that $-1$ since the term after the second positive is still a negative. But then we get a term greater than $1$ multiplied by a term less than $-1$ is greater than $-1$ which is a contradiction so we are done.

Since the sequence must go negative, negative, positive, we have shown $3 \mid n$ and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jp62
53 posts
#100
Y by
I claim that $n$ satisfies the condition iff $n$ is a multiple of $3$. This is achieved with $a_i=-1$ for $3\nmid i$ and $a_i=2$ for $3\mid i$, which works as $(-1)(-1)+1=2$ and $(-1)(2)+1=-1$.

Now we show that if $3\mid n$ is necessary. View $\{a_i\}$ as an infinite periodic sequence with period $n$ (take indices mod $n$). Denote a positive $a_i$ by $+$ and a negative $a_i$ with $-$, and write the string of $+$ and $-$ and $0$ symbols. We show the following:

We cannot have + +
We cannot have any zeros
We cannot have an infinite repeating sequence of + -
We cannot have the sequence - - -
We cannot have the sequence - - + - + -

Now we just need to show that the exclusion of all these sequences implies $3\mid n$. Indeed, since there is no $++$, every $+$ must be preceded and followed by a $-$. If there exists a $+-+$ sequence, this must be preceded and followed by a $-$, thus giving $-+-+-$. And since this cannot be preceded by a $-$, we get $+-+-+-$. But continuing this logic, this must always be preceded by $+-$. Extending this all the way to $n$ terms and applying periodicity we end up with either a conflict if $n$ is odd or an infinite repeating sequence of $+-$, which violates (3).

From this we conclude that the only possibility is for every $+$ to be followed by two $-$s, and since $---$ cannot exist, we get a periodic sequence of $+--$. For this to align, we must have that $3\mid n$ as that is the minimal period of the sequence. 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.
Pyramix
419 posts
#101
Y by
MiniClaim1: Two consecutive terms cannot both be positive.
Proof. Suppose for contradiction there are consecutive two positive terms, say $a_1,a_2$. Then, $a_3$ is positive. Since $a_2,a_3$ are positive, $a_4$ is positive. Then, all numbers become positive. But then every term is also more than 1 but we also have $a_2>a_1a_0$, $a_3>a_2a_1$, \ldots, $a_1>a_0a_{-1}$. Multiplying, we get $a_1a_2\cdots a_n<1$ which is impossible as all numbers are more than 1.

MiniClaim2: No term can be 0.
Proof. Suppose $a_1=0$. Then, $a_2=1,a_3=1$ which gives two consecutive positive terms - impossible.

MiniClaim3: Three consecutive terms cannot be both negative.
Proof. Suppose $a_1, a_2, a_3<0$. But then $a_3=1+a_1a_2>1$, so we get contradiction.

MiniClaim4: If $a_i, a_{i+1}$ are both negative, then $a_{i+4}$ is also negative.
Proof. Let $i=1$. If $a_1, a_2$ are negative then $a_3=1+a_1a_2>1$ which forces $a_4<0$ by MiniClaim1. Suppose it was possible that $a_5>0$. Then, $a_6<0$ is forced or else two consecutive terms are positive. So, $1+a_4a_5<0$ and $1+a_3a_4>0$ which means $a_5>a_3$. But $a_5=1+a_3a_4>a_3$ which means $a_3<1$ but then $a_3=1+a_1a_2>1$, so we have contradiction.
It follows that if $a_i<0,a_{i+1}<0$ then sequence runs like: \[\text{negative},\text{negative},\text{positive},\text{negative},\text{negative},\text{positive},\text{negative},\text{negative},\text{positive},\ldots \ \ \ \ (\star)\]and that forces $3\mid n$ as $a_i$ and $a_{i+3}$ have same sign.

Consider a sequence where no consecutive terms are negative nor positive. So, any consecutive terms have different sign. Then, the sequence will proceed like $\text{negative},\text{positive},\text{negative},\text{positive}$. We show that this is impossible. Suppose possible. Then, if $a_i$ is positive, then $a_{i+2}=1+a_ia_{i+1}<1$. So all positive terms are in $(0,1)$. Choose the smallest element, say $a_M$. Then, $a_M<0$ and we have $-a_{M-2}=\left(\frac{1-a_M}{a_{M-1}}\right)>\frac{-a_M}{a_{M-1}}>-a_M$ which means $a_M>a_{M-2}$, a contradiction.

So, only sequence possible is the $(\star)$ sequence. The construction:
\[-1,-1,2,-1,-1,2\ldots\]works. :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SenorSloth
37 posts
#102 • 1 Y
Y by OronSH
We claim that the answer is $3\mid n$ only. The construction is repeating $-1,-1,2$ as many times as needed, which clearly works.

Now we show that no other values work. First, we show that no two positive numbers may be consecutive. FTSOC assume $a_i$ and $a_{i+1}$ are positive. Once you have two consecutive positive numbers, everything after that must have a value greater than $1$, so in order to loop back around, $a_i$ and $a_{i+1}$ must be greater than $1$. However, this forces the sequence to be strictly increasing, which clearly won't loop around, contradiction. This also tells us no term can be $0$, because if $a_i=0$ then $a_{i+1}=a_{i+2}=1$, which is not allowed.

Now we show that if two consecutive terms are negative, which we call $a_i$ and $a_{i+1}$, then $a_{i+2}$ is positive and $a_{i+3}$ and $a_{i+4}$ are negative, and then the pattern repeats. $a_{i+2}>1$ since $a_ia_{i+1}$ is positive. We know from above that this forces $a_{i+3}$ to be negative. FTSOC assume $a_{i+4}$ is positive. Since $a_{i+2}>1$, this would force $\lvert a_{i+3}\rvert<1$. Since $a_{i+2}a_{i+3}$ is negative yet $a_{i+4}$ is positive, we know that $a_{i+4}<1$. However, this means that $a_{i+5}=a_{i+3}a_{i+4}+1$ is positive, so there are consecutive positive terms, contradiction. Thus, if there are two consecutive negatives at any point, then the whole sequence repeats the pattern of two negatives followed by a positive, which would force the number of terms to be divisible by $3$.

There is only one other potential case, which is when the terms alternate in sign. Assume that $a_{i}$ is positive and $a_{i+1}$ is negative, and the sequence alternates from then on. Since $a_{i+3}$ is negative while $a_{i+2}$ is positive, we require that $a_{i+1}a_{i+2}<a_ia_{i+1}$, and since $a_{i+1}$ is negative this implies that $a_{i+2}>a_i$. However, repeatedly applying this tells us that the positive terms are strictly increasing, which is a contradiction since we can never loop back around.

Thus, $3\mid n$ is the only possibility, as desired.
This post has been edited 1 time. Last edited by SenorSloth, Jun 9, 2024, 1:53 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathandski
727 posts
#103
Y by
Subjective Rating (MOHs) $       $
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megahertz13
3177 posts
#104 • 1 Y
Y by kilobyte144
The answer is $n\equiv 0\pmod 3$.

Proof that these $n$ satisfy the condition. Take the sequence $$(a_1,a_2,\dots_{a_{n+2}})=(-1,-1,2,-1,-1,2,-1,-1,2,\dots,-1,-1,-2,-1,-1),$$which works as $$-1\cdot -1 + 1 = 2$$and $$-1\cdot 2 + 1 = -1.$$
Proof that other $n$ fail. Note that $$a_ka_{k+1}a_{k+2}=(a_{k+2}-1)(a_{k+2})=a_{k+2}^2-a_{k+2}.$$It is also equal to $$a_k(a_{k+3}-1)=a_ka_{k+3}-a_k.$$Therefore, $$a_ka_{k+3}-a_k=a_{k+2}^2-a_{k+2}.$$Summing this for all $k=1,2,\dots,n$ (indices $\pmod n$), we know that $$\sum a_ka_{k+3}=\sum a_k^2,$$or $$\sum2a_ka_{k+3}=2\sum a_k^2.$$To finish the problem, we know that $$2\sum a_k^2=\sum(a_k^2+a_{k+3}^2),$$so $$\sum(a_k^2+a_{k+3}^2)-2\sum(a_ka_{k+3})=0.$$This implies that $$\sum (a_k-a_{k+3})^2 = 0,$$or $a_k = a_{k+3}$. The sequence now has a period of $3$, so $n\equiv 0\pmod 3$. If $n$ is not a multiple of $3$, all the terms would be equal. This is impossible as $$a_i^2+1=a_i$$does not have real roots.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SomeonesPenguin
123 posts
#105
Y by
This is way to easy for P2 but whatever.

Notice that \[a_ia_{i+1}a_{i+2}+a_{i+2}=a_{i+2}^2\]And \[a_ia_{i+1}a_{i+2}+a_i=a_{i+3}a_i\]This implies that \[a_{i+2}^2-a_{i+2}=a_ia_{i+3}-a_i\]Summing this over all $i$ gives \[\sum(a_{i+3}-a_i)^2=0\]So $a_i=a_{i+3}$ for all $i$. In particular, if $3\nmid n$ we get $a_1=a_2=\dots=a_n$ which can be easily checked to yield a contradiction. If $3\mid n$ we can pick \[a_k=\begin{cases}
    -1 & k\equiv 1,2\pmod 3\\
    2 & k\equiv 0 \pmod 3
\end{cases}\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
517 posts
#106
Y by
Note that $$a_ia_{i+1}a_{i+2}=a_{i+2}^2-a_{i+2}, \text{ and } a_ia_{i+1}a_{i+2} = a_i a_{i+3}-a_i \implies a_{i+2}^2-a_{i+2}=a_i a_{i+3}-a_i.$$Cyclically summing these gives $$2\sum a_i a_{i+3} = 2\sum a_i^2 = \sum (a_i^2+a_{i+3}^2) \implies \sum (a_i-a_{i+3})^2=0.$$Therefore, $a_i=a_{i+3}.$ Note that if $3 \not | n,$ then all the $a_i$ are equal which is impossible as $x^2-x+1=0$ has no real roots. However, if $3|n$ this works by considering the construction $a_{3k}=-1, a_{3k+1}=-1, a_{3k+2}=2.$ Hence, $n \equiv 0 \pmod 3$ are the only solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Novmath
8 posts
#107
Y by
Guys why are you posting your solutions ,which are basically the same as upper-ones.Very interesting problem!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Marcus_Zhang
958 posts
#108
Y by
Novmath wrote:
Guys why are you posting your solutions ,which are basically the same as upper-ones.Very interesting problem!

https://artofproblemsolving.com/community/c5h2145086_campp_posting_recs_by_mods states that:
V_Enhance wrote:
It is always permitted to post a full solution to any problem in its own thread (linked above), regardless of how old the problem is, and even if this solution is similar to one that has already been posted. We encourage this type of posting because it is helpful for the user to explain their solution in full to an audience, and for future users who want to see multiple approaches to a problem or even just the frequency distribution of common approaches.

Anyways...
This post has been edited 1 time. Last edited by Marcus_Zhang, Mar 26, 2025, 3:22 AM
Z K Y
N Quick Reply
G
H
=
a