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
Question 2
Valentin Vornicu   87
N 5 minutes ago by ItsBesi
Consider five points $ A$, $ B$, $ C$, $ D$ and $ E$ such that $ ABCD$ is a parallelogram and $ BCED$ is a cyclic quadrilateral. Let $ \ell$ be a line passing through $ A$. Suppose that $ \ell$ intersects the interior of the segment $ DC$ at $ F$ and intersects line $ BC$ at $ G$. Suppose also that $ EF = EG = EC$. Prove that $ \ell$ is the bisector of angle $ DAB$.

Author: Charles Leytem, Luxembourg
87 replies
Valentin Vornicu
Jul 25, 2007
ItsBesi
5 minutes ago
Number theory
spiderman0   1
N 10 minutes ago by MR.1
Find all n such that $3^n + 1$ is divisibly by $n^2$.
I want a solution that uses order or a solution like “let p be the least prime divisor of n”
1 reply
spiderman0
3 hours ago
MR.1
10 minutes ago
VERY HARD MATH PROBLEM!
slimshadyyy.3.60   16
N 16 minutes ago by slimshadyyy.3.60
Let a ≥b ≥c ≥0 be real numbers such that a^2 +b^2 +c^2 +abc = 4. Prove that
a+b+c+(√a−√c)^2 ≥3.
16 replies
slimshadyyy.3.60
Yesterday at 10:49 PM
slimshadyyy.3.60
16 minutes ago
Escape from the room
jannatiar   2
N 20 minutes ago by sami1618
Source: 2024 AlborzMO P3
A person is locked in a room with a password-protected computer. If they enter the correct password, the door opens and they are freed. However, the password changes every time it is entered incorrectly. The person knows that the password is always a 10-digit number, and they also know that the password change follows a fixed pattern. This means that if the current password is \( b \) and \( a \) is entered, the new password is \( c \), which is determined by \( b \) and \( a \) (naturally, the person does not know \( c \) or \( b \)). Prove that regardless of the characteristics of this computer, the prisoner can free themselves.

Proposed by Reza Tahernejad Karizi
2 replies
jannatiar
Mar 4, 2025
sami1618
20 minutes ago
No more topics!
IMO 2018 Problem 5
orthocentre   75
N Mar 26, 2025 by VideoCake
Source: IMO 2018
Let $a_1$, $a_2$, $\ldots$ be an infinite sequence of positive integers. Suppose that there is an integer $N > 1$ such that, for each $n \geq N$, the number
$$\frac{a_1}{a_2} + \frac{a_2}{a_3} + \cdots + \frac{a_{n-1}}{a_n} + \frac{a_n}{a_1}$$is an integer. Prove that there is a positive integer $M$ such that $a_m = a_{m+1}$ for all $m \geq M$.

Proposed by Bayarmagnai Gombodorj, Mongolia
75 replies
orthocentre
Jul 10, 2018
VideoCake
Mar 26, 2025
IMO 2018 Problem 5
G H J
Source: IMO 2018
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orthocentre
72 posts
#1 • 26 Y
Y by Durjoy1729, Moaaz, me9hanics, MazeaLarius, Amir Hossein, Davi-8191, naw.ngs, Medjl, adityaguharoy, anantmudgal09, pavel kozlov, khan.academy, centslordm, megarnie, Sprites, jasperE3, myh2910, mathmax12, NO_SQUARES, Adventure10, Mango247, aidan0626, torch, buddyram, deplasmanyollari, Supercali
Let $a_1$, $a_2$, $\ldots$ be an infinite sequence of positive integers. Suppose that there is an integer $N > 1$ such that, for each $n \geq N$, the number
$$\frac{a_1}{a_2} + \frac{a_2}{a_3} + \cdots + \frac{a_{n-1}}{a_n} + \frac{a_n}{a_1}$$is an integer. Prove that there is a positive integer $M$ such that $a_m = a_{m+1}$ for all $m \geq M$.

Proposed by Bayarmagnai Gombodorj, Mongolia
This post has been edited 3 times. Last edited by djmathman, Jun 16, 2020, 4:03 AM
Reason: problem author
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Itama
78 posts
#2 • 4 Y
Y by Kgxtixigct, Adventure10, Mango247, buddyram
I can sence the beauty of the IMO 2018 problems... :coolspeak:

