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
NT Functional with factorial and exponent
plagueis   16
N 15 minutes 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
15 minutes ago
gcd (a^n+b,b^n+a) is constant
EthanWYX2009   78
N 19 minutes 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
19 minutes 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
an hour 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
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.
ChetanPosani
41 posts
#72 • 1 Y
Y by buddyram
nice problem
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
792 posts
#73 • 1 Y
Y by buddyram
Denote the given sum as $S_n$. For $n \ge N$, we are given that
\[S_{n+1}-S_n = \frac{a_{n+1}-a_n}{a_1}+\frac{a_n}{a_{n+1}}\]
is an integer. Consider the following cases for $v_p(a_n)$ and $v_p(a_{n+1})$, where $p$ is an arbitrary prime:
  • $v_p(a_n) > v_p(a_{n+1}): \quad$ We get $v_p\left(\frac{a_n}{a_{n+1}}\right) > 0$, so we just need
    \[v_p\left(\frac{a_{n+1}-a_n}{a_1}\right) \ge 0 \implies v_p(a_{n+1}) \ge v_p(a_1).\]
  • $v_p(a_n) < v_p(a_{n+1}): \quad$ Since $v_p\left(\frac{a_n}{a_{n+1}}\right) < 0$, we must have
    \[
v_p\left(\frac{a_n}{a_{n+1}}\right) = v_p\left(\frac{a_{n+1}-a_n}{a_1}\right) \implies v_p(a_{n+1}) = v_p(a_1).\]
  • $v_p(a_n) = v_p(a_{n+1}): \quad$ No definite outcome.

Thus the behavior of our sequence $v_p(a_{N+1}), v_p(a_{N+2}), v_p(a_{N+3}), \ldots$ can be modeled as follows:
  • This sequence begins greater than or equal to $v_p(a_1)$ and is weakly decreasing, but is bounded by $v_p(a_1)$.
  • This sequence begins less than $v_p(a_1)$ and will remain constant until, at some point, it leaps to $v_p(a_1)$, where it forever remains fixed.

As $a_1$ has finitely many prime factors, and our sequence is monotonic and eventually remains constant for all $p$, we get the desired conclusion. $\blacksquare$
This post has been edited 1 time. Last edited by shendrew7, Dec 20, 2023, 5:32 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lelouchvigeo
174 posts
#74 • 1 Y
Y by buddyram
We have $ a_1a_{N+1}$ $\mid$ $ a_{N+1} ( a_{N+1} - a_N) + $$ a_{1}a_N$
Claim : $v_p(a_{N+1}) \leq v_p(a_N)$
FTSOC, lets assume $v_p(a_{N+1}) > v_p(a_N)$
Therefore $ v_p(a_1) + v_p(a_{N+1}) \leq$ $Min[ v_p(a_{N+1}) +v_p(a_N) , v_p(a_1) + v_p(a_N)]   $
Since $v_p(a_1) + v_p(a_N)$ is always less than $v_p(a_1) + v_p(a_{N+1})$. We get our contradiction.
Now it is easy to see we will get a constant sequence after some time
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
#75 • 1 Y
Y by buddyram
Note that $\frac{a_{n+1}-a_n}{a_1}+ \frac{a_n}{a_{n+1}}$ must be an integer for all $n > N$.

Claim: $\nu_p(a_i)$ is eventually constant and bounded by $\nu_p(a_1)$.

We will do casework.
Case 1: $\nu_p(a_n) < \nu_p(a_{n+1})$
We get that $\nu_p\left(\frac{a_{n+1}-a_n}{a_1}\right) = \nu_p\left(\frac{a_n}{a_{n+1}}\right)$ so $\nu_p(a_{n+1}) = \nu_p(a_1)$.

Case 2: $\nu_p(a_n) > \nu_p(a_{n+1})$
We get that $\nu_p\left(\frac{a_{n+1}-a_n}{a_1}\right) \ge 0$ so $\nu_p(a_{n+1}) \ge \nu_p(a_1)$.

