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
The Tetrahedral Space Partition
jannatiar   3
N 6 minutes ago by jannatiar
Source: 2025 AlborzMO Day 2 P3
Is it possible to partition three-dimensional space into tetrahedra (not necessarily regular) such that there exists a plane that intersects the edges of each tetrahedron at exactly 4 or 0 points?

Proposed by Arvin Taheri
3 replies
1 viewing
jannatiar
Mar 9, 2025
jannatiar
6 minutes ago
perpendicularity wanted, intersections of tangents with perp. bisectors related
parmenides51   7
N 8 minutes ago by ErTeeEs06
Source: BMO Shortlist 2018 G2
Let $ABC$ be a triangle inscribed in circle $\Gamma$ with center $O$. Let $H$ be the orthocenter of triangle $ABC$ and let $K$ be the midpoint of $OH$. Tangent of $\Gamma$ at $B$ intersects the perpendicular bisector of $AC$ at $L$. Tangent of $\Gamma$ at $C$ intersects the perpendicular bisector of $AB$ at $M$. Prove that $AK$ and $LM$ are perpendicular.

by Michael Sarantis, Greece
7 replies
parmenides51
May 5, 2019
ErTeeEs06
8 minutes ago
Three Nagel points collinear
jayme   0
17 minutes ago
Dear Marthlinkers,

1. ABCD a square
2. M a point on the segment CD sothat MA < MB
3. Nm, Na, Nb the Nagel’s points of the triangles MAD, ADM, BCM.

Prove : Nm, Na and Nb are collinear.

Sincerely
Jean-Louis
0 replies
+2 w
jayme
17 minutes ago
0 replies
Sequence and prime factors
USJL   1
N 22 minutes ago by Know1Math
Source: 2025 Taiwan TST Round 2 Independent Study 1-N
Let $a_0,a_1,\ldots$ be a sequence of positive integers with $a_0=1$, $a_1=2$ and
\[a_n = a_{n-1}^{a_{n-1}a_{n-2}}-1\]for all $n\geq 2$. Show that if $p$ is a prime less than $2^k$ for some positive integer $k$, then there exists $n\leq k+1$ such that $p\mid a_n$.
1 reply
+1 w
USJL
Mar 26, 2025
Know1Math
22 minutes ago
Deriving Van der Waerden Theorem
Didier2   1
N 27 minutes ago by Didier2
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?
1 reply
Didier2
Saturday at 5:18 PM
Didier2
27 minutes ago
NT Functional with factorial and exponent
plagueis   16
N an hour ago by Jupiterballs
Source: Mexican Quarantine Mathematical Olympiad P5
Let $\mathbb{N} = \{1, 2, 3, \dots \}$ be the set of positive integers. Find all functions $f:\mathbb{N}\rightarrow \mathbb{N}$, such that for all positive integers $n$ and prime numbers $p$:
$$p \mid f(n)f(p-1)!+n^{f(p)}.$$
Proposed by Dorlir Ahmeti
16 replies
plagueis
Apr 26, 2020
Jupiterballs
an hour ago
gcd (a^n+b,b^n+a) is constant
EthanWYX2009   78
N an hour ago by dstanz5
Source: 2024 IMO P2
Determine all pairs $(a,b)$ of positive integers for which there exist positive integers $g$ and $N$ such that
$$\gcd (a^n+b,b^n+a)=g$$holds for all integers $n\geqslant N.$ (Note that $\gcd(x, y)$ denotes the greatest common divisor of integers $x$ and $y.$)

Proposed by Valentio Iverson, Indonesia
78 replies
EthanWYX2009
Jul 16, 2024
dstanz5
an hour ago
Functional equation with strict decrease
ehuseyinyigit   1
N an hour ago by pco
Source: Antalya olympiad
Let $f: \mathbb{R^+} \to \mathbb{R}$ be a strictly decreasing function$,$ then for all $x \in \mathbb{R^+}$ $,$

$f(x) \cdot f\left( f(x) + \dfrac{3}{2x} \right) = \dfrac{1}{4}$

holds. Determine $,\ f(9)=?$