Exelent Job!!! problem selection committee & team leaders!!

I would like to know whose problem is this?
This post has been edited 2 times. Last edited by Itama, Jul 10, 2018, 12:10 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathocean97
606 posts
#3 • 16 Y
Y by e_plus_pi, pieater314159, UK2019Project, Pluto1708, Siddharth03, myh2910, IcCircle, centslordm, megarnie, Nuterrow, mathmax12, Adventure10, Mango247, Zhaom, aidan0626, buddyram
Main claim: If $\frac{a}{x} + \frac{x}{b} - \frac{a}{b}$ is an integer, then $\gcd(a, b) | x.$

Proof: Compute the expression. It becomes $\frac{ab+x^2-ax}{bx}.$ Say a prime $p$ satisfies $p|a, p|b.$ Then $p|x^2$ so $p|x$. Divide it out and continue.

Now, I will show that as the sequence goes along, that both the numerator and denominator of the reduced fraction $\frac{a_n}{a_1}$ will decrease as $n$ increases past $n \ge N.$

Now, assume that $\frac{a}{x} + \frac{x}{b} - \frac{a}{b}$ is an integer and $\gcd(a, b) = 1.$ Then $x | ab$ so $x = a'b'$ where $a' | a, b' | b$. Now take $a = a_n, b = a_1, x = a_{n+1}.$ Then $\frac{a_{n+1}}{a_1} = \frac{x}{b} = \frac{a'}{(b/b')}.$ So both the numerator and denominator decreased! Therefore, the sequence $\frac{a_n}{a_1}$ will eventually converge, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6870 posts
#5 • 23 Y
Y by samoha, Davi-8191, brokendiamond, Mathlover1292, qweDota, rashah76, Abidabi, v4913, Sunnybest, centslordm, megarnie, HamstPan38825, myh2910, Assassino9931, mathmax12, Danielzh, Adventure10, Mango247, buddyram, Sneakyturtle, sky.mty, DEKT, Ali_Vafa
The condition implies that the difference $S(n) = \frac{a_{n+1}}{a_1} - \frac{a_n}{a_1} + \frac{a_n}{a_{n+1}}$ is an integer for all $n > N$. We proceed by $p$-adic valuation only henceforth.

Claim: If $p \nmid a_1$, then $\nu_p(a_{n+1}) \le \nu_p(a_n)$ for $n \ge N$.

Proof. The first two terms of $S(n)$ have nonnegative $\nu_p$, so we need $\nu_p(\frac{a_n}{a_{n+1}}) \ge 0$. $\blacksquare$

Claim: If $p \mid a_1$, then $\nu_p(a_n)$ is eventually constant.

Proof. By hypothesis $\nu_p(a_1) > 0$. We consider two cases.
  • First assume $\nu_p(a_k) \ge \nu_p(a_1)$ for some $k > N$. We claim that for any $n \ge k$ we have: \[ \nu_p(a_1) \le \nu_p(a_{n+1}) \le \nu_p(a_n). \]This is just by induction on $n$; from $\nu(\frac{a_n}{a_1}) \ge 0$, we have \[ \nu_p\left( \frac{a_{n+1}}{a_1} + \frac{a_n}{a_{n+1}} \right) \ge 0 \]which implies the displayed inequality (since otherwise exactly one term of $S(n)$ has nonnegative $\nu_p$). Thus once we reach this case, $\nu_p(a_n)$ is monotic but bounded below by $\nu_p(a_1)$, and so it is eventually constant.
  • Now assume $\nu_p(a_k) < \nu_p(a_1)$ for every $k > N$. Take any $n > N$ then. We have $\nu_p\left(\frac{a_{n+1}}{a_1}\right) < 0$, and also $\nu_p\left(\frac{a_n}{a_1}\right) < 0$, so among the three terms of $S(n)$, two must have equal $p$-adic valuation. We consider all three possibilities: \begin{align*} 			\nu_p\left(\frac{a_{n+1}}{a_1}\right) = \nu_p\left(\frac{a_n}{a_1}\right) 			&\implies \boxed{\nu_p(a_{n+1}) = \nu_p(a_{n})} \\ 			\nu_p\left(\frac{a_{n+1}}{a_1}\right) = \nu_p\left(\frac{a_n}{a_{n+1}}\right) 			&\implies \boxed{\nu_p(a_{n+1}) = \frac{\nu_p(a_n) + \nu_p(a_1)}{2}} \\ 			\nu_p\left(\frac{a_{n}}{a_1}\right) = \nu_p\left(\frac{a_n}{a_{n+1}}\right) 			&\implies \nu_p(a_{n+1}) = \nu_p(a_1),\text{ but this is impossible}. 		\end{align*}Thus, $\nu_p(a_{n+1}) \ge \nu_p(a_n)$ and $\nu_p(a_n)$ is bounded above by $\nu_p(a_1)$. So in this case we must also stabilize. \qedhere