From these two cases we can conclude the claim. Now we are done since the claim implies the sequence is eventually constant.
This post has been edited 1 time. Last edited by dkedu, Jan 27, 2024, 9:43 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Martin.s
1533 posts
#76 • 1 Y
Y by buddyram
First of all, it \(n=2\) is not possible since we must have \(a_{2^m} + 2a_{2^{m+1}} = 0\) for each \(m\) which inductively gives \(a_1 = (-2)^ma_{2^m},\) which means that \(2^m|a_1\) for every \(m\) — this is impossible since \(a_1\) must be non-zero.

We will show that it applies to each \(n \geq 3.\) It is enough for each \(n\) to find a function \(f_n : \mathbb{N} \to \mathbb{N},\) which from now on I will denote with \(f,\) with the properties
(a) \(f(rs) = f(r)f(s)\) for each \(r,s \in \mathbb{N}\)
(b) \(f(1) + 2f(2) + \cdots + nf(n) = 0\).

Indeed, if \(f\) satisfies (a) and (b), then setting \(a_m = f(m)\) for each \(m\), we have \(\displaystyle{a_k + 2a_{2k} + \cdots + na_{nk} = f(k) + 2f(2k) + \cdots + nf(nk) = f(k)(1 + 2f(2) + \cdots +nf(n)) = 0.}\)

We can therefore consider \(n \geq 3.\)

We know from Bertrand's theorem that for every \(n \geq 2,\) there exists a prime \(p\) with \(n/2 < p \leq n.\) Let \(p\) be the greatest prime less than or equal to \(q\) and \(n,\) where \(q\) is the largest prime that is less than \(n.\) Then we have \(n/4 < q < p \leq n.\)

If \(f(m) = a^{m_p}b^{m_q},\) posit where \(m_p, m_q\) are their powers in the prime factorization, and \(a, b\) are nonzero integers which will be determined later. We see that (a) is satisfied, and it is enough to choose them appropriately \(a, b\) so that (b) is also satisfied.

Case 1: \(q > n/2.\) Then we want \(n-2 + pf(p) + qf(q) = 0.\) Because \(p, q\) are coprime, there are \(x, y\) such \(px + qy = 1.\) We define \(a = -(n-2)x, b = -(n-2)y,\) and we are done.

Case 2: \(n/3 < q \leq n/2.\) Then we want \(n-3 + pf(p) + qf(q) + 2qf(2q) = 0.\)

Case 2a: If \(q=2,\) then it must be \(n=3\) or \(n=4\) (since if \(n \geq 5,\) then \(p \geq 5\) and \(q \geq 3\)). The case \(n=3\) is rejected after \(q > n/2.\) For \(n=4,\) we have \(p=3, q=2,\) and want \(1 + 3f(3) + 2f(2) + 4f(2)^2 = 0,\) and it is enough to choose \(a = f(3) = -1\) and \(b = f(2) = -1.\)

Case 2b: If \(q > 2,\) then we want \(n-3 + pf(p) + 3qf(q) = 0,\) and because \(p, 3q\) are coprime, we can find suitable \(a, b\) as in case 1. (For the \(a, b\) non-zeros to be, it is enough to check that \(n-3 \neq 0,\) which is true since if \(n=3,\) we would have \(q=2\) and would not be in case 2.)

Case 3: \(n/4 < q \leq n/3.\) Then we want \(n-4 + pf(p) + qf(q) + 2qf(2q) + 3qf(3q) = 0.\)

Case 3a: If \(q \leq 3,\) then you must \(n \leq 6.\) (Since if \(n \geq 7,\) then \(p \geq 7\) and \(q \geq 5 > 3.\)) But if \(n \leq 6,\) then \(q \leq n/3 \leq 2.\) So \(q = 2,\) and \(n=6.\) But this is inappropriate since for \(n=6,\) we have \(q=3.\) So here we have nothing to control.

