We have your learning goals covered with Spring and Summer courses available. Enroll today!

G
Topic
First Poster
Last Poster
k a March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
Sunday, Apr 13 - Aug 10
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Tuesday, Mar 25 - Jul 8
Sunday, Apr 13 - Aug 10
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21


Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Mar 23 - Jul 20
Monday, Apr 7 - Jul 28
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Mar 16 - Jun 8
Wednesday, Apr 16 - Jul 2
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Monday, Mar 17 - Jun 9
Thursday, Apr 17 - Jul 3
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Sunday, Mar 2 - Jun 22
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
Wednesday, Apr 23 - Oct 1
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
Monday, Apr 21 - Oct 13
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Sunday, Mar 23 - Aug 3
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Sunday, Mar 16 - Aug 24
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Sunday, Mar 23 - Jun 15
Wednesday, Apr 16 - Jul 2
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Friday, Apr 11 - Jun 27
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Monday, Mar 24 - Jun 16
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Mar 2, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
God do bosses have a hard job
AshAuktober   1
N 5 minutes ago by tyrantfire4
Source: 05JPN5 (couldn't find on search function)
The boss has to assign ten job positions to ten candidates, considering two parameters: preference and ability. If candidate A prefers job $v$ to job $u$ and has a better ability in job $v$ than candidate B, but A is assigned job $u$ and B is assigned job $v$, then A will complain. Also, if it is possible to assign each job to a candidate with a higher ability, the director will complain. Show that the boss can assign the jobs so as to avoid any complaints.
1 reply
+1 w
AshAuktober
24 minutes ago
tyrantfire4
5 minutes ago
Nordic 2025 P2
anirbanbz   5
N 17 minutes ago by KAME06
Source: Nordic 2025
Let $p$ be a prime and suppose $2^{2p} \equiv 1 (\text{mod}$ $ 2p+1)$ is prime. Prove that $2p+1$ is prime$^{1}$

$^{1}$This is a special case of Pocklington's theorem. A proof of this special case is required.
5 replies
anirbanbz
4 hours ago
KAME06
17 minutes ago
Nice problem
hanzo.ei   6
N 22 minutes ago by Ianis

Given two sequences $(a_n)$ and $(b_n)$ satisfying $(a_n + b_n)a_n \neq 0$ for all $n$, and both series
\[
\sum \frac{a_n}{b_n}, \quad \sum \frac{b_n}{a_n}
\]are convergent. Prove that the series
\[
\sum \frac{a_n}{a_n + b_n}
\]also converges.
6 replies
1 viewing
hanzo.ei
5 hours ago
Ianis
22 minutes ago
System of Equations in Z
rightways   0
24 minutes ago
Source: Kazakhstan NMO Problem 1
Find all quadruples $a,b,c,d$ for which $2^a+3^b=5^c d$ and $2^b+3^a=5^d c$.
0 replies
rightways
24 minutes ago
0 replies
$x^{y^2+1}+y^{x^2+1}=2^z$
Zahy2106   0
29 minutes ago
Source: Collection
Find all $(x,y,z)\in (\mathbb{Z^+})^3$ safisty: $x^{y^2+1}+y^{x^2+1}=2^z$
0 replies
Zahy2106
29 minutes ago
0 replies
Solve this:
slimshady360   1
N an hour ago by pco
Solve this:
1 reply
slimshady360
2 hours ago
pco
an hour ago
Nordic 2025 P1
anirbanbz   4
N an hour ago by Mathdreams
Source: Nordic 2025
Let $n$ be a positive integer greater than $2$. Find all functions $f: \mathbb{Z} \rightarrow \mathbb{Z}$ satisfying:
$(f(x+y))^{n} = f(x^{n})+f(y^{n}),$ for all integers $x,y$
4 replies
anirbanbz
4 hours ago
Mathdreams
an hour ago
Slightly weird points which are not so weird
Pranav1056   11
N 2 hours ago by maths_enthusiast_0001
Source: India TST 2023 Day 4 P1
Suppose an acute scalene triangle $ABC$ has incentre $I$ and incircle touching $BC$ at $D$. Let $Z$ be the antipode of $A$ in the circumcircle of $ABC$. Point $L$ is chosen on the internal angle bisector of $\angle BZC$ such that $AL = LI$. Let $M$ be the midpoint of arc $BZC$, and let $V$ be the midpoint of $ID$. Prove that $\angle IML = \angle DVM$
11 replies
1 viewing
Pranav1056
Jul 9, 2023
maths_enthusiast_0001
2 hours ago
Inequality involving a unimodal sequence
timon92   1
N 2 hours ago by math_comb01
Source: 76 Polish MO, 2nd round, p6
Let $1\le k\le n$. Suppose that the sequence $a_1, a_2, \ldots, a_n$ satisfies $0\le a_1 \le a_2 \le \ldots \le a_k$ and $0 \le a_n \le a_{n-1} \le \ldots \le a_k$. The sequence $b_1, b_2, \ldots, b_n$ is the nondecreasing permutation of $a_1, a_2, \ldots, a_n$. Prove that
\[\sum_{i=1}^n \sum_{j=1}^n (j-i)^2a_ia_j \le \sum_{i=1}^n \sum_{j=1}^n (j-i)^2b_ib_j \]
1 reply
timon92
Feb 15, 2025
math_comb01
2 hours ago
Decomposition into bounded number of factors
fattypiggy123   11
N 2 hours ago by sttsmet
Source: China TST 3 Day 1 Q3
Let $a,b$ be two integers such that their gcd has at least two prime factors. Let $S =  \{ x \mid x \in \mathbb{N}, x \equiv a \pmod b \} $ and call $ y \in S$ irreducible if it cannot be expressed as product of two or more elements of $S$ (not necessarily distinct). Show there exists $t$ such that any element of $S$ can be expressed as product of at most $t$ irreducible elements.
11 replies
fattypiggy123
Mar 23, 2015
sttsmet
2 hours ago
Very hard problem
slimshady360   1
N 2 hours ago by sqing
Solve this:
1 reply
slimshady360
3 hours ago
sqing
2 hours ago
Inspired by IMO 1984
sqing   0
2 hours ago
Source: Own
Let $ a,b,c\geq 0 $ and $a+b+c=1$. Prove that
$$a^2+b^2+ ab +17abc\leq\frac{8000}{7803}$$$$a^2+b^2+ ab +\frac{163}{10}abc\leq\frac{7189057}{7173630}$$$$a^2+b^2+ ab +16.23442238abc\le1$$
0 replies
sqing
2 hours ago
0 replies
Solve this:
slimshady360   1
N 2 hours ago by Primeniyazidayi
Solve this:
1 reply
slimshady360
3 hours ago
Primeniyazidayi
2 hours ago
Long condition for the beginning
wassupevery1   1
N 2 hours ago by pco
Source: 2025 Vietnam IMO TST - Problem 1
Find all functions $f: \mathbb{Q}^+ \to \mathbb{Q}^+$ such that $$\dfrac{f(x)f(y)}{f(xy)} = \dfrac{\left( \sqrt{f(x)} + \sqrt{f(y)} \right)^2}{f(x+y)}$$holds for all positive rational numbers $x, y$.
1 reply
wassupevery1
3 hours ago
pco
2 hours ago
Silly Sequences
whatshisbucket   24
N Aug 19, 2024 by SomeonesPenguin
Source: ELMO 2018 #2, 2018 ELMO SL N3
Consider infinite sequences $a_1,a_2,\dots$ of positive integers satisfying $a_1=1$ and $$a_n \mid a_k+a_{k+1}+\dots+a_{k+n-1}$$for all positive integers $k$ and $n.$ For a given positive integer $m,$ find the maximum possible value of $a_{2m}.$

Proposed by Krit Boonsiriseth
24 replies
whatshisbucket
Jun 28, 2018
SomeonesPenguin
Aug 19, 2024
Silly Sequences
G H J
G H BBookmark kLocked kLocked NReply
Source: ELMO 2018 #2, 2018 ELMO SL N3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
whatshisbucket
975 posts
#1 • 7 Y
Y by Carpemath, MathbugAOPS, k12byda5h, Hoto_Mukai, Dennis1208, Adventure10, Mango247
Consider infinite sequences $a_1,a_2,\dots$ of positive integers satisfying $a_1=1$ and $$a_n \mid a_k+a_{k+1}+\dots+a_{k+n-1}$$for all positive integers $k$ and $n.$ For a given positive integer $m,$ find the maximum possible value of $a_{2m}.$

Proposed by Krit Boonsiriseth
This post has been edited 1 time. Last edited by whatshisbucket, Jun 29, 2018, 1:05 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rmtf1111
698 posts
#2 • 4 Y
Y by Carpemath, MathbugAOPS, PRMOisTheHardestExam, Adventure10
outline of the solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dragonmaster3000
306 posts
#3 • 8 Y
Y by Carpemath, wu2481632, cjquines0, enzoP14, centslordm, Kobayashi, Adventure10, Mango247
Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
DrMath
2130 posts
#4 • 6 Y
Y by Hamel, Carpemath, Epison11, Kobayashi, Adventure10, Mango247
Note that $a_n\mid a_{k+n}-a_k$ since $a_n\mid a_k+\cdots + a_{k+n-1}$ and $a_n\mid a_{k+1}+\cdots + a_{k+n}$; subtracting gives the claim. Write $S_n=a_1+a_2+\cdots + a_n$.

Note that $a_{2m}=\boxed{2^m-1}$ is attainable via the sequence $a_{2n}=2^n-1$ and $a_{2n-1}=1$; indeed, we only need to check the divisibility condition for even $n$; note that $a_{2n}\mid a_1+\cdots + a_{2n} = 2^{n+1}-2$, $a_{2n}\mid a_{2k+2n}-a_{2k}=2^{k+n}-2^k$, and $a_{2n}\mid a_{2k+2n-1}-a_{2k-1}=0$; from this, it is easy to see the divisibility condition holds.

We prove the following claims simultaneously via induction:

$$S_{2m}\le 2^{m+1}-2 \text{ and } a_{2m}\le 2^m-1$$
Indeed, the base case $m=1$ is easy: note that $a_2\mid a_1+a_2=1+a_2$, so we are forced to have $a_2=1$ and $S_2=2$.

Now, suppose the statement is true for $m$. First, note that $a_i\mid S_{i-1}$ in general, since $a_i\mid a_1+\cdots + a_i=S_{i-1}+a_i$. Let $S=S_{2m}$. We have $a_{2m+1}\mid S$, $a_{2m+2}\mid S_{m+1}=S+a_{2m+1}$, and $a_{2m+1}\mid a_{2m+2}-a_1=a_{2m+2}-1$. Now, note that $$a_{2m+2}\mid a_{2m+1}\left(\frac{S}{a_{2m+1}}+1\right)\mid (a_{2m+2}-1)\left(\frac{S}{a_{2m+1}}+1\right)$$Thus, $a_{2m+2}\mid \frac{S}{a_{2m+1}}+1$. But this means that $a_{2m+2}-1\le \frac{S}{a_{2m+1}}$, so $a_{2m+1}(a_{2m+2}-1)\le S=S_m$. In particular, since $a_{2m+1}$ and $a_{2m+2}$ are integers, we have $a_{2m+1}+a_{2m+2}-1\le S_m+1\le 2^{m+1}-1$ (since the sum of two integers with a product $P$ is at most $P+1$). Thus, $a_{2m+1}+a_{2m+2}\le 2^{m+1}$. Since $a_{2m+1}\ge 1$, we have $a_{2m+2}\le 2^{m+1}-1$, proving the second part of the inductive step. To prove the first part, just note that $S_{m+1}=S_m+a_{2m+1}+a_{2m+2}\le 2^{m+1}-2+2^{m+1}=2^{m+2}-2$. Thus by the inductive claim, we have $a_{2m}\le 2^m-1$ for all $m$ as desired. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
liekkas
370 posts
#5 • 3 Y
Y by Carpemath, Adventure10, Mango247
First observe that $\gcd (a_n,a_{n+1})=1$. Then I use induction to prove$$a_{2n} \le 2^n-1$$and $$S_{2n} \le 2^{n+1}-2$$By $\gcd (a_n,a_{n+1})=1$, we have $a_{2n}a_{2n+1} \mid S_{2n}$. Then it's enough to apply AM-GM inequality.


lol, seems to be similar as above. :maybe:
This post has been edited 1 time. Last edited by liekkas, Jun 28, 2018, 7:46 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rmtf1111
698 posts
#6 • 3 Y
Y by Carpemath, Adventure10, Mango247
whatshisbucket wrote:
Consider infinite sequences $a_1,a_2,\dots$ of positive integers satisfying $a_1=1$ and $$a_n \mid a_k+a_{k+1}+\dots+a_{k+n-1}$$for all positive integers $k$ and $n.$
These sequences seem very interesting. Any extensions?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Superguy
354 posts
#7 • 3 Y
Y by Carpemath, Adventure10, Mango247
Superguy wrote:
So here is my solution.
We see that in the sequence
$a_n|a_k+a_{k+1}+\cdots +a_{k+n-1}$
And after replacing (k) with (k+1),
$a_n|a_{k+1}+a_{k+2}+\cdots +a_{k+n}$
Subtracting both the equations we get,

$$a_{n+k}\equiv a_k\pmod{a_n}-(1)$$Which gives us a generalisation for all positive integers k and n.
I generate an arbitrary sequence $l_n$
Such that
$l_{2i}=2^i-1$
$l_{2i+1}=1$
For all Nonnegative integers i.
Claim-(1)
Claim-(2)
Using both our claims we can conclude that $l_n$ is also a type of sequence $a_n$.
Using our generalisation we get
$gcd(a_{n},a_{n+1})=1$
$\implies lcm(a_n,a_{n+1})=a_n.a_{n+1}|a_1+a_2+a_3\cdots +a_n$

Now if $a_{2m}\geq 2^m$ for some sequence of type $a_n$.
We get $a_{2m}.a_{2m-1}\leq a_1+a_2+a_3\cdots +a_{2m-1}$
$\implies 2^m-1\leq 2^m-1(a_{2m-1})\leq a_1+a_2+a_3\cdots +a_{2m-2}$
Now we are in a position to apply strong induction.
$\boxed{Claim-(3)}$

For all sequences $a_n$ ,
$2^m-1>a_1+a_2+a_3+\cdots +a_{2m-2}$

$\boxed{Proof}$

We will induct on m.
Base case:

$m=2$
$2^2-1=3>a_1+a_2=2$
$m=3$
$2^3-1=7>a_1+a_2+a_3+a_4=6(max)$
Inductive hypothesis

Assume for integers $m=(1,2,.....k)$ the statement holds true.
$\implies 2^k-1> a_1+a_2+\cdots +a_{2k-2}$
We need to prove for $m=k+1$
Now for $a_{2k-1}\geq 3$ and $a_{2k}\geq 4$
$a_{2k-1}+a_{2k}\leq (a_{2k-1})(a_{2k}-1)\leq 
a_1+a_2+a_3+a_+\cdots a_{2k-2}<2^k-1$
(Inductive hypothesis)
So in this case
$a_1+a_2+\cdots a_{2k}<2^k-1+2^k-1=2^{k+1}-2<2^{k+1}-1$
For the other cases,
If
$\boxed{a_{2k-1}=1}$
$a_{2k}\leq a_1+a_2+\cdots +a_{2k-2}+a. _{2k-1}<2^k-1+1=2^k$
So if $2^k>a_{2k}$ then $2^k\geq a_{2k}+1$
Thus $a_1+a_2+\cdots a_{2k}<2^k-1+2^k-1+1=2^{k+1}-1$

If
$\boxed{a_{2k}=1}$
$a_{2k-1}\leq a_1+a_2+\cdots +a_{2k-2}<2^k-1$
Thus again $a_1+a_2+\cdots a_{2k}<2^k-1+2^k-1+1=2^{k+1}-1$

If
$\boxed{a_{2k}=2}$ then clearly $a_{2k-1}=1$
So $a_1+a_2+\cdots a_{2k}<2^k-1+3<2^{k+1}-1$
For $k\geq 2$

If $a_{2k-1}=2$ and $a_{2k}=3$,
Again
$a_1+a_2+\cdots a_{2k}<2^k-1+5<2^{k+1}-1$
For $k\geq 3$

So we have tackled all the cases and our inductive step is complete. $\square$
So as per our last claim we can see that the statement that $a_{2m}\geq 2^m$ for some sequence $a_n$ is false.
So $$a_{2m}\leq 2^m-1$$As we can see that in sequence $l_n$
The max value of $a_{2m}$ appears as $2^m-1$.
Hence we conclude that maximum possible value of $a_{2m}=2^m-1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
TheDarkPrince
3042 posts
#8 • 3 Y
Y by Carpemath, Adventure10, Mango247
Main idea
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6870 posts
#9 • 6 Y
Y by Carpemath, Achillys, v4913, Hoto_Mukai, Adventure10, Mango247
For every even integer $n = 2m$ we will prove that $a_{n} \le 2^{m}-1$. To see this is attainable, consider the sequence \[ 	a_n = \begin{cases} 		1 & n \text{ odd} \\ 		2^{n/2}-1 & n \text{ even}. 	\end{cases} \]This can be checked to work, so we prove it's optimal.

We have $a_2 \mid a_1+a_2 = 1+a_2 \implies a_2 = 1$.

Now consider an integer $n$, and let $s = s_n =  a_1 + \dots + a_n$. Then \begin{align*} 	a_{n+1} &\mid s \\ 	a_{n+2} &\mid s + a_{n+1} \\ 	a_{n+2} &\equiv 1 \pmod{a_{n+1}}. \end{align*}Thus, $\gcd(a_{n+2}, a_{n+1}) = 1$. So $a_{n+2} \le \frac{s + a_{n+1}}{a_{n+1}}$, and thus \[ a_{n+1} + a_{n+2} \le 1 + a_{n+1} + \frac{s}{a_{n+2}} \le s+2. \]
So, we have \begin{align*} 	a_1 + a_2 &= 2 \\ 	a_3 + a_4 &\le 2+2 = 4 \\ 	a_5 + a_6 &\le (2+4)+2 = 8 \\ 	a_7 + a_8 &\le (2+4+8)+2 = 16 \\ 	&\vdots \\ 	a_{2m-1} + a_{2m} &\le 2^{m}. \end{align*}Thus $a_{2m} \le 2^{m} - a_{2m-1} \le 2^{m}-1$.

Remark: [Motivational notes] It's very quick to notice $a_{n+1} \mid a_1 + \dots + a_n$, which already means that given the first $n$ terms of the sequence there are finitely many possibilities for the next one. Thus it's possible to play with ``small cases'' by drawing a large tree.

When doing so, one might hope that somehow $a_n = a_1 + \dots + a_{n-1}$ is achievable, but quickly notices in such a tree that if $a_n$ is the sum of all previous terms, then $a_{n+1} = 1$ is forced. This gives the idea to try to look at the terms in pairs, rather than one at a time, and this gives the correct bound.

As for extracting the equality case from this argument, there are actually two natural curves to try. We have $a_3 \mid 1+1 = 2$. If we have $a_3 = 2$ we get $a_4 = 1$, $a_5 \le 5$, but then $a_6$ actually gets stuck. But if we have $a_3 = 1$ instead, we get $a_4 = 3$, $a_5 = 1$, $a_6 = 7$, and so on; pushing this gives the equality case above, seen to work. I think it's quite unnatural to guess the correct construction before having the corresponding $s+2$ estimate.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
p_square
442 posts
#10 • 5 Y
Y by Carpemath, MathbugAOPS, L567, Adventure10, Mango247
I think it's possible to completely characterize sequences $a$ for which \[ a_n \mid a_k + a_{k+1} + \cdots + a_{k+n-1} \]I would be thankful if someone could go through the attached pdf file and check if I have made any mistakes.

Note. I don't think I mentioned that I call a number $n$ important if $a_n>1$and esteemed if $a_n = \sum_{i=1}^{n-1}a_i$.

@below The problem only asks us to find the minimal possible value of $a_{2m}$. I found all sequences $a$ that satisfy the problem condition
Attachments:
ELMO_Type_Sequences.pdf (202kb)
This post has been edited 4 times. Last edited by p_square, Jul 31, 2020, 11:14 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Rickyminer
343 posts
#11 • 3 Y
Y by Carpemath, Adventure10, Mango247

I didn't see how you generalize it :maybe:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Idio-logy
206 posts
#13 • 1 Y
Y by Nathanisme
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blacksheep2003
1081 posts
#14
Y by
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IndoMathXdZ
691 posts
#15
Y by
whatshisbucket wrote:
Consider infinite sequences $a_1,a_2,\dots$ of positive integers satisfying $a_1=1$ and $$a_n \mid a_k+a_{k+1}+\dots+a_{k+n-1}$$for all positive integers $k$ and $n.$ For a given positive integer $m,$ find the maximum possible value of $a_{2m}.$

Proposed by Krit Boonsiriseth

Interesting problem. I claim that the answer is $\boxed{a_{2m} \le 2^m - 1}$ achieved by the sequence:
\begin{align*}
\begin{cases} a_{2k + 1} &= 1 \ \ \ \ \ \ \ \ \text{for } k \in \mathbb{N} \\
a_{2k} &= 2^k - 1 \ \text{for } k \in \mathbb{N}
\end{cases}
\end{align*}Claim 01 (Main Claim). For any $m \in \mathbb{N}$, $a_{2m - 1} + a_{2m} \le 2^{m}$.
Proof. To prove this, let us observe the sequence
\[ a_n \mid a_k + a_{k + 1} + \dots + a_{k + n - 1} \]This quickly gives us
\[ a_n \mid a_1 + a_2 + \dots + a_{n - 1} \ \text{and} \ a_n \mid a_{n + 1} - a_1 = a_{n + 1} - 1 \]Therefore,
\[ a_n \mid a_1 + a_2 + \dots + a_{n - 1} \]\[ a_{n + 1} \mid a_1 + a_2 + \dots + a_n = a_n \left( 1 + \frac{a_1 + a_2 + \dots + a_{n - 1}}{a_n} \right) \]Since $a_{n + 1} \equiv 1 \ (\text{mod} \ a_n)$, then $\gcd(a_n, a_{n + 1}) = 1$, and hence,
\[ a_{n + 1} \mid 1 + \frac{a_1 + a_2 + \dots + a_{n - 1}}{a_n} \]Therefore, we have $a_{n + 1} \le 1 + \frac{a_1 + a_2 + \dots + a_{n - 1}}{a_n}$.
Now, we'll induct. The statement is true for $m = 1$, as $a_1 = a_2 = 1$. Now, suppose that the statement is true for $m = k$. Then, we have
\[ a_{2k + 1} + a_{2k + 2} \le a_{2k + 1} + 1 + \frac{a_1 + a_2 + \dots + a_{2k}}{a_{2k + 1}} \le a_1 + a_2 + \dots + a_{2k} + 2 = (2^1) + (2^2) + \dots + (2^k) + 2 = 2^{k + 1}\]We are done.
To finish this, notice that $1 + a_{2m} \le a_{2m - 1} + a_{2m} \le 2^m \Rightarrow a_{2m} \le 2^m - 1$, we are done.

Remark. I think the hardest problem of this problem is figuring out the main claim and equality case. The main claim comes intuitively after trying to bash several small cases (drawing a diagram tree helps a lot). The main key here is the bounding part, for the bounding to be as strong as possible. The last part when inducting comes naturally (inspired a lot from 2018 A4 somehow) since the inequality focus on one variable $a_{2k + 1}$ and other terms are fixed.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Eyed
1065 posts
#16
Y by
The answer is $2^{1009} - 1$. The construction is as follows: Let $a_{2k+1} = 1, a_{2k} = 2^{k} - 1$. It's not hard to check that this works. We will prove this is maximal.

First, let $S_{n} = a_{1} + a_{2} + \ldots + a_{n}$. I claim $S_{2n-1}\leq 2^{n} - 1$. We can prove this by induction. If we let our base case be $n = 1$, we have $S_{1} = 1 \leq 2^{1} - 1 = 1$. For our inductive step, assume $S_{2n-1}\leq 2^{n} - 1$, we will prove $S_{2n + 1} \leq 2^{n+1} - 1$.

First, observe that $a_{2n} | a_{2n} + \ldots + a_{1} \Rightarrow a_{2n} | S_{2n-1}$. Next, observe that
\[a_{2n} | a_{2n} + \ldots + a_{1}, a_{2n+1} + a_{2n} + \ldots a_{2} \Rightarrow a_{2n} | a_{2n+1} - a_{1} = a_{2n+1} - 1\]Thus, $a_{2n+1} \equiv 1\mod a_{2n}$. Let $r$ be the number such that $a_{2n}r = S_{2n-1}$, and $k$ be the number such that $a_{2n+1} = ka_{2n} + 1$. By euclidean algorithm, $\gcd(a_{2n+1}, a_{2n}) = 1$. We also have
\[a_{2n+1} = | a_{2n+1} + a_{2n} + \ldots + a_{1}, a_{2n} + S_{2n-1} = a_{2n}(r+1)\]Since $\gcd(a_{2n+1}, a_{2n}) = 1$, this means $a_{2n+1} | r+1 \Rightarrow a_{2n+1}\leq r+1$. Then,
\[S_{2n+1} = S_{2n-1} + a_{2n} + a_{2n+1} \leq S_{2n-1} + a_{2n} + \frac{S_{2n-1}}{a_{2n}} + 1 \leq 2S_{2n-1} + 1 \leq 2^{n+1} - 1\]This proves our desired induction.

Now, observe that
\[a_{2018} | a_{2018} + a_{2017} + \ldots + a_{1} \Rightarrow a_{2018} | S_{2017}\]This means
\[a_{2018}\leq S_{2017} \leq 2^{1009} - 1\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anser
572 posts
#17
Y by
The answer is $2^m - 1$ achievable by the sequence
\[ a_i = \begin{cases} 1 & i \text{ is odd} \\ 2^{i/2}-1 & i \text{ is even}. \end{cases} \]
First, $a_{2m-1} \mid a_{2m} - a_1 = a_{2m} - 1$, so $\gcd(a_{2m-1}, a_{2m}) = 1$. Now since $a_{2m-1}, a_{2m} \mid a_1 + \cdots + a_{2m-1}$, we have
\[a_{2m-1}a_{2m} \le a_1 + \cdots + a_{2m-1} \implies a_{2m} \le \frac{a_1 + \cdots + a_{2m-2}}{a_{2m-1}} + 1.\]So
\begin{align*}
a_1 + \cdots + a_{2m} &= (a_1 + \cdots + a_{2m-2}) + a_{2m-1} + \frac{a_1 + \cdots + a_{2m-2}}{a_{2m-1}} + 1\\
&\le 2(a_1 + \cdots + a_{2m-2}) +2.
\end{align*}Noting that $a_2 = 1$, we inductively have $2a_{2m} \le a_1 + \cdots + a_{2m} \le 2(2^m - 1)$, giving $a_{2m}\le 2^m - 1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jj_ca888
2726 posts
#18
Y by
In general, we have the upper bound $a_{2m} \leq 2^m - 1$, where this is achievable by letting $a_{odd} = 1$ and $a_{2k} = 2^k - 1$: a quick check shows that this sequence does indeed work.

Note that $a_n \mid a_k + \ldots + a_{k + (n-1)}$ and $a_n \mid a_{k + 1} + \ldots + a_{k + n}$ hence $a_n \mid a_{k+n} - a_k$, always. Note that this means $a_{2k-1} \mid a_{2k} - 1$ for all $k$. Thus, it also follows that $a_{2k-1}, a_{2k}$ must always be relatively prime. Additionally, since the sum of any consecutive $r$ terms is divisible by $a_r$, note that $a_{2r}$ divides $a_1 + \ldots + a_{2r}$ and thus $a_1 + \ldots + a_{2r-1}$, and $a_{2r-1}$ also divides $a_1 + \ldots + a_{2r-1}$. Thus, we may arrive at the size bound\[a_{2r-1}a_{2r} \leq a_1 + \ldots + a_{2r - 1}\]for all positive integers $r$. We will induct to show that $a_{2r - 1} + a_{2r} \leq 2^r$ for all positive integers $r$. The base case is easy: note $a_2 \mid a_1 + a_2$ hence $a_2 = 1$, and $a_1 + a_2 = 2 \leq 2$. Now, we use strong induction; suppose $a_{2r - 1} + a_{2r} \leq 2^r$ up until $r = k$. Then,\[a_{2k+1}a_{2k+2} \leq (2^1 + \ldots + 2^k) + a_{2k+1} \iff a_{2k+1}(a_{2k+2} - 1) \leq 2(2^k - 1).\]It is known that if positive $ab = c$, then $a+b$ is maximized when $a$ is as small (but still positive) as possible (in fact, if they are positive integers, then $a + b \leq 1 + c$). Hence, if $a_{2k+1}(a_{2k+2} - 1) = P \leq 2(2^k - 1)$ then\[a_{2k+1} + (a_{2k+2} - 1) \leq 1 + P \leq 2^{k+1} - 1\]so indeed $a_{2k+1} + a_{2k+2} \leq 2^{k+1}$, finishing our induction.

This also finishes the problem: if $a_{2r-1} + a_{2r} \leq 2^r$ for all $r$, then $a_2r \leq 2^r - 1$ for all $r$.
This post has been edited 1 time. Last edited by jj_ca888, Jun 20, 2021, 4:41 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mijail
121 posts
#19
Y by
My answer is $a_{2m}= 2^m-1$, the example is $a_{2i}=2^i-1, a_{2i-1}=1$ for all $n$ positive integer.
Key claim: For all any positive integer $n$ : $a_{2n}+a_{2n-1} \leq 2^n$
Proof: We have that: $$a_n \mid a_k+a_{k+1}+\dots+a_{k+n-1},    a_n \mid a_{k+1}+a_{k+2}+\dots+a_{k+n} \implies a_n  \mid a_{k+n}-a_k$$
We have that $a_1=1$ so $a_n \mid a_{n+1}-1 \implies (a_n,a_{n+1})=1$, then:
$$a_n \mid a_1 + \dots+a_n $$$$   a_{n+1} \mid a_1+ \dots + a_{n+1} \implies a_{n+1} \mid a_1+ \dots + a_n $$$$ a_na_{n+1} \mid a_1+ \dots +a_n \implies a_{2n}a_{2n-1} \mid a_1+ \dots +a_{2n-1}$$And now we can prove the key claim with induction: $$a_{2n}a_{2n-1} \leq  (a_1+ \dots +a_{2n-1})+a_{2n} \leq 2^1+2^2+\dots +2^{n-1} + a_{2n-1}= 2^n-2+a_{2n-1} \implies a_{2n-1}(a_{2n}-1) \leq 2^n-2$$Finally if $a_{2n} \ge 2 \implies a_{2n-1}+(a_{2n}-1)-1 \leq a_{2n-1}(a_{2n}-1) \leq 2^n-2$ this implies the claim.
And if $a_{2n}=1\implies a_{2n-1} \mid a_1 + \dots + a_{2n-2} \implies a_{2n-1} \leq 2^n-2 \implies a_{2n}+a_{2n-1} \leq 2^n-1$

And with this $a_{2n}+a_{2n-1} \leq 2^n \implies a_{2n} \leq 2^n-1$ as desired. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NoctNight
108 posts
#20
Y by
The answer is $2^m-1$ - do this by considering $a_{2n}=2^i-1$ and $a_{2n-1}=1$ for positive integers $n$.

Key Claim: $a_n+a_{n+1}\leq a_1+\ldots +a_{n-1}+2=s_{n-1}+2$.
Proof: If $a_n=1$ then since $a_{n+1}\mid a_1+\ldots + a_n$ we have $a_n+a_{n+1}\leq a_n + s_n=s_{n-1}+2$.

If $a_{n+1}=1$ then $a_n\mid a_1+\ldots+a_{n-1}$ so $a_n+a_{n+1}\leq s_{n-1}+1\leq s_{n-1}+2$.

If $a_n,a_{n+1}\neq 1$ then since $a_n\mid a_1+\ldots +a_n$ and $a_2+\ldots +a_{n+1}$ we have $a_{n+1}=ka_n+1$ for some positive integer $k$. But $a_n$ and $ka_n+1=a_{n+1}\mid s_n$ so $a_n(ka_n+1)\mid s_n$ because $\gcd(a_n,ka_n+1)=1$. Thus,
$$a_n+a_{n+1}=(k+1)a_n+1\leq ka_n^2+1=a_n(ka_n+1)+1-a_n\leq s_n+1-a_n=s_{n-1}+1\leq s_{n-1}+2$$as needed.

Using the claim:
$a_{2m}+a_{2m-1}\leq (a_1+a_2)+\ldots+(a_{2m-3}+a_{2m-2})+2\leq 2+4+\ldots+2^m + 2\leq 2^m-2+2=2^m$. Thus, $a_{2m}\leq 2^m-a_{2m-1}\leq 2^m-1$.
This post has been edited 2 times. Last edited by NoctNight, May 17, 2023, 8:29 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
aleksijt
44 posts
#21
Y by
Here's a solution which classifies which numbers can and can't go to $1$. Denote $a_n=f(n)$.

Let $\mathcal{A}$ denote the numbers whose image isn't $1$ and $\mathcal{B}$ the rest.
Claim: If $a\in\mathcal{A}$, $b\in\mathcal{B}$ and $a<b$, then $b-a\in\mathcal{B}$.
Proof. Then $f(a)\mid f(b-a)-1$ and $f(b-a)\mid f(a)-1$. If neither are $1$, we get $f(a)<f(b-a)<f(a)$, absurd.

So if $\mathcal{A}$ has two coprime elements, $\mathcal{B}$ must be finite (linear sums of coprime numbers span $\mathbb{N}$ after some point). Well,
Claim: $\mathcal{B}$ is infinite.
Proof. $f(2)\mid 1$ so $f(2)=1$. Assume the contrary, and for $f(n)>1$ for $n\ge C$. Then \[f(n-1)\mid f(n)-1\text{ }(\spadesuit)\text{ and }f(n-2)\mid f(n)-1\text{ }(\heartsuit)\]so $f$ is increasing in $[C,+\infty)$ and $f$ is bounded below by some $n-c$. By the divisibility, $f(n)< (n-k)f(n-1)$ for sufficiently large $n$ depending on $k$. $f(n+1)\neq f(n)+1$ for all large $n$ we would have a contradiction because the sequence would be $\mathcal{O}(2^n)$. If $f(n-1)=f(n-2)+1$, from $(\spadesuit)$ and $(\heartsuit)$, \[f(n-1)(f(n-1)-1)\mid f(n)-1\Rightarrow f(n)>(n-1-c)f(n-1)\Rightarrow n-k>n-1-c\]and choosing $k>c+1$, we get a contradiction.


Because $2018=2\cdot 1009$, and if $f(1009)\neq1$ we wouldn't get a maximum, we get $f$ at odds is $1$ and at evens \[f(2k)\mid k+f(2)+f(4)+\dots+f(2k-2)\Longrightarrow f(2k)\le 2^k-1\]and equality can hold. Thus, \[f(2018)\le\boxed{2^{1009}-1.}\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CyclicISLscelesTrapezoid
372 posts
#22
Y by
this problem makes me so happy

The answer is $2^m-1$, achieved by the sequence $1,2^1-1,1,2^2-1,1,2^3-1,\ldots$. We show that this sequence satisfies the problem conditions. If $n$ is odd, then $a_n=1$, so $a_n \mid a_k+a_{k+1}+\cdots+a_{k+n-1}$. If $n$ is even, then let $a_k+a_{k+1}=2^m$. Notice that $a_{i+2}+a_{i+3}=2(a_i+a_{i+1})$ for all positive integers $i$, so $a_{k+2i}+a_{k+2i+1}=2^{m+i}$ for all positive integers $i$, so \[a_k+a_{k+1}+\cdots+a_{k+n-1}=2^m+2^{m+1}+\cdots+2^{m+n/2-1}=2^m(2^{n/2}-1)\]is divisible by $a_n=2^{n/2}-1$.

Now, we show that $a_{2m} \le 2^m-1$. Let $s_n=a_1+a_2+\cdots+a_n$ for all positive integers $n$.

Claim: $s_n \le 2s_{n-2}+2$ for all integers $n \ge 3$.

Proof: We have $a_n \mid s_n$, so $a_n \mid s_{n-1}$. We also have $a_{n-1} \mid s_{n-1}$. Notice that $a_{n-1} \mid s_n-1$, so $a_{n-1} \mid s_n-1-s_{n-1}=a_n-1$. Thus, $\gcd(a_{n-1},a_n)=1$, so $a_n \mid s_{n-1}$ and $a_{n-1} \mid s_{n-1}$ imply $a_{n-1}a_n \mid s_{n-1}$. Therefore, we have $a_{n-1}a_n \le s_{n-1}$, or $a_{n-1}(a_n-1) \le s_{n-2}$. If $a_n=1$, then $a_{n-1} \le s_{n-2}$, so $s_n=s_{n-2}+a_n+a_{n-1} \le 2s_{n-2}+1$, as desired. If $a_n \ne 1$, then $a_{n-1}+a_n-1 \le s_{n-2}+1$ by smoothing, so $a_{n-1}+a_n \le s_{n-2}+2$, which means $s_n \le 2s_{n-2}+2$, as desired. $\square$

We have $a_2=1$, so $s_2=2$. By induction using the previous claim, we have $s_{2m} \le 2^{m+1}-2$. Since $a_{2m} \le s_{2m-1}$, we have $a_{2m} \le 2^m-1$. $\square$
This post has been edited 2 times. Last edited by CyclicISLscelesTrapezoid, Sep 5, 2023, 9:24 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5000 posts
#23 • 1 Y
Y by centslordm
surprising

The answer is $2^m-1$, achieved by making $a_{2i-1}=1$ and $a_{2i}=2^i-1$ for all $i \geq 1$, which can be checked to work. In general, note that $a_k \equiv a_{k+n} \pmod{a_n}$ for all positive integers $k,n$. The following claim is the the main part of the problem.

Claim: We have $a_{2i-1}+a_{2i} \leq 2^i$ for all positive integers $i$.
Proof: This is by strong induction, with the base case of $i=1$ being clear. For $i \geq 2$, let $a_1+\cdots+a_{2i-2}=ka_{2i-1}$. Then, we should have $a_{2i} \equiv a_1=1 \pmod{a_{2i-1}}$ and $a_{2i} \mid a_1+\cdots+a_{2i-1}=(k+1)a_{2i-1}$. Therefore, we in fact have $a_{2i} \mid k+1$, so
$$a_{2i-1}+a_{2i} \leq a_{2i-1}+k+1 \leq ka_{2i-1}+2,$$where the last inequality is equivalent to $(k-1)(a_{2i-1}-1) \geq 0$. By summing the inductive hypothesis from $1$ to $i-1$, we find that $ka_{2i-1} \leq 2^i-2$, so the desired conclusion follows. $\blacksquare$

To finish, note that for our given value of $m$, we have $a_{2m} \leq 2^m-a_{2m-1} \leq 2^m-1$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
vsamc
3784 posts
#24 • 2 Y
Y by ihatemath123, centslordm
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathLuis
1466 posts
#25
Y by
Really nice NT sequence problem i would say.
First note that $a_n \mid a_{n+k}-a_k$ so we have $a_n \mid a_{n+1}-1$ so $\gcd(a_n, a_{n+1})=1$, also note that $a_2 \mid 1+a_2$ so $a_2=1$ and therefore $a_n \mid a_{n+2}-1$ so $\gcd(a_n, a_{n+2})=1$ as well. Now let $S_n=\sum_{i=1}^{n} a_i$, then we have $a_n \mid S_n$ but also $a_{n+1} \mid S_{n+1}=S_n+a_{n+1}$ so $a_{n+1} \mid S_n$ which means $a_na_{n+1} \mid S_n$ for all positive integers $n$.
Now i claim by induction that $S_{2n} \le 2^{n+1}-2$ and $a_{2n} \le 2^n-1$ are both true simultaneously, indeed base case $n=1$ is trivial as $S_2=2$ and $a_2=1$, now suppose it's true for $n=k$, we will prove it for $n=k+1$ this way:
$$a_{2k+2} \mid \frac{S_{2k+1}}{a_{2k+1}}=1+\frac{S_{2k}}{a_{2k+1}} \implies a_{2k+2} \le 1+S_{2k} \le 2^{k+1}-1$$$$a_{2k+2}a_{2k+1} \mid S_{2k+1} \implies a_{2k+1}(a_{2k+2}-1) \le S_{2k} \le 2^{k+1}-2 \implies a_{2k+1}+a_{2k+2} \le 2^{k+1} \implies S_{2k+2}=S_{2k}+a_{2k+1}+a_{2k+2} \le 2^{k+1}-2+2^{k+1}=2^{k+2}-2$$Therefore the induction is complete and our claim is true. Now to achieve equality we let $a_{2i+1}=1$ and $a_{2i}=2^i-1$ for all $i \in \mathbb Z_{>0}$ which trivially works, thus we are done :cool:.
This post has been edited 1 time. Last edited by MathLuis, Aug 22, 2024, 7:26 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SomeonesPenguin
123 posts
#26
Y by
Solution
This post has been edited 1 time. Last edited by SomeonesPenguin, Aug 19, 2024, 4:04 PM
Z K Y
N Quick Reply
G
H
=
a