$\blacksquare$

Since the latter claim is applied only to finitely many primes, after some time $\nu_p(a_n)$ is fixed for all $p \mid a_1$. Afterwards, the sequence satisfies $a_{n+1} \mid a_n$ for each $n$, and thus must be eventually constant.

Remark: This solution is almost completely $p$-adic, in the sense that I think a similar result if one replaces $a_n \in {\mathbb Z}$ by $a_n \in {\mathbb Z}_p$ for any particular prime $p$. In other words, the primes almost do not talk to each other.

There is one caveat: if $x_n$ is an integer sequence such that $\nu_p(x_n)$ is eventually constant for each prime then $x_n$ may not be constant. For example, take $x_n$ to be the $n$th prime! That's why in the first claim (applied to co-finitely many of the primes), we need the stronger non-decreasing condition, rather than just eventually constant.
This post has been edited 6 times. Last edited by v_Enhance, Aug 21, 2018, 2:47 AM
Reason: colorize
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
knm2608
468 posts
#6 • 3 Y
Y by adityaguharoy, Adventure10, buddyram
Written a bit hastily, so let me know if there is any flaw.

We have that
$$\frac{a_n}{a_{n+1}}+\frac{a_{n+1}-a_n}{a_1} \in \mathbb{Z} \;\;\; \forall n \geq N \;\;\;\;\;\; (1)$$Now let $m>n$ be an integer and
$$A=\frac{a_1}{a_2} + \frac{a_2}{a_3} + \ldots + \frac{a_{n-1}}{a_n}, \;\;\;\; B=\frac{a_n}{a_{n+1}}+\ldots +\frac{a_{m-1}}{a_m}$$Then
$$B+\frac{a_m}{a_1}-\frac{a_n}{a_1}\in \mathbb{Z} \;\;\;\;(2)$$Taking $(1)$ from $n$ to $m$ combined with $(2)$ gives
$$\frac{a_m}{a_1} \in \mathbb{Z} \; \Rightarrow \frac{a_m}{a_{m+1}}\in \mathbb{Z} \;\;\; \forall m > n$$So $a_{n+1}=ka_1,k\in \mathbb{Z}$. But
$$\frac{a_n}{a_1}\left(1-\frac{1}{k} \right)  \in \mathbb{Z}$$So either $k=1$ which implies $a_{n+1}=a_1 \Rightarrow a_m=a_{m+1} \;\; \forall m\geq n+1$ or $a_1|a_n \Rightarrow a_{n+1}|a_n \;\; \forall n$. In either case we're done.

Edit: It is wrong. Thanks below.
This post has been edited 1 time. Last edited by knm2608, Jul 11, 2018, 12:25 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Kurt Gödel
615 posts
#7 • 4 Y
Y by Doraeminion, Adventure10, Mango247, buddyram
knm2608 wrote:
Taking $(1)$ from $n$ to $m$ combined with $(2)$ gives $\frac{a_m}{a_1} \in \mathbb{Z}$

How? I think (2) is just a repeated application of (1), so it seems like the most you will get out of this is a tautology.