Case 3b: If \(q > 3,\) then we want \(n-4 + pf(p) + 6qf(q) = 0,\) and because \(p, 6q\) are coprime, we can find suitable \(a, b\) as in case 1. (For the \(a, b\) non-zeros to be, it is enough to check that \(n \neq 4,\) which is true since if \(n=4,\) we would have \(q=2\) and would not be in case 3.)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Markas
105 posts
#77
Y by
From the condition we get that $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$. Now if $p \not \mid  a_1$, then the first two terms of $S(n)$ have $\nu_p \geq 0$ $\Rightarrow$ $\nu_p(\frac{a_n}{a_{n+1}}) \geq 0$ $\Rightarrow$ $\nu_p(a_n) \geq \nu_p(a_{n+1}) $ for $n \geq N$. Now we will prove that if $p \mid a_1$, then $\nu_p(a_n)$ will be constant at some point. We have that $\nu_p(a_1) > 0$. Let $\nu_p(a_k) \ge \nu_p(a_1)$ for $k > N$. We will show that for all $n \ge k$ we have $\nu_p(a_1) \leq \nu_p(a_{n+1}) \leq \nu_p(a_n)$, which can be done by induction on n. Now from $\nu(\frac{a_n}{a_1}) \geq 0$, we have that $\nu_p(\frac{a_{n+1}}{a_1} + \frac{a_n}{a_{n+1}}) \geq 0$ which gives us the inequality we wanted, if thats not true we will have exactly one term of $S(n)$ with $\nu_p \geq 0$ $\Rightarrow$ $\nu_p(a_n)$ is monotonic and at the same time is lower bounded by $\nu_p(a_1)$ $\Rightarrow$ it will eventually be constant.
Now let $\nu_p(a_k) < \nu_p(a_1)$ for every $k > N$. Also get any $n > N$. We have $\nu_p(\frac{a_{n+1}}{a_1}) < 0$, and also $\nu_p(\frac{a_n}{a_1}) < 0$, so from the three terms of $S(n)$, two must have equal $\nu_p$'s. We will check all 3 cases. 1) $\nu_p(\frac{a_{n+1}}{a_1}) = \nu_p(\frac{a_n}{a_1})$ $\Rightarrow$ ${\nu_p(a_{n+1}) = \nu_p(a_{n})}$, which is enough. 2) $\nu_p(\frac{a_{n+1}}{a_1}) = \nu_p(\frac{a_n}{a_{n+1}})$ $\Rightarrow$ ${\nu_p(a_{n+1}) = \frac{\nu_p(a_n) + \nu_p(a_1)}{2}}$, which is also enough. 3) $\nu_p(\frac{a_{n}}{a_1}) = \nu_p(\frac{a_n}{a_{n+1}})$ $\Rightarrow$ $\nu_p(a_{n+1}) = \nu_p(a_1)$, but this is false $\Rightarrow$ $\nu_p(a_{n+1}) \ge \nu_p(a_n)$ and $\nu_p(a_n)$ is upper bounded by $\nu_p(a_1)$, so we will get to a constant eventually. Since we apply this to finitely many primes, at some point $\nu_p(a_n)$ will get fixed for all $p \mid a_1$ $\Rightarrow$ the sequence will satisfy $a_{n+1} \mid a_n$ for all n $\Rightarrow$ it will eventually be constant.
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
#78
Y by
My solution was incorrect. Thanks for report!
This post has been edited 1 time. Last edited by Mathandski, Jan 13, 2025, 6:25 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathLuis
1471 posts
#79
Y by
Let the whole sum be $S_n$ then for $n \ge N$ we will consider $S_{n+1}-S_n$, so we have that:
\[S_{n+1}-S_n \in \mathbb Z \implies \frac{a_{n+1}}{a_1}+\frac{a_n}{a_{n+1}}-\frac{a_n}{a_1}=\frac{a_{n+1}-a_n}{a_1}+\frac{a_n}{a_{n+1}}=\frac{a_{n+1}^2-a_na_{n+1}+a_na_1}{a_1a_{n+1}} \in \mathbb Z \]Therefore $a_1a_{n+1} \mid a_{n+1}^2-a_na_{n+1}+a_na_1$ so $a_{n+1} \mid a_na_1$
Now if $p \not \; \mid a_1$ then $\nu_p(a_{n+1}) \le \nu_p(a_n)$ so it becomes a decreasing sequence so it will be eventually constant.
Now notice that if we had for some $p$ prime that $p \mid a_1,a_n$ then $p \mid a_{n+1}$ so we can let $a_i=p \cdot b_i$ and realice we have the same condition for the new sequence, therefore by repeating until stuck we have that $\gcd(a_1,a_n) \mid a_{n+1}$ and from here we can also easly get $a_{n+1} \mid \text{lcm}(a_1,a_n)$, so now for a prime $p \mid a_1$ we have that $\text{min} \{\nu_p(a_1), \nu_p(a_n) \} \le \nu_p(a_{n+1}) \le \text{max} \{\nu_p(a_1), \nu_p(a_n) \}$
This holds for all $n \ge N$ so if we ever had $\nu_p(a_n)=\nu_p(a_1)$ then we would get $\nu_p(a_j)=\nu_p(a_1)$ for all $j \ge n$
And in the other 2 cases we get that either both $\nu_p(a_n), \nu_p(a_{n+1})$ are less than $\nu_p(a_1)$ or we get that $\nu_p(a_n) \ge \nu_p(a_{n+1})$ so either way for any such $p$ we get that the sequence of $\nu_p$'s stabilizes and converges at some point.
Therefore for some $M$ we have that $a_n$ is constant for all $n \ge M$ (since then we would get that $a_{n+1} \mid a_n$ and so on, so we would mess with decreasing-ness) thus we are done.
This post has been edited 2 times. Last edited by MathLuis, Sep 12, 2024, 9:13 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
numbertheory97
39 posts
#80
Y by
We prove the following quick claim, which allows us to focus on a finite number of primes.

