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
A Typical Determinant Problem
Saucepan_man02   3
N 41 minutes ago by removablesingularity
Source: Romania Contest, 2010
Let $A, B \in M_n(\mathbb R)$ with $B^2 = O_n$. Show that: $\det(AB+BA+I_n) \ge 0$.
3 replies
Saucepan_man02
Apr 17, 2025
removablesingularity
41 minutes ago
Number theory
falantrng   38
N an hour ago by Ilikeminecraft
Source: RMM 2018 D2 P4
Let $a,b,c,d$ be positive integers such that $ad \neq bc$ and $gcd(a,b,c,d)=1$. Let $S$ be the set of values attained by $\gcd(an+b,cn+d)$ as $n$ runs through the positive integers. Show that $S$ is the set of all positive divisors of some positive integer.
38 replies
falantrng
Feb 25, 2018
Ilikeminecraft
an hour ago
USAMO 2001 Problem 5
MithsApprentice   23
N an hour ago by Ilikeminecraft
Let $S$ be a set of integers (not necessarily positive) such that

(a) there exist $a,b \in S$ with $\gcd(a,b)=\gcd(a-2,b-2)=1$;
(b) if $x$ and $y$ are elements of $S$ (possibly equal), then $x^2-y$ also belongs to $S$.

Prove that $S$ is the set of all integers.
23 replies
MithsApprentice
Sep 30, 2005
Ilikeminecraft
an hour ago
IMO 2016 Shortlist, N6
dangerousliri   67
N an hour ago by Ilikeminecraft
Denote by $\mathbb{N}$ the set of all positive integers. Find all functions $f:\mathbb{N}\rightarrow \mathbb{N}$ such that for all positive integers $m$ and $n$, the integer $f(m)+f(n)-mn$ is nonzero and divides $mf(m)+nf(n)$.

Proposed by Dorlir Ahmeti, Albania
67 replies
dangerousliri
Jul 19, 2017
Ilikeminecraft
an hour ago
IMO ShortList 1998, number theory problem 1
orl   54
N an hour ago by Ilikeminecraft
Source: IMO ShortList 1998, number theory problem 1
Determine all pairs $(x,y)$ of positive integers such that $x^{2}y+x+y$ is divisible by $xy^{2}+y+7$.
54 replies
orl
Oct 22, 2004
Ilikeminecraft
an hour ago
IMO Shortlist 2011, Number Theory 3
orl   47
N an hour ago by Ilikeminecraft
Source: IMO Shortlist 2011, Number Theory 3
Let $n \geq 1$ be an odd integer. Determine all functions $f$ from the set of integers to itself, such that for all integers $x$ and $y$ the difference $f(x)-f(y)$ divides $x^n-y^n.$

Proposed by Mihai Baluna, Romania
47 replies
orl
Jul 11, 2012
Ilikeminecraft
an hour ago
IMO ShortList 2002, number theory problem 6
orl   30
N an hour ago by Ilikeminecraft
Source: IMO ShortList 2002, number theory problem 6
Find all pairs of positive integers $m,n\geq3$ for which there exist infinitely many positive integers $a$ such that \[ \frac{a^m+a-1}{a^n+a^2-1}  \] is itself an integer.

Laurentiu Panaitopol, Romania
30 replies
orl
Sep 28, 2004
Ilikeminecraft
an hour ago
Euclid NT
Taco12   12
N an hour ago by Ilikeminecraft
Source: 2023 Fall TJ Proof TST, Problem 4
Find all pairs of positive integers $(a,b)$ such that \[ a^2b-1 \mid ab^3-1. \]
Calvin Wang
12 replies
Taco12
Oct 6, 2023
Ilikeminecraft
an hour ago
A=b
k2c901_1   87
N an hour ago by Ilikeminecraft
Source: Taiwan 1st TST 2006, 1st day, problem 3
Let $a$, $b$ be positive integers such that $b^n+n$ is a multiple of $a^n+n$ for all positive integers $n$. Prove that $a=b$.