Great problem though!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
WizardMath
2487 posts
#9 • 5 Y
Y by rashah76, Adventure10, Mango247, bhan2025, buddyram
Since the sequence is an integer sequence, the differences of consecutive terms must also be integers. So we have $$\frac{a_{n+1}^2-a_n a_{n+1} +  a_n a_1}{a_1 a_{n+1}} \in \mathbb{Z}$$Subtracting 1, we have $a_1 a_{n+1} | (a_{n+1} - a_1) (a_{n+1} - a_n)$. Now consider any prime $p$ that divides $a_1, a_{n}$. Then we have, by dividing both sides by $p$, that $p| a_{n+1}$. Now divide all of $a_1, a_n, a_{n+1}$ by $p$, and then notice that we can still argue further like this. So $\min ( \nu_p (a_1), \nu_p (a_{n}) ) \le \nu_p(a_{n+1}) $. Since we have $a_1 a_{n+1} | (a_{n+1} - a_1) (a_{n+1} - a_n)$, we see that $a_{n+1} | a_1 a_n$.
Note that if $\gcd (a_1, a_{n+1}) = \alpha_{n+1},$ then $a_{n+1} / \alpha_{n+1}$ is an integer, and it divides $a_n$, so the resulting conjugate factor is $k$ (say). Then $\frac{a_{n+1}}{a_1} = \frac{a_n/k}{a_{1}/\alpha_{n+1}}$, so the moduli of numerator and denominator are non-increasing. This leads us to $a_m = a_{m+1}$ from some $m$ onwards, since no positive integer sequence can strictly decrease forever.
This post has been edited 2 times. Last edited by WizardMath, Jul 10, 2018, 2:54 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Loppukilpailija
155 posts
#11 • 4 Y
Y by amar_04, Adventure10, Mango247, buddyram
Here's a solution I wrote during the competition. Quite similar to the one written by v_Enhance, but the execution is maybe a little bit bloodier.


Solution:

Proof by contradiction. For the rest of the solution we assume that the sequence $a_n$ isn't constant starting from any point. In the end we will achieve a contradiction, thus proving the statement.

The difference

$$ \frac{a_{n+1}}{a_1} + \frac{a_n}{a_{n+1}} - \frac{a_n}{a_1} = \frac{a_{n+1}^2 - a_{n+1}a_n + a_na_1}{a_1a_{n+1}} $$
is an integer for all $n \ge N$.

Lemma 1.

There is a prime $p$ such that $v_p(a_{n+1}) \neq v_p(a_n)$ for infinitely many $n \ge N$.

Proof.

The integer-ness condition above implies that $a_{n+1} \mid a_na_1$. This means that for all $p \mid a_n$, $p$ prime and $n \ge N$, we have either $p \mid a_N$ or $p \mid a_1$ (assume not, and take the smallest $i > N$ for which $p \mid a_i$). Thus, there are only finitely many $p$ such that $p \mid a_n$ for some $n \ge N$. Now, for the statement of the lemma, assume not: now, if we take any prime $p$ which doesn't divide any of the numbers $a_1, a_N, a_{N+1}, a_{N+2}, \ldots $, then we of course have $v_p(a_{n+1}) = v_p(a_n)$ for all $n \ge N$. For the rest of the primes, which we have finitely many, we must have $v_p(a_{n+1}) = v_p(a_n)$ for all large enough $n$. But this means that the sequence $a_n$ is constant, which is a contradiction. Thus, the statement of the lemma is true.

Now, take any prime $p$ satisfying the condition of lemma 1. Define $v_p(a_n) = b_n$ for all $n$. We aren't that interested in the cases where $b_{n+1} = b_n$, but luckily we have infinitely many interesting cases.

Lemma 2. If $b_{n+1} > b_n$, we have $b_{n+1} = b_1$.

Proof: we divide into two cases, one where $b_{n+1} > b_1$, and one where $b_{n+1} < b_1$. We prove that both of these cases lead into a contradiction, which proves the lemma.

If $b_{n+1} > b_1$, then $v_p(a_{n+1}^2 - a_na_{n+1} + a_na_1) = v_p(a_na_1) = b_n + b_1 < b_{n+1} + b_1 = v_p(a_{n+1}a_1)$, contradicting the fact that $a_{n+1}a_1$ divides $a_{n+1}^2 - a_na_{n+1} + a_na_1$.
In a similar manner we see that if $b_{n+1} < b_1$, then the $v_p$ of the denominator is $b_n + b_{n+1}$, which is less than $b_{n+1} + b_1$, since $b_1 > b_{n+1} > b_n$. Thus, we must have $b_{n+1} = b_1$.