Claim: Only finitely many primes divide $a_1, a_2, \dots$.

Proof. Actually, the only primes that divide elements of the sequence are the divisors of $a_1, a_2, \dots, a_{N - 1}$. Suppose $p \nmid a_1a_2 \cdots a_{N - 1}$ and $p \mid a_M$ for some $M \geq N$. Then \[\nu_p\left(\frac{a_1}{a_2} + \frac{a_2}{a_3} + \dots + \frac{a_{M - 1}}{a_M} + \frac{a_M}{a_1}\right) = \nu_p\left(\frac{a_{M - 1}}{a_M}\right) < 0\]since $\nu_p(a_M) > 0$, a contradiction since the expression is parentheses is an integer. Since finitely many primes are divisors of $a_1a_2 \dots a_{N - 1}$, we're done. $\square$

Now let $p$ one of these primes; it suffices to show that the sequence $\nu_p(a_1), \nu_p(a_2), \dots$ is eventually constant.

Claim: For any integer $n \geq N$, we have \[\nu_p(a_1) \leq \nu_p(a_n) \leq \nu_p(a_N)\]if $\nu_p(a_1) \leq \nu_p(a_N)$ and \[\nu_p(a_N) \leq \nu_p(a_n) \leq \nu_p(a_1)\]otherwise.

Proof. Observe that
\begin{align*}
    \left(\frac{a_1}{a_2} + \frac{a_2}{a_3} + \dots + \frac{a_n}{a_{n + 1}} + \frac{a_{n + 1}}{a_1}\right) - \left(\frac{a_1}{a_2} + \frac{a_2}{a_3} + \dots + \frac{a_{n - 1}}{a_n} + \frac{a_n}{a_1}\right) \\
    = \frac{a_n}{a_{n + 1}} + \frac{a_{n + 1}}{a_1} - \frac{a_n}{a_1}
