Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/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, 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
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
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
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
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
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
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
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
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
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
Tuesday, Jun 10 - Aug 26

Calculus
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
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
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
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
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
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
Apr 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
inequality ( 4 var
SunnyEvan   5
N a few seconds ago by sqing
Let $ a,b,c,d \in R $ , such that $ a+b+c+d=4 . $ Prove that :
$$ a^4+b^4+c^4+d^4+3 \geq \frac{7}{4}(a^3+b^3+c^3+d^3) $$$$ a^4+b^4+c^4+d^4+ \frac{252}{25} \geq \frac{88}{25}(a^3+b^3+c^3+d^3) $$equality cases : ?
5 replies
SunnyEvan
Apr 4, 2025
sqing
a few seconds ago
Collinearity with orthocenter
Retemoeg   9
N 7 minutes ago by X.Luser
Source: Own?
Given scalene triangle $ABC$ with circumcenter $(O)$. Let $H$ be a point on $(BOC)$ such that $\angle AOH = 90^{\circ}$. Denote $N$ the point on $(O)$ satisfying $AN \parallel BC$. If $L$ is the projection of $H$ onto $BC$, show that $LN$ passes through the orthocenter of $\triangle ABC$.
9 replies
+2 w
Retemoeg
Mar 30, 2025
X.Luser
7 minutes ago
Geometry
youochange   1
N 14 minutes ago by youochange
m:}
Let $\triangle ABC$ be a triangle inscribed in a circle, where the tangents to the circle at points $B$ and $C$ intersect at the point $P$. Let $M$ be a point on the arc $AC$ (not containing $B$) such that $M \neq A$ and $M \neq C$. Let the lines $BC$ and $AM$ intersect at point $K$. Let $P'$ be the reflection of $P$ with respect to the line $AM$. The lines $AP'$ and $PM$ intersect at point $Q$, and $PM$ intersects the circumcircle of $\triangle ABC$ again at point $N$.

Prove that the point $Q$ lies on the circumcircle of $\triangle ANK$.
1 reply
youochange
an hour ago
youochange
14 minutes ago
Beautiful problem
luutrongphuc   14
N 31 minutes ago by aidenkim119
Let triangle $ABC$ be circumscribed about circle $(I)$, and let $H$ be the orthocenter of $\triangle ABC$. The circle $(I)$ touches line $BC$ at $D$. The tangent to the circle $(BHC)$ at $H$ meets $BC$ at $S$. Let $J$ be the midpoint of $HI$, and let the line $DJ$ meet $(I)$ again at $X$. The tangent to $(I)$ parallel to $BC$ meets the line $AX$ at $T$. Prove that $ST$ is tangent to $(I)$.
14 replies
luutrongphuc
Apr 4, 2025
aidenkim119
31 minutes ago
2025 - Turkmenistan National Math Olympiad
A_E_R   5
N 36 minutes ago by Filipjack
Source: Turkmenistan Math Olympiad - 2025
Let k,m,n>=2 positive integers and GCD(m,n)=1, Prove that the equation has infinitely many solutions in distict positive integers: x_1^m+x_2^m+⋯x_k^m=x_(k+1)^n
5 replies
A_E_R
3 hours ago
Filipjack
36 minutes ago
Vector geometry with unusual points
Ciobi_   1
N 41 minutes ago by ericdimc
Source: Romania NMO 2025 9.2
Let $\triangle ABC$ be an acute-angled triangle, with circumcenter $O$, circumradius $R$ and orthocenter $H$. Let $A_1$ be a point on $BC$ such that $A_1H+A_1O=R$. Define $B_1$ and $C_1$ similarly.
If $\overrightarrow{AA_1} + \overrightarrow{BB_1} + \overrightarrow{CC_1} = \overrightarrow{0}$, prove that $\triangle ABC$ is equilateral.
1 reply
Ciobi_
Apr 2, 2025
ericdimc
41 minutes ago
Parallel Lines and Q Point
taptya17   14
N an hour ago by Haris1
Source: India EGMO TST 2025 Day 1 P3
Let $\Delta ABC$ be an acute angled scalene triangle with circumcircle $\omega$. Let $O$ and $H$ be the circumcenter and orthocenter of $\Delta ABC,$ respectively. Let $E,F$ and $Q$ be points on segments $AB,AC$ and $\omega$, respectively, such that
$$\angle BHE=\angle CHF=\angle AQH=90^\circ.$$Prove that $OQ$ and $AH$ intersect on the circumcircle of $\Delta AEF$.