Lemma 3.
If $b_{n+1} < b_n$, then we have $b_1 \ge b_{n+1}$.

Proof. Again, a proof by contradiction. Now, the $v_p$ of the denominator is $2b_{n+1}$, which is less than $b_1 + b_{n+1}$.

Now, we have our setup ready. We only need the following crucial lemma, and then we are basically done:

Lemma 4. There exists an $n \ge N$ such that $b_n = b_1$.

Proof. Surprise, a proof by contradiction. Now, if $b_{n+1} > b_n$ for some $n$, then $b_{n+1} = b_1$ due to lemma 2. This can't happen, so $b_{n+1} \le b_n$ for all $n$. So $b_n$ is a decreasing sequence, which is a contradiction with the fact that $b_{n+1} \neq b_n$ for infinitely many $n$, and that $b_n \ge 0$ for all $n$.

Now, take such $n$ that $b_n = b_1$. If $b_{n+1} = b_n$, just increment $n$ by $1$ as long as we have $b_{n+1} \neq b_n = b_1$. This gives a contradiction:

if $b_{n+1} > b_n$, then due to lemma 2 we have $b_1 = b_{n+1} > b_n = b_1$, a contradiction.

if $b_{n+1} < b_n$, then due to lemma 3 we have $b_1 \le b_{n+1} < b_n = b_1$, a contradiction.

Thus, the original assumption of the statement being false gave a contradiction. The sequence $a_m$ is therefore constant starting from some point.

Motivation:


The divisibility condition given is very nice for investigating the $p$-adic valuations, as there are no constant terms. Then, you just bash the cases a little bit to use the well-known lemma $v_p(a \pm b) = \min(v_p(a), v_p(b))$ for $v_p(a) \neq v_p(b)$. I was hoping for a direct contradiction in either one of the cases $b_{n+1} > b_n$ or $b_{n+1} < b_n$, but I wasn't able do get this, so I just picked up all the nice information I got from the case-work there. When you really look at lemmas 2 and 3, it's not too difficult to come up with the rest of the solution. Lemma 1 is only needed to describe the prime we pick for our "$v_p$-bash".
This post has been edited 2 times. Last edited by Loppukilpailija, Jul 17, 2018, 4:05 PM
Reason: Add motivation.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
62861
3564 posts
#12 • 12 Y
Y by Loppukilpailija, nmd27082001, pavel kozlov, Reef334, XbenX, edfearay123, centslordm, leozitz, Wizard0001, Adventure10, Mango247, buddyram
The difference $\frac{a_{n+1}}{a_1} - \frac{a_n}{a_1} + \frac{a_n}{a_{n+1}}$ is also an integer for $n \ge N$.
Hence
\[a_1 a_{n+1} \mid a_{n+1}^2 - a_n a_{n+1} + a_1 a_n \equiv (a_{n+1} - a_1)(a_{n+1} - a_n).\]
Lemma. If $a$, $x$, $y$ are positive integers with $ay \mid (y - a)(y - x)$ and $p$ is a prime, then
\[\min\big(\nu_p(a), \nu_p(x)\big) \le \nu_p(y) \le \max\big(\nu_p(a), \nu_p(x)\big).\]This can be easily proved by examining the possibilities $\nu_p(y) < \min\big(\nu_p(a), \nu_p(x)\big)$ and $\nu_p(y) > \max\big(\nu_p(a), \nu_p(x)\big)$; both lead to $\nu_p$ contradictions in the divisibility.

Corollary 1. $\gcd(a_1, a_n) \mid a_{n+1} \mid \mathrm{lcm}(a_1, a_n)$ for $n \ge N$.

Corollary 2. $\gcd(a_1, a_n) \mid \gcd(a_1, a_{n+1})$ and $\mathrm{lcm}(a_1, a_{n+1}) \mid \mathrm{lcm}(a_1, a_n)$ for $n \ge N$.