Proposed by Mohsen Jamali, Iran
87 replies
k2c901_1
Mar 29, 2006
Ilikeminecraft
an hour ago
Floor of square root
v_Enhance   43
N an hour ago by Ilikeminecraft
Source: APMO 2013, Problem 2
Determine all positive integers $n$ for which $\dfrac{n^2+1}{[\sqrt{n}]^2+2}$ is an integer. Here $[r]$ denotes the greatest integer less than or equal to $r$.
43 replies
v_Enhance
May 3, 2013
Ilikeminecraft
an hour ago
Pair of multiples
Jalil_Huseynov   62
N an hour ago by Ilikeminecraft
Source: APMO 2022 P1
Find all pairs $(a,b)$ of positive integers such that $a^3$ is multiple of $b^2$ and $b-1$ is multiple of $a-1$.
62 replies
1 viewing
Jalil_Huseynov
May 17, 2022
Ilikeminecraft
an hour ago
Putnam 2018 B4
62861   22
N an hour ago by Ilikeminecraft
Given a real number $a$, we define a sequence by $x_0 = 1$, $x_1 = x_2 = a$, and $x_{n+1} = 2x_nx_{n-1} - x_{n-2}$ for $n \ge 2$. Prove that if $x_n = 0$ for some $n$, then the sequence is periodic.
22 replies
62861
Dec 2, 2018
Ilikeminecraft
an hour ago
Putnam 2006 B1
Kent Merryfield   54
N an hour ago by Ilikeminecraft
Show that the curve $x^{3}+3xy+y^{3}=1$ contains only one set of three distinct points, $A,B,$ and $C,$ which are the vertices of an equilateral triangle.
54 replies
Kent Merryfield
Dec 4, 2006
Ilikeminecraft
an hour ago
Putnam 2015 B4
Kent Merryfield   23
N 2 hours ago by Ilikeminecraft
Let $T$ be the set of all triples $(a,b,c)$ of positive integers for which there exist triangles with side lengths $a,b,c.$ Express \[\sum_{(a,b,c)\in T}\frac{2^a}{3^b5^c}\]as a rational number in lowest terms.
23 replies
Kent Merryfield
Dec 6, 2015
Ilikeminecraft
2 hours ago
Sequence, limit and number theory
KAME06   3
N Apr 5, 2025 by Rainbow1971
Source: Ecuador National Olympiad OMEC level U 2023 P6 Day 2
A positive integers sequence is defined such that, for all $n \ge 2$, $a_{n+1}$ is the greatest prime divisor of $a_1+a_2+...+a_n$. Find:
$$\lim_{n \rightarrow \infty} \frac{a_n}{n}$$
3 replies
KAME06
Feb 6, 2025
Rainbow1971
Apr 5, 2025
Sequence, limit and number theory
G H J
G H BBookmark kLocked kLocked NReply
Source: Ecuador National Olympiad OMEC level U 2023 P6 Day 2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
KAME06
155 posts
#1 • 1 Y
Y by Rainbow1971
A positive integers sequence is defined such that, for all $n \ge 2$, $a_{n+1}$ is the greatest prime divisor of $a_1+a_2+...+a_n$. Find:
$$\lim_{n \rightarrow \infty} \frac{a_n}{n}$$
This post has been edited 1 time. Last edited by KAME06, Feb 6, 2025, 8:33 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Rainbow1971
35 posts
#2
Y by
And what are the definitions of $a_1$ and $a_2$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
KAME06
155 posts
#4
Y by
Rainbow1971 wrote:
And what are the definitions of $a_1$ and $a_2$?

We just know they are two positive integers
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Rainbow1971
35 posts
#5
Y by
This is indeed a charming little problem. As it is a little convoluted in character, I wish to make it a little more straightforward by setting $a_1 = a_2 = 1$. The general setting with arbitrary starting values leads to "essentially" the same problem, but restricting those values to 1 helps to avoid unnecessary variables.

For convenience, I set $s_n = a_1 + a_2 + \ldots + a_{n-1}$, so that $a_n$ will be the biggest prime divisor of $s_n$. In order to gain some familiarity with the situation, the following table provides the relevant values for $n \in \{3, 4, \ldots, 30\}$:

$n$ $\quad$ $s_n$ $\quad$ $a_n$ $\quad$ $a_n/n$
3 $\quad \ $ 2 $\quad \ $ 2 $\quad \ $ 2/3
4 $\quad \ $ 4 $\quad \ $ 2 $\quad \ $ 1/2
5 $\quad \ $ 6 $\quad \ $ 3 $\quad \ $ 3/5
6 $\quad \ $ 9 $\quad \ $ 3 $\quad \ $ 1/2
7 $\quad \ $ 12 $\quad \ $ 3 $\quad \ $ 3/7
8 $\quad \ $ 15 $\quad \ $ 5 $\quad \ $ 5/8
9 $\quad \ $ 20 $\quad \ $ 5 $\quad \ $ 5/9
10 $\quad \ $ 25 $\quad \ $ 5 $\quad \ $ 1/2
11 $\quad \ $ 30 $\quad \ $ 5 $\quad \ $ 5/11
12 $\quad \ $ 35 $\quad \ $ 7 $\quad \ $ 7/12
13 $\quad \ $ 42 $\quad \ $ 7 $\quad \ $ 7/13
14 $\quad \ $ 49 $\quad \ $ 7 $\quad \ $ 1/2
15 $\quad \ $ 56 $\quad \ $ 7 $\quad \ $ 7/15
16 $\quad \ $ 63 $\quad \ $ 7 $\quad \ $ 7/16
17 $\quad \ $ 70 $\quad \ $ 7 $\quad \ $ 7/17
18 $\quad \ $ 77 $\quad \ $ 11 $\quad \ $ 11/18
19 $\quad \ $ 88 $\quad \ $ 11 $\quad \ $ 11/19
20 $\quad \ $ 99 $\quad \ $ 11 $\quad \ $ 11/20
21 $\quad \ $ 110 $\quad \ $ 11 $\quad \ $ 11/21
22 $\quad \ $ 121 $\quad \ $ 11 $\quad \ $ 1/2
23 $\quad \ $ 132 $\quad \ $ 11 $\quad \ $ 11/23
24 $\quad \ $ 143 $\quad \ $ 13 $\quad \ $ 13/24
25 $\quad \ $ 156 $\quad \ $ 13 $\quad \ $ 13/25
26 $\quad \ $ 169 $\quad \ $ 13 $\quad \ $ 1/2
27 $\quad \ $ 182 $\quad \ $ 13 $\quad \ $ 13/27
28 $\quad \ $ 195 $\quad \ $ 13 $\quad \ $ 13/28
29 $\quad \ $ 208 $\quad \ $ 13 $\quad \ $ 13/29
30 $\quad \ $ 221 $\quad \ $ 17 $\quad \ $ 17/30


With respect to this table, we will refer to the first column as the index or line number, to the second column as the $s$-column, to the third column as the $a$-column, and to the respective entries as $s$-values and $a$-values.

The table suggests to some extent that the limit of $(a_n/n)$ is $\tfrac{1}{2}$, and we will now examine that hypothesis.

When we take a look at our table, we see that it consists of sections of constant values for $a_n$. In lines 12 to 17, for example, we consistently have the value 7 in the $a$-column. We will now investigate these sections a little closer, focussing on the values of $s_n$ and $a_n$. For that purpose, we define $p_i$ to be the $i$-th prime number (in their natural increasing order), i.e. $p_1 = 2$, $p_2 = 3$ etc.

We start our investigation in line 5 which marks the beginning of the section of the value 3 for $a_n$. We observe that the $s$-value and the $a$-value, that is 6 and 3, can be written as $p_{i-1} \cdot p_i$ and $p_i$ for $i=2$. Plainly speaking, the $s$-value is the product of the corresponding prime in the $a$-column and the previous prime. We will show that this is no coincidence for the first line of such a section.

We make a sketch of an inductive argument: By inspection, we see that, at the beginning of the section with the $a$-value 3, we do indeed have $p_{i-1} \cdot p_i$ and $p_i$ in those two columns. By definition of $s_n$, the value in the $s$-column in the next line is $p_{i-1} \cdot p_i + p_i$ which is the same as $p_i \cdot (p_{i-1} + 1)$. If the value in the $a$-column of that line does not change, $p_i$ is added to the $s$-value in the following line once again, resulting in the value $p_i \cdot (p_{i-1} + 2)$ there, and as long as nothing changes in the $a$-column, the values in the $s$-column will be of the form $p_i \cdot (p_{i-1} + k)$, $k \in \{1, 2, 3, \ldots\}$ in the following lines.