Proposed by Antareep Nath
14 replies
taptya17
Dec 13, 2024
Haris1
an hour ago
The last nonzero digit of factorials
Tintarn   4
N an hour ago by Sadigly
Source: Bundeswettbewerb Mathematik 2025, Round 1 - Problem 2
For each integer $n \ge 2$ we consider the last digit different from zero in the decimal expansion of $n!$. The infinite sequence of these digits starts with $2,6,4,2,2$. Determine all digits which occur at least once in this sequence, and show that each of those digits occurs in fact infinitely often.
4 replies
Tintarn
Mar 17, 2025
Sadigly
an hour ago
P2 Geo that most of contestants died
AlephG_64   2
N an hour ago by Tsikaloudakis
Source: 2025 Finals Portuguese Mathematical Olympiad P2
Let $ABCD$ be a quadrilateral such that $\angle A$ and $\angle D$ are acute and $\overline{AB} = \overline{BC} = \overline{CD}$. Suppose that $\angle BDA = 30^\circ$, prove that $\angle DAC= 30^\circ$.
2 replies
AlephG_64
Yesterday at 1:23 PM
Tsikaloudakis
an hour ago
comp. geo starting with a 90-75-15 triangle. <APB =<CPQ, <BQA =<CQP.
parmenides51   1
N 2 hours ago by Mathzeus1024
Source: 2013 Cuba 2.9
Let ABC be a triangle with $\angle A = 90^o$, $\angle B = 75^o$, and $AB = 2$. Points $P$ and $Q$ of the sides $AC$ and $BC$ respectively, are such that $\angle APB =  \angle CPQ$ and $\angle BQA = \angle CQP$. Calculate the lenght of $QA$.
1 reply
parmenides51
Sep 20, 2024
Mathzeus1024
2 hours ago
Fridolin just can't get enough from jumping on the number line
Tintarn   2
N 2 hours ago by Sadigly
Source: Bundeswettbewerb Mathematik 2025, Round 1 - Problem 1
Fridolin the frog jumps on the number line: He starts at $0$, then jumps in some order on each of the numbers $1,2,\dots,9$ exactly once and finally returns with his last jump to $0$. Can the total distance he travelled with these $10$ jumps be a) $20$, b) $25$?
2 replies
Tintarn
Mar 17, 2025
Sadigly
2 hours ago
Geometry
Captainscrubz   2
N 2 hours ago by MrdiuryPeter
Source: Own
Let $D$ be any point on side $BC$ of $\triangle ABC$ .Let $E$ and $F$ be points on $AB$ and $AC$ such that $EB=ED$ and $FD=FC$ respectively. Prove that the locus of circumcenter of $(DEF)$ is a line.
Prove without using moving points :D
2 replies
Captainscrubz
4 hours ago
MrdiuryPeter
2 hours ago
Find the constant
JK1603JK   1
N 2 hours ago by Quantum-Phantom
Source: unknown
Find all $k$ such that $$\left(a^{3}+b^{3}+c^{3}-3abc\right)^{2}-\left[a^{3}+b^{3}+c^{3}+3abc-ab(a+b)-bc(b+c)-ca(c+a)\right]^{2}\ge 2k\cdot(a-b)^{2}(b-c)^{2}(c-a)^{2}$$forall $a,b,c\ge 0.$
1 reply
JK1603JK
6 hours ago
Quantum-Phantom
2 hours ago
hard problem
Cobedangiu   15
N 2 hours ago by Nguyenhuyen_AG
problem
15 replies
Cobedangiu
Mar 27, 2025
Nguyenhuyen_AG
2 hours ago
IMO 2018 Problem 5
orthocentre   76
N Apr 3, 2025 by Maximilian113
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
76 replies
orthocentre
Jul 10, 2018
Maximilian113
Apr 3, 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.
shendrew7
793 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
176 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
738 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
40 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
997 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
176 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
182 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
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
525 posts
#88
Y by
Note that for all $k \geq N,$ $$\frac{a_{k}}{a_{k+1}}+\frac{a_{k+1}}{a_1} - \frac{a_{k+1}}{a_1} \in \mathbb Z \implies \frac{a_k-a_{k+1}}{a_k}+\frac{a_{k+1}}{a_1} - \frac{a_k}{a_1} \in \mathbb Z.$$Thus $$S_k=(a_{k+1}-a_k) \left( \frac{1}{a_1} - \frac{1}{a_{k+1}} \right) \in \mathbb Z.$$Now fix a prime $p.$ If $v_p(a_N) < v_p(a_{N+1}),$ we have that $$v_p(a_N) = v_p(a_{N+1}-a_N).$$So if $v_p\left( \frac{1}{a_1}\right) \neq v_p \left( \frac{1}{a_{N+1}} \right),$ it follows that $$v_p \left( \frac{1}{a_1} - \frac{1}{a_{N+1}} \right) \leq v_p \left( \frac{1}{a_{N+1}} \right) < v_p \left(\frac{1}{a_N}\right),$$therefore adding this with above yields $v_p(S_k) < 0,$ contradiction.

Thus $v_p\left( \frac{1}{a_1} \right) = v_p \left( \frac{1}{a_{N+1}} \right) \implies v_p(a_1) = v_p(a_{N+1}).$ Now by similar logic to above, $v_p(a_{N+2}) \leq v_p(a_{N+1})$ as it is impossible for $v_p(a_{N+2}) > v_p(a_{N+1})$ and $v_p (a_1) = v_p (a_{N+2})$ to happen at the same time. But if $v_p(a_{N+2}) < v_p(a_{N+1}),$ we see that $$v_p(S_{N+1}) = v_p(a_{N+2}) + v_p \left( \frac{1}{a_1}-\frac{1}{a_{N+2}} \right) = v_p \left(\frac{a_{N+2}}{a_1}-1 \right) < 0,$$contradiction. Thus $v_p(a_{N+2}) = v_p(a_1),$ and applying this yields that the sequence $v_p(a_n)$ is eventually constant.

Now suppose that for the sake of a contradiction $v_p(a_n)$ is not eventually constant, then by above for all $k \geq N$ we have $v_p(a_k) \geq v_p(a_{k+1}).$ But this is a contradiction, as there are a finite number of possible values $v_p(a_k)$ can take, as $a_k$ are positive integers. Since $p$ is not special it follows that $\{ a_n \}$ is eventually constant. QED
Z K Y
N Quick Reply
G
H
=
a