Hence $\{\gcd(a_1, a_n)\}_{n \ge N}$ and $\{\mathrm{lcm}(a_1, a_n)\}_{n \ge N}$ are increasing and decreasing sequences (respectively) bounded by $a_1$. Thus they are eventually constant; say $\gcd(a_1, a_m) = u$ and $\mathrm{lcm}(a_1, a_m) = v$ for $m \ge M$. Then
\[a_m = \frac{\gcd(a_1, a_m) \cdot \mathrm{lcm}(a_1, a_m)}{a_1} = \frac{uv}{a_1}\]for all $m \ge M$, as desired.
This post has been edited 1 time. Last edited by 62861, Jul 10, 2018, 5:45 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yugrey
2326 posts
#13 • 3 Y
Y by Adventure10, Mango247, buddyram
v_Enhance wrote:
The condition implies that the difference \[ \frac{a_{n+1}}{a_1} - \frac{a_n}{a_1} + \frac{a_n}{a_{n+1}} \]is an integer for all $n > N$.

We proceed by $p$-adic valuation only henceforth.

Claim: If $p \nmid a_1$, then $\nu_p(a_{n+1}) \le \nu_p(a_n)$ for $n \ge N$.

Proof. The third term in the difference must have nonnegative $\nu_p$. $\blacksquare$



Claim: If $p \mid a_1$, then $\nu_p(a_n)$ is eventually constant.

Proof. By hypothesis $\nu_p(a_1) > 0$. We consider two cases,
  • First assume $\nu_p(a_k) \ge \nu_p(a_1)$ for some $k > N$. We claim that for any $n \ge k$ (by induction) we have: \[ \nu_p(a_1) \le \nu_p(a_{n+1}) \le \nu_p(a_n). \]Note in this case that $\nu(\frac{a_n}{a_1}) \ge 0$, so we must have \[ \nu_p\left( \frac{a_{n+1}}{a_1} + \frac{a_n}{a_{n+1}} \right) \ge 0 \]which implies the displayed inequality (since otherwise exactly one of the summands has nonnegative $\nu_p$). Thus once we reach this case, $\nu_p(a_n)$ is monotic but bounded below by $\nu_p(a_1)$, and so it is eventually constant.
  • Now assume $\nu_p(a_k) < \nu_p(a_1)$ for every $k > N$. Take any $n > N$ then. We have $\nu_p\left(\frac{a_{n+1}}{a_1}\right) < 0$, and also $\nu_p\left(\frac{a_n}{a_1}\right) < 0$, so among the three summands two must have equal $p$-adic valuation. We consider all three possibilities: \begin{align*} 			\nu_p\left(\frac{a_{n+1}}{a_1}\right) = \nu_p\left(\frac{a_n}{a_1}\right) 			&\implies \boxed{\nu_p(a_{n+1}) = \nu_p(a_{n})} \\ 			\nu_p\left(\frac{a_{n+1}}{a_1}\right) = \nu_p\left(\frac{a_n}{a_{n+1}}\right) 			&\implies \boxed{\nu_p(a_{n+1}) = \frac{\nu_p(a_n) + \nu_p(a_1)}{2}} \\ 			\nu_p\left(\frac{a_{n}}{a_1}\right) = \nu_p\left(\frac{a_n}{a_{n+1}}\right) 			&\implies \nu_p(a_{n+1}) = \nu_p(a_1),\text{ but this is impossible}. 		\end{align*}Thus, eventually $\nu_p(a_{n+1}) \ge \nu_p(a_n)$ in either possible situation, but $\nu_p(a_n)$ is bounded above by $\nu_p(a_1) - 1$, so in this case we must also stabilize. \qedhere
$\blacksquare$

Since the latter claim is applied only to finitely many primes, after some time $\nu_p(a_n)$ is fixed for all $p \nmid a_n$. Afterwards, the sequence satisfies $a_{n+1} \mid a_n$ for each $n$, and thus must be eventually constant.

Remark: This solution is almost completely $p$-adic, in the sense that I think a similar result if one replaces $a_n \in {\mathbb Z}$ by $a_n \in {\mathbb Z}_p$ for any particular prime $p$. In other words, the primes almost do not talk to each other.