\end{align*}is an integer, so $a_n/a_{n + 1} + a_{n + 1}/a_1$ and $a_n/a_1$ have the same denominator. Thus \[\nu_p\left(\frac{a_n}{a_{n + 1}} + \frac{a_{n + 1}}{a_1}\right) \geq 0 \iff \nu_p\left(\frac{a_n}{a_1}\right) \geq 0\]and \[\nu_p\left(\frac{a_n}{a_{n + 1}} + \frac{a_{n + 1}}{a_1}\right) < 0 \iff \nu_p\left(\frac{a_n}{a_1}\right) < 0 \iff \nu_p\left(\frac{a_n}{a_{n + 1}} + \frac{a_{n + 1}}{a_1}\right) = \nu_p\left(\frac{a_n}{a_1}\right) < 0.\]
Let $k = \nu_p(a_n/a_{n + 1} + a_{n + 1}/a_1)$. Suppose first that $\nu_p(a_n/a_1) \geq 0$, or alternately $\nu_p(a_n) \geq \nu_p(a_1)$. This implies that $k \geq 0$ as well, so if $\nu_p(a_{n + 1}) > \nu_p(a_n)$ or $\nu_p(a_{n + 1}) < \nu_p(a_1)$ we get $k < 0$, a contradiction. Thus $\nu_p(a_1) \leq \nu_p(a_{n + 1}) \leq \nu_p(a_n)$.

On the other hand, suppose $\nu_p(a_n) < \nu_p(a_1)$. Then $k = \nu_p(a_n/a_1) = \nu_p(a_n) - \nu_p(a_1)$, but \[k = \min\left(\nu_p\left(\frac{a_n}{a_{n + 1}}\right), \nu_p\left(\frac{a_{n + 1}}{a_1}\right)\right)\]unless $\nu_p(a_n/a_{n + 1}) = \nu_p(a_{n + 1}/a_1)$, which is clearly impossible since this implies $k = \frac12(\nu_p(a_n) - \nu_p(a_1))$. Thus $\nu_p(a_{n + 1}) \in \{\nu_p(a_1), \nu_p(a_n)\}$.

In either case, by starting at $n = N$ and inducting upward, we obtain the desired bounds on $\nu_p(a_n)$. $\square$

The claim implies that for $n \geq N$, the sequence $\nu_p(a_n)$ is monotonic and bounded between $\nu_p(a_1)$ and $\nu_p(a_n)$, so it clearly has a limiting value. Since we're only examining finitely many primes, there is some integer $K$ for which $\nu_p(a_K) = \nu_p(a_{K + 1}) = \dots$, and thus the sequence is constant beginning with $a_K$. This completes the proof. $\square$

Remark. I would have lost partial credit if I had actually done this problem in contest, since it didn't occur to me until reading hints after solving that simply showing $\nu_p(a_n)$ converges for each prime doesn't quite finish.
This post has been edited 1 time. Last edited by numbertheory97, Sep 24, 2024, 12:27 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihatemath123
3441 posts
#82
Y by
Claim: There are finitely many primes that divide an integer in the sequence.
Proof: For $i \geq N$ and for any prime $p$, the integer condition implies that
\[ \nu_p \left( \tfrac{a_{i-1}}{a_i} \right) \geq \min \left(\nu_p \left( \tfrac{a_1}{a_2} \right), \nu_p \left( \tfrac{a_2}{a_3} \right), \ldots, \nu_p \left( \tfrac{a_{i-2}}{a_{i-1}} \right), \nu_p \left( \tfrac{a_{i}}{a_{1}} \right) \right). \]In particular, if we set $p$ to a prime that does not divide any of $a_1, \dots, a_{i-1}$, it follows that $a_N, a_{N+1}, \dots$ cannot contain new prime divisors that don't divide any of $a_1, \dots, a_{N-1}$.

From hereon, let $i$ be any integer index greater than $N$ and fix some arbitrary prime $p$.