$\textbf{a)}\ \dfrac{1}{12}  \qquad\textbf{b)}\ \dfrac23  \qquad\textbf{c)}\ \dfrac16  \qquad\textbf{d)}\ \dfrac13  \qquad\textbf{e)}\ \dfrac14$
1 reply
ehuseyinyigit
2 hours ago
pco
an hour ago
orz otl fr
Hip1zzzil   8
N an hour ago by jerrome2685
Source: FKMO 2025 P3
An acute triangle $\bigtriangleup ABC$ is given which $BC>CA>AB$.
$I$ is the interior and the incircle of $\bigtriangleup ABC$ meets $BC, CA, AB$ at $D,E,F$. $AD$ and $BE$ meet at $P$. Let $l_{1}$ be a tangent from D to the circumcircle of $\bigtriangleup DIP$, and define $l_{2}$ and $l_{3}$ on $E$ and $F$, respectively.
Prove $l_{1},l_{2},l_{3}$ meet at one point.
8 replies
Hip1zzzil
Saturday at 10:23 AM
jerrome2685
an hour ago
conditional sequence
MithsApprentice   15
N 2 hours ago by quantam13
Source: USAMO 1995
Suppose $\, q_{0}, \, q_{1}, \, q_{2}, \ldots \; \,$ is an infinite sequence of integers satisfying the following two conditions:

(i) $\, m-n \,$ divides $\, q_{m}-q_{n}\,$ for $\, m > n \geq 0,$
(ii) there is a polynomial $\, P \,$ such that $\, |q_{n}| < P(n) \,$ for all $\, n$

Prove that there is a polynomial $\, Q \,$ such that $\, q_{n}= Q(n) \,$ for all $\, n$.
15 replies
MithsApprentice
Oct 23, 2005
quantam13
2 hours ago
f(n) - n is periodic
62861   24
N 2 hours ago by quantam13
Source: IMO 2015 Shortlist, N6
Let $\mathbb{Z}_{>0}$ denote the set of positive integers. Consider a function $f: \mathbb{Z}_{>0} \to \mathbb{Z}_{>0}$. For any $m, n \in \mathbb{Z}_{>0}$ we write $f^n(m) = \underbrace{f(f(\ldots f}_{n}(m)\ldots))$. Suppose that $f$ has the following two properties:

(i) if $m, n \in \mathbb{Z}_{>0}$, then $\frac{f^n(m) - m}{n} \in \mathbb{Z}_{>0}$;
(ii) The set $\mathbb{Z}_{>0} \setminus \{f(n) \mid n\in \mathbb{Z}_{>0}\}$ is finite.

Prove that the sequence $f(1) - 1, f(2) - 2, f(3) - 3, \ldots$ is periodic.

Proposed by Ang Jie Jun, Singapore
24 replies
62861
Jul 7, 2016
quantam13
2 hours ago
Triangle form by perpendicular bisector
psi241   49
N 3 hours ago by cursed_tangent1434
Source: IMO Shortlist 2018 G5
Let $ABC$ be a triangle with circumcircle $\Omega$ and incentre $I$. A line $\ell$ intersects the lines $AI$, $BI$, and $CI$ at points $D$, $E$, and $F$, respectively, distinct from the points $A$, $B$, $C$, and $I$. The perpendicular bisectors $x$, $y$, and $z$ of the segments $AD$, $BE$, and $CF$, respectively determine a triangle $\Theta$. Show that the circumcircle of the triangle $\Theta$ is tangent to $\Omega$.
49 replies
psi241
Jul 17, 2019
cursed_tangent1434
3 hours ago
Very interesting inequalities
sqing   1
N 3 hours ago by sqing
Let $ a,b,c> 0 $ and $a+b+c=3. $ Prove that
$$   \frac{15}{a^2+b^2+c^2+abc}+\frac{1}{abc}  \geq\frac{128}{27}$$$$   \frac{14}{a^2+b^2+c^2+abc}+\frac{1}{abc}  \geq\frac{9}{2}$$
1 reply
sqing
3 hours ago
sqing
3 hours ago
inequalities
Cobedangiu   0
3 hours ago
problem
0 replies
Cobedangiu
3 hours ago
0 replies
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