There is one caveat: if $x_n$ is an integer sequence such that $\nu_p(x_n)$ is eventually constant for each prime then $x_n$ may not be constant. For example, take $x_n$ to be the $n$th prime! That's why in the first claim (applied to co-finitely many of the primes), we need the stronger non-decreasing condition, rather than just eventually constant.

This is basically my solution. This "caveat" at the end is easy to get around if you notice that since $\frac{a_{n+1}^2-a_na_{n+1}+a_na_1}{a_1a_{n+1}}$ is an integer, $a_{n+1} \mid a_na_1$, so eventually $\frac{a_n}{(a_n,a_1)}$ converges to a constant. Then you basically do this analysis only on primes that divide $a_1$, of which there are finitely many. I think this is the more intuitive way to deal with it. :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
suli
1498 posts
#14 • 3 Y
Y by Adventure10, Mango247, buddyram
For any prime $p$, $v_p (a_{n+1})$ is between $v_p (a_n)$ and $v_p (a_1)$. That's it. Was expecting more from an IMO P5 :(

Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
JuanOrtiz
366 posts
#15 • 2 Y
Y by Adventure10, Mango247
Let $x=a_1$. Throughout the problem, $n$ will denote an arbitrary number $\ge N$. Notice
\[ \frac{a_{n}}{a_{n+1}} + \frac{a_{n+1}-a_n}{x} = \left( \frac{a_1}{a_2}+\cdots + \frac{a_n}{a_{n+1}} + \frac{a_{n+1}}{x} \right) -\left( \frac{a_1}{a_2}+\cdots + \frac{a_n}{x}  \right)  \]is an integer. Thus $a_{n+1}=\frac{a_nx}{\ell_n}$ for some positive integer $\ell_n$ such that $x| \ell_n+a_{n+1}-a_n$. Thus, for any prime $p\nmid x$, we have $v_p(a_n)$ is decreasing, and so eventually becomes constant. There's finitely many primes that divide $a_N$, and so there's some $M\ge N$ such that for any $p\nmid x$, the quantity $v_p(a_n)$ is fixed after $n\ge M$, and the $\ell_n$'s are only divisible by primes in $P:=\{ p | x\}$, i.e. primes that divide $x$. From now on, $n$ will denote an arbitrary number $\ge M$.

Let $p\in P$ and set $b:= v_p(x)$, $b_n := v_p(a_n)$. Assume for some $n$, $b_{n+1}> b_n$, so that $b > v_p(\ell_n)$. Notice $v_p(a_{n+1}-a_n) = b_n$ but $b\le v_p(\ell_n+a_{n+1}-a_n)$, and so $b_n=v_p(\ell_n) < b$. Thus $b_{n+1}=b$ and so $p^b | \ell_{n+1} + a_{n+2}$. But $v_p(\ell_{n+1}) + v_p(a_{n+2}) = 2b$ and so both must be $b$, thus $b_{n+2}=b$ and thus the sequence $\{b_i\}$ is eventually constant. Otherwise, the sequence is never increasing, but it can never be negative, so it's also eventually constant.

Since $P$ is finite, and all these sequences are constant, we get the $P$-part of the $\{a_n\}$ sequence is eventually constant. But the first paragraph proves the non-$P$ part is also eventually constant. Thus, the sequence itself is eventually constant as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Taha1381
816 posts
#16 • 2 Y
Y by Adventure10, buddyram
The proof is quite straight for a problem $5$.

Lemma:There are finite primes dividing one or more elements of the sequence.

Proof:Assume for country then there exists a prime $p$ so that $p$ divides $a_{t+1}$ for some large $t$ but not the previous elements of the subset.Since
$\frac{a_{t+1}}{a_1} - \frac{a_t}{a_1} + \frac{a_t}{a_{t+1}}$ has to be an integer this is impossible.

Let $\mathbb{P}$ denote the set of primes dividing at least one element of the sequence and take $p \in \mathbb{P}$.We divide the problem into two cases.