Claim: If $\nu ( a_{i-1} )\geq \nu ( a_1 )$, it follows that $\nu ( a_i ) \geq \nu ( a_1 )$.
Proof: Suppose FTSOC that $\nu ( a_i )< \nu ( a_1 )$. Subtracting the assertion for $i-1$ from $i$ implies that $- \tfrac{a_{i-1}}{a_1} + \tfrac{a_{i-1}}{a_i} + \tfrac{a_i}{a_1}$ is an integer. But by assumption, $\nu ( \tfrac{a_{i-1}}{a_1} )$ and $\nu ( \tfrac{a_{i-1}}{a_i} )$ are positive while $\nu ( \tfrac{a_i}{a_1} )$ is negative. This is a contradiction.

Claim: If $\nu (a_{i-1} ) < \nu ( a_i )$, we have $\nu (a_i) = \nu (a_1)$.
Proof: Once again, we only use that $- \tfrac{a_{i-1}}{a_1} + \tfrac{a_{i-1}}{a_i} + \tfrac{a_i}{a_1}$ is an integer. By assumption, $\nu (\tfrac{a_{i-1}}{a_i})$ is negative – moreover, by assumption, $\nu ( \tfrac{a_{i-1}}{a_1} )$ and $\nu ( \tfrac{a_i}{a_1} )$ are not equal. Therefore, to satisfy the integer condition, the smaller of the two, $\nu ( \tfrac{a_{i-1}}{a_1} )$, must equal $\nu (\tfrac{a_{i-1}}{a_i})$. This implies the claim.

If $\nu_p (a_{i-1} ) < \nu_p ( a_i )$ for some $i$, due to the first and second claims combined, $\nu_p (a_k) = \nu_p (a_1)$ for all $k \geq i$. Otherwise, we're already done. Applying this on our finite set of primes finishes the problem.
This post has been edited 1 time. Last edited by ihatemath123, Nov 27, 2024, 9:53 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bjump
994 posts
#83
Y by
Note that for integral $C \ge 0$
$$\frac{a_1}{a_2} + \frac{a_2}{a_3}+ \cdots  +\frac{a_{N+C-1}}{a_{N+C}} + \frac{a_{N+C}}{a_1}  \in \mathbb Z$$$$\frac{a_1}{a_2} + \frac{a_2}{a_3}+ \cdots  +\frac{a_{N+C}}{a_{N+C+1}} + \frac{a_{N+C+1}}{a_1}  \in \mathbb Z$$Subtracting the first expression from the second expression gives:
$$\frac{a_{N+C+1}}{a_1} + \frac{a_{N+C}}{a_{N+C+1}} -\frac{a_{N+C}}{a_1} \in \mathbb Z$$Suppose for some prime $p$, $\nu_p (a_1) = 0$ this implies $\nu_p(a_{N+C}) \ge  \nu_p(a_{N+C+1})$ implying that the sequence is eventually constant. Now if $\nu_p (a_1) \ge 1$ then if $\nu_p(a_1) >\nu_p (a_{N+C+1}) > \nu_p (a_{N+C})$ We have
$$\nu_p (a_{N+C}) - \nu_p (a_{N+C+1}) = \nu_p(a_{N+C+1} - a_{N+C}) -\nu_p (a_1)$$$$\nu_p (a_{N+C}) - \nu_p (a_{N+C+1}) = \nu_p(a_{N+C}) -\nu_p (a_1)$$$$\nu_p (a_{N+C+1}) = \nu_p (a_1)$$If $\nu_p (a_{N+C})= \nu_p (a_1)$ suppose for the sake of contradiction that $\nu_p (a_{N+C+1}) \neq \nu_p (a_1)$, we have:
$$\nu_p (a_{N+C}) - \nu_p ( a_{N+C+1}) = \nu_p(a_{N+C+1}) - \nu_p (a_1)$$$$\nu_p (a_{N+C})+\nu_p (a_1)  = 2 \nu_p(a_{N+C+1}) $$$$\nu_p(a_1)  = \nu_p(a_{N+C+1})$$A contradiction.
If $\nu_p(a_1) > \nu_p (a_{N+C}) > \nu_p (a_{N+C+1})$ we have the middle fraction is an integer and it is impossible for $\nu_p(a_{N+C+1} - a_{N+C}) =\nu_p( a_{N+C+1}) \ge \nu_p(a_1) $ to be true.