The value in the $a$-column will change once we reach the smallest $k$ such that $p_i \cdot (p_{i-1} + k)$ has a prime factor $p$ larger than $p_i$. As two different prime numbers are always relatively prime, this is equivalent to the fact that $p$ divides $p_{i-1} + k$. We start with $k=1$, when $p_{i-1} + k$ is smaller than $p_i$ and also smaller than any candidate prime number $p$ (which must even be greater than $p_i$). Clearly, the first $k$ such that $p_{i-1} + k$ has a prime divisor greater than $p_i$ is the one with $p_{i-1} + k = p_{i+1}$, so that our new prime number will be $p = p_{i+1}$, which then does not only divide $p_{i-1} + k$, but will be equal to it.

This shows that the length of the section under investigation is $p_{i+1}-p_{i-1}$ lines (as that was the crucial value of $k$ which initiated a change in the $a$-column). The last line of that section will have the value $p_i \cdot (p_{i+1}-1)$ in the $s$-column and $p_i$ in the $a$-column, and the new section will therefore begin with a line that has $p_i \cdot p_{i+1}$ in the $s$-column and $p_{i+1}$ in the $a$-column. In particular, this shows that the values in the $a$-column run through all the prime numbers in a monotonously increasing way.

So far, we have described the values in the $a$-column in terms of the sequence $(p_n)$. Now we have to consider them as actual elements of the sequence $(a_n)$, which, loosely speaking, means that we have to find a relation between those values and the line number.

The crucial insight of our work so far is now that, in the $a$-column, the prime number $p_i$ prevails for exactly $p_{i+1}-p_{i-1}$ lines. Thus the prime number $p_2= 3$, which appears for the first time in line 5, is succeeded by $p_3= 5$ in line $5 + p_3 - p_1$. By induction, the prime number $p_i$ (for some integer $i$) will appear in the $a$-column for the first time in line
$$5 + (p_3 - p_1) + (p_4 - p_2) + (p_5 - p_3) + \ldots + (p_{i-1} - p_{i-3}) + (p_i - p_{i-2}),$$and this telescoping sum is the same as
$$5 + p_i + p_{i-1} - p_2 - p_1 = 5 + p_i + p_{i-1} - 3 - 2 = p_i + p_{i-1}.$$
This means nothing less than $$a_{p_i + p_{i-1}} = p_i,$$
and therefore $$\frac{a_n}{n} = \frac{p_i}{p_i + p_{i-1}} \quad \text{for $n = p_i + p_{i-1}$}.$$
As the $a$-value does not change within a section (by definition of a section), we can conclude that, at the end of the section, which comes $p_{i+1}-p_{i-1}-1$ lines later, we have $$\frac{a_n}{n} = \frac{p_i}{p_i+p_{i+1}-1} \quad \text{for $n = p_i + p_{i+1}-1$}.$$
Within a section, the values of $\tfrac{a_n}{n}$ are clearly strictly decreasing, as it is only the index $n$ which changes. Therefore, to establish the limit of $\tfrac{a_n}{n}$, which is the ultimate objective of this text, it suffices to focus on the values of $\tfrac{a_n}{n}$ at the beginning and at the end of each section. If the values of the subsequence at the beginning, i.e.
$$(\frac{p_i}{p_i + p_{i-1}}),$$and at the end, i.e.
$$(\frac{p_i}{p_i+p_{i+1}-1})$$converge to the same limit, the entire sequence $(\tfrac{a_n}{n})$ will converge to that same limit by the squeezing theorem. There is the (still open) conjecture that there are infinitely many twin primes. If we assume that the conjecture is true, this would easily show that the only possible limit of our two subsequences from above, and therefore the whole sequence, is indeed $\tfrac{1}{2}$.

To actually prove that limit statement, some sophisticated approximation of $p_i$ is needed. I am somewhat hesitant to proceed here, however, as I feel that this is beyond what is reasonable for a problem from a Math olympiad. To me, the attraction of this problem lies in uncovering the more elementary results from above. If others can produce an elementary proof of the limit statement, though, I am very interested in hearing about it.
This post has been edited 3 times. Last edited by Rainbow1971, Apr 6, 2025, 1:03 PM
Z K Y
N Quick Reply
G
H
=
a