First case:$v_p(a_n) <v_p(a_1)$ holds for all integer $n \ge N$:Since $\frac{a_{n+1}}{a_1} - \frac{a_n}{a_1} + \frac{a_n}{a_{n+1}}$ has to be an integer using nothing more than $p$-adic calculations one can show $v_p(a_N) \le v_p(a_{N+!} \le \dots$ because the sequence of $v_p(a_i)$ has an upper bound it has to be constant after somewhere.

Second case :There exist $\ell \ge N$ so that $v_p(a_{\ell }) \ge v_p(a_1)$.By induction and some $p$-adic calculations one can prove $v_p(a_{\ell }) \ge v_p(a_{\ell +1}) \ge \dots $ and all this values are bigger than or equal to $v_p(a_1)$ so by FMID it has to be constant after somewhere.

So there exist an $M$ so that powers of all primes in $\mathbb{P}$ is constant in $a_M,a_{M+1},\dots $ since they are the only primes dividing one or more element of the sequence hence all these numbers have to be equal.

Is this solution true?If so then why is this a problem $5$(I came up with it within 30 minutes in the mock imo we had in Iran while I spend some hours or days to solve some other problems 5's).

Remark:I noticed this is a way to deal with the issue evan remarked in his answer to show the wrong appropach..
This post has been edited 3 times. Last edited by Taha1381, Jul 11, 2018, 1:04 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
reality95
12 posts
#17 • 4 Y
Y by rmtf1111, Adventure10, Mango247, buddyram
More or less the same idea as above.
Suppose that $n \ge N$ and $a_1 = c$ then we get that $$ca_{n + 1} | a_{n+1}^2 + a_nc - a_na_{n+1}$$
We must have for every prime $p$ $v_p(c) + v_p(a_{n + 1}) \le v_p(a_{n+1}^2 + a_nc - a_na_{n+1})$.

$\textbf{Lemma 1.}$ $v_p(a_{n + 1}) \le \max(v_p(c),v_p(a_n))$

Proof: Suppose the contrary, then $v_p(c) + v_p(a_n) < v_p(a_n) + v_p(a_{n + 1}) < 2v_p(a_{n + 1})$ so $v_p(c) + v_p(a_{n + 1}) \le v_p(c) + v_p(a_n)$ or $v_p(a_{n + 1}) \le v_p(a_n)$, contradiction.

$\textbf{Lemma 2.}$ If $v_p(a_{n + 1}) < v_p(a_n)$ then $v_p(a_{n + 1}) \ge v_p(c)$

Proof: Suppose $v_p(a_{n + 1}) < v_p(c) \le v_p(a_n)$ then $2v_p(a_{n + 1}) < v_p(a_{n + 1}) + v_p(a_n) < v_p(c) + v_p(a_n)$ so $v_p(c) + v_p(a_n) \le 2v_p(a_{n + 1})$, contradiction.

By lemma $1$ it's also possible to prove that there are finite number of prime $p$ such that $p$ divides at least one $a_n$.

Now consider the following cases:

$\textbf{Case 1.}$ $v_p(a_N) < v_p(c)$.

We must have that $v_p(a_n) \le v_p(c)$ from lemma $1$ and induction.

Suppose there exists $n$ with $v_p(a_{n + 1}) < v_p(a_n)$, then $v_p(a_n) > v_p(a_{n + 1}) \ge v_p(c)$, contradiction.

Therefore, sequence $b_{n} = v_p(a_{n + N})$ is upper bounded and increasing, so it converges.

$\textbf{Case 2.}$ $v_p(a_N) \ge v_p(c)$, then one can prove by induction with lemma $2$ that $v_p(a_n) \ge v_p(c)$.

Suppose there exist $n$ with $v_p(a_{n + 1}) > v_p(a_n)$, then $v_p(a_n) \ge \max(v_p(c),v_p(a_n)) > v_p(a_{n + 1}) > v_p(a_n)$, contradiction.

Therefore, sequence $c_{n}  = v_p(a_{n + N})$ is lower bounded and decreasing, so it converges.

There are finite prime numbers $p$ so the conclusion follows.
This post has been edited 3 times. Last edited by reality95, Jul 11, 2018, 8:29 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orthocentre
72 posts
#18 • 2 Y
Y by Adventure10, buddyram
What is $p$-adic valuation?
This post has been edited 1 time. Last edited by orthocentre, Apr 7, 2019, 9:49 PM
Z K Y
G
H
=
a