Now suppose $\nu_p (a_{N+C}) > \nu_p (a_1)$ we have that
$$\frac{a_{N+C+1}}{a_1}+\frac{a_{N+C}}{a_{N+C+1}} \in \mathbb Z$$If $\nu_p (a_1) < \nu_p( a_{N+C+1})$ we have $\nu_p(a_{N+C+1} \le \nu_p (a_{N+C})$. Otherwise $\nu_p (a_{N+C+1})  \le  \nu_p (a_i)$.

Therefore the sequence will be stuck at a constant with $\nu_p$ less than $\nu_p (a_1)$, $\nu_p(a_1)$ if the sequnce changes at all. It is impossible for the sequence to stay strictly above $\nu_p (a_1)$ due to our last argument. Thus $(a_n)$ is eventually constant.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lelouchvigeo
174 posts
#84 • 1 Y
Y by alexanderhamilton124
Easy?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihategeo_1969
175 posts
#85
Y by
No way I still haven't done this.

See that \[\frac{a_{n+1}}{a_1}+\frac{a_n}{a_{n+1}}=b_n \iff a_{n+1}a_1b_n-a_na_1=a_{n+1}(a_{n+1}-a_n) \text{ for large }n \left(\clubsuit \right)\]Say a prime $p \mid a_1$ if it exists (or else $a_{n+1} \mid a_n \implies a_{n+1} \leq a_n$ so by discrete IVT we are done).

See that there finitely many such primes $p$ and say $\nu_p(a_1)=C>0$.

Claim: Either the sequence $(\nu_p(a_n))_{n \geq 1}$ is eventually just $C$ or eventually $\nu_p(a_{n+1}) \leq \nu_p(a_n)$.
Proof: Say $\nu_p(a_{n+1})>\nu_p(a_n)$. See that applying $\nu_p$ in $\clubsuit$ we get \begin{align*}
& C+\nu_p(a_{n+1}b_n-a_n)=\nu_p(a_{n+1})+\nu_p(a_{n+1}-a_n) \iff C+\nu_p(a_n)=\nu_p(a_{n+1})+\nu_p(a_n) \iff \nu_p(a_{n+1})=C
\end{align*}Now see that if $\nu_p(a_{n+2}) \geq \nu_p(a_{n+1})$ then $\nu_p(a_{n+2})=C$. So assume the contrary. Again applying $\nu_p$ in $\clubsuit$ but rearranged and shifting $n \mapsto n+1$; we get \[\nu_p(a_{n+2})+C+\nu_p(b_{n+1})=\nu_p(a_{n+2}^2-a_{n+2}a_{n+1}+a_{n+1}a_1)=2\nu_p(a_{n+2}) \implies \nu_p(a_{n+2}) \geq C\]Which is a contradiction. $\square$

This claim obviously finishes.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathwiz_1207
93 posts
#86
Y by
We will prove that the sequence $\{v_p(a_n)\}$ is constant after a finite number of terms. Note that the condition is equivalent to
\[\frac{a_{n + 1}}{a_n} + \frac{a_n}{a_{n+1}} - \frac{a_n}{a_1} \in \mathbb{Z} \leftrightarrow \frac{(a_{n+1} - a_n)(a_{n + 1} - a_1)}{a_{n + 1}a_1} \in \mathbb{Z}\]Let $n$ be such that $n \geq N$ in what follows.


If $v_p(a_{n+1}) < v_p(a_n)$, we must have $v_p(a_{n+1}) \geq v_p(a_1)$. If $v_p(a_{n + 1}) < v_p(a_1)$, then
\[v_p(a_{n+1} - a_n) + v_p(a_{n + 1} - a_1) - v_p(a_{n+1}) - v_p(a_1) = v_p(a_{n+1}) + v_p(a_{n+1}) - v_p(a_{n+1}) - v_p(a_1) < 0\]a contradiction.


If $v_p(a_{n+1}) > v_p(a_n)$, we must have $v_p(a_{n + 1}) = v_p(a_1)$. If $v_p(a_{n + 1} < v_p(a_1)$, we have
\[v_p(a_{n+1} - a_n) + v_p(a_{n + 1} - a_1) - v_p(a_{n+1}) - v_p(a_1) = v_p(a_n) + v_p(a_{n+1}) - v_p(a_{n + 1}) - v_p(a_1) < 0\]a contradiction. Similarly, if $v_p(a_{n+1}) > v_p(a_1)$, we have
\[v_p(a_{n+1} - a_n) + v_p(a_{n + 1} - a_1) - v_p(a_{n+1}) - v_p(a_1) = v_p(a_n) + v_p(a_1) - v_p(a_{n+1}) - v_p(a_1) < 0\]a contradiction.


If $v_p(a_{n + 1}) = v_p(a_n)$, we must have $v_p(a_{n+1}) \geq v_p(a_1)$. If $v_p(a_{n+1}) < v_p(a_1)$, we have
\[v_p(a_{n+1}^2 - a_na_{n + 1} + a_1a_n) - v_p(a_{n + 1}) - v_p(a_1) = v_p(a_{n+1}) - v_p(a_1) < 0\]a contradiction.


Now, let $b_n = v_p(a_{n})$. Then, $b_n \geq b_1$ for all $n \geq N + 1$, since $b_1 \leq b_{n + 1} < b_n$, $b_n < b_{n + 1} = b_1$ or $b_1 \leq b_{n + 1} = b_n$. This implies that after a finite number of terms, either $\{b_n\}$ is $b_1$ or it is constant, so we are done.
This post has been edited 1 time. Last edited by mathwiz_1207, Feb 17, 2025, 9:43 PM
Reason: formatting
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VideoCake
8 posts
#87
Y by
Solved together with raflikk! :)

Solution. Denote given expression by \(S_n\), and notice that \(S_{n+1} - S_n\) has to be an integer, so
\[S_{n+1} - S_n = \frac{a_{n+1} - a_{n}}{a_{1}} - \frac{a_{n}}{a_{n+1}}\]meaning that \(a_1a_{n+1} \mid a_{n+1}(a_{n+1} - a_{n}) - a_na_1\). This implies \(a_1 \mid a_{n+1}(a_{n+1} - a_{n})\) and \(a_{n+1} \mid a_na_1\). Suppose that a prime \(p\) divides \(a_1\) and \(a_n\). Then,
\[p \mid a_1 \mid a_{n+1}(a_{n+1} - a_n) \implies p \mid a_{n+1}^2\]which means that \(p \mid a_{n+1}\). Thus, \(p \mid a_i\) for all \(i \geq n\). Now we repeat the following step:

Assume that there exists a positive integer \(C\) such that all terms \(a_i\) with \(i \geq C\) are integers, and assume that \(a_1\) is an integer. Pick a prime \(p\) such that \(p \mid a_1\) and \(p \mid a_i\) (with \(i \geq C\)). Since all \(a_j\) with \(j \geq i \geq C\) are integers, we know that \(p \mid a_j\) for all \(j \geq i\). Now we divide every term in the sequence by \(p\). All ratios are still the same. (We allow some terms in the sequence to be non-integers after this step). Note how all \(a_j\) with \(j \geq i\) are still integers, so we pick our new constant \(C\) to be equal to \(i\), and note how \(a_1\) is still an integer.

Eventually, it is not possible to perform the step by picking a prime \(p\), as \(a_1\) only has a finite amount of divisors. Then, \(\gcd(a_1, a_i) = 1\) for all \(i \geq C\). Lastly, this means that for every integer \(n \geq C\), we have:
\[a_{n+1} \mid a_1a_n \implies a_{n+1} \mid a_n \implies a_{n+1} \leq a_n\]We divided all terms in the sequence with the same primes, so \(a_{n+1} \leq a_n\) also holds in the original sequence, so this sequence has to be eventually constant, we are done.
Z K Y
N Quick Reply
G
H
=
a