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

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
May 1, 2025
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have an enriching summer experience. 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 upcoming events:
[list][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/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
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
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, 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
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
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
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
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

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
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
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
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
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
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

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
May 1, 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
Beautiful numbers in base b
v_Enhance   20
N 7 minutes ago by cursed_tangent1434
Source: USEMO 2023, problem 1
A positive integer $n$ is called beautiful if, for every integer $4 \le b \le 10000$, the base-$b$ representation of $n$ contains the consecutive digits $2$, $0$, $2$, $3$ (in this order, from left to right). Determine whether the set of all beautiful integers is finite.

Oleg Kryzhanovsky
20 replies
v_Enhance
Oct 21, 2023
cursed_tangent1434
7 minutes ago
Gcd(m,n) and Lcm(m,n)&F.E.
Jackson0423   0
16 minutes ago
Source: 2012 KMO Second Round

Find all functions \( f : \mathbb{N} \to \mathbb{N} \) such that for all positive integers \( m, n \),
\[
f(mn) = \mathrm{lcm}(m, n) \cdot \gcd(f(m), f(n)),
\]where \( \mathrm{lcm}(m, n) \) and \( \gcd(m, n) \) denote the least common multiple and the greatest common divisor of \( m \) and \( n \), respectively.
0 replies
Jackson0423
16 minutes ago
0 replies
3 variable FE with divisibility condition
pithon_with_an_i   0
18 minutes ago
Source: Revenge JOM 2025 Problem 1, Revenge JOMSL 2025 N2, Own
Find all functions $f:\mathbb{N} \rightarrow \mathbb{N}$ such that $$f(a)+f(b)+f(c) \mid a^2 + af(b) + cf(a)$$for all $a,b,c \in \mathbb{N}$.
0 replies
pithon_with_an_i
18 minutes ago
0 replies
c^a + a = 2^b
Havu   1
N 20 minutes ago by Havu
Find $a, b, c\in\mathbb{Z}^+$ such that $a,b,c$ coprime, $a + b = 2c$ and $c^a + a = 2^b$.
1 reply
+1 w
Havu
May 10, 2025
Havu
20 minutes ago
f(f(n))=2n+2
Jackson0423   0
22 minutes ago
Source: 2013 KMO Second Round

Let \( f : \mathbb{N} \to \mathbb{N} \) be a function satisfying the following conditions for all \( n \in \mathbb{N} \):
\[
\begin{cases}
f(n+1) > f(n) \\
f(f(n)) = 2n + 2
\end{cases}
\]Find the value of \( f(2013) \).
0 replies
Jackson0423
22 minutes ago
0 replies
Tangents involving a centroid with an isosceles triangle result
pithon_with_an_i   0
22 minutes ago
Source: Revenge JOM 2025 Problem 5, Revenge JOMSL 2025 G5, Own
A triangle $ABC$ has centroid $G$. A line parallel to $BC$ passing through $G$ intersects the circumcircle of $ABC$ at a point $D$. Let lines $AD$ and $BC$ intersect at $E$. Suppose a point $P$ is chosen on $BC$ such that the tangent of the circumcircle of $DEP$ at $D$, the tangent of the circumcircle of $ABC$ at $A$ and $BC$ concur. Prove that $GP = PD$.

Remark 1
Remark 2
0 replies
pithon_with_an_i
22 minutes ago
0 replies
Thailand MO 2025 P2
Kaimiaku   2
N 27 minutes ago by carefully
A school sent students to compete in an academic olympiad in $11$ differents subjects, each consist of $5$ students. Given that for any $2$ different subjects, there exists a student compete in both subjects. Prove that there exists a student who compete in at least $4$ different subjects.
2 replies
Kaimiaku
Today at 7:38 AM
carefully
27 minutes ago
Aime 2005a #15
4everwise   22
N 29 minutes ago by Ilikeminecraft
Source: Aime 2005a #15
Triangle $ABC$ has $BC=20$. The incircle of the triangle evenly trisects the median $AD$. If the area of the triangle is $m \sqrt{n}$ where $m$ and $n$ are integers and $n$ is not divisible by the square of a prime, find $m+n$.
22 replies
4everwise
Nov 10, 2005
Ilikeminecraft
29 minutes ago
Problem 2 (First Day)
Valentin Vornicu   84
N 44 minutes ago by cj13609517288
Find all polynomials $f$ with real coefficients such that for all reals $a,b,c$ such that $ab+bc+ca = 0$ we have the following relations

\[ f(a-b) + f(b-c) + f(c-a) = 2f(a+b+c). \]
84 replies
Valentin Vornicu
Jul 12, 2004
cj13609517288
44 minutes ago
Maximum number of divisor in Binom Coeff.
nataliaonline75   0
an hour ago
Let $k \geq 2$, determine the maximal number of divisors from $n \choose k $ may have in the range $n-k+ 1,...,n$ , as $n$ runs through integers $\geq k$.
0 replies
nataliaonline75
an hour ago
0 replies
Nice geometry...
Sadigly   1
N an hour ago by aaravdodhia
Source: Azerbaijan Senior NMO 2020
Let $ABC$ be a scalene triangle, and let $I$ be its incenter. A point $D$ is chosen on line $BC$, such that the circumcircle of triangle $BID$ intersects $AB$ at $E\neq B$, and the circumcircle of triangle $CID$ intersects $AC$ at $F\neq C$. Circumcircle of triangle $EDF$ intersects $AB$ and $AC$ at $M$ and $N$, respectively. Lines $FD$ and $IC$ intersect at $Q$, and lines $ED$ and $BI$ intersect at $P$. Prove that $EN\parallel MF\parallel PQ$.
1 reply
Sadigly
Sunday at 10:17 PM
aaravdodhia
an hour ago
Inspired by lbh_qys.
sqing   5
N an hour ago by sqing
Source: Own
Let $ a,b>0   $ . Prove that
$$ \frac{a}{a^2+a +b+1}+ \frac{b}{b^2+a +b+1}  \leq  \frac{1}{2} $$$$ \frac{a}{a^2+ab+a+b+1}+ \frac{b}{b^2+ab+a+b+1} \leq   \sqrt 2-1  $$$$\frac{a}{a^2+ab+a+1}+ \frac{b}{b^2+ab+b+1} \leq  \frac{2(2\sqrt 2-1)}{7} $$$$\frac{a}{a^2+ab+b+1}+ \frac{b}{b^2+ab+a+1} \leq  \frac{2(2\sqrt 2-1)}{7} $$
5 replies
sqing
Today at 3:45 AM
sqing
an hour ago
AM=CN in Russia
mathuz   25
N an hour ago by Ilikeminecraft
Source: AllRussian-2014, Grade 11, day1, P4
Given a triangle $ABC$ with $AB>BC$, $ \Omega $ is circumcircle. Let $M$, $N$ are lie on the sides $AB$, $BC$ respectively, such that $AM=CN$. $K(.)=MN\cap AC$ and $P$ is incenter of the triangle $AMK$, $Q$ is K-excenter of the triangle $CNK$ (opposite to $K$ and tangents to $CN$). If $R$ is midpoint of the arc $ABC$ of $ \Omega $ then prove that $RP=RQ$.

M. Kungodjin
25 replies
mathuz
Apr 29, 2014
Ilikeminecraft
an hour ago
IMO 2010 Problem 6
mavropnevma   41
N an hour ago by pi271828
Let $a_1, a_2, a_3, \ldots$ be a sequence of positive real numbers, and $s$ be a positive integer, such that
\[a_n = \max \{ a_k + a_{n-k} \mid 1 \leq k \leq n-1 \} \ \textrm{ for all } \ n > s.\]
Prove there exist positive integers $\ell \leq s$ and $N$, such that
\[a_n = a_{\ell} + a_{n - \ell} \ \textrm{ for all } \ n \geq N.\]

Proposed by Morteza Saghafiyan, Iran
41 replies
mavropnevma
Jul 8, 2010
pi271828
an hour ago
ISL 2023 C2
OronSH   11
N Apr 24, 2025 by zRevenant
Source: ISL 2023 C2
Determine the maximal length $L$ of a sequence $a_1,\dots,a_L$ of positive integers satisfying both the following properties:
[list=disc]
[*]every term in the sequence is less than or equal to $2^{2023}$, and
[*]there does not exist a consecutive subsequence $a_i,a_{i+1},\dots,a_j$ (where $1\le i\le j\le L$) with a choice of signs $s_i,s_{i+1},\dots,s_j\in\{1,-1\}$ for which \[s_ia_i+s_{i+1}a_{i+1}+\dots+s_ja_j=0.\][/list]
11 replies
OronSH
Jul 17, 2024
zRevenant
Apr 24, 2025
ISL 2023 C2
G H J
G H BBookmark kLocked kLocked NReply
Source: ISL 2023 C2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1747 posts
#1 • 4 Y
Y by KevinYang2.71, peace09, nchuong1312, aidan0626
Determine the maximal length $L$ of a sequence $a_1,\dots,a_L$ of positive integers satisfying both the following properties:
  • every term in the sequence is less than or equal to $2^{2023}$, and
  • there does not exist a consecutive subsequence $a_i,a_{i+1},\dots,a_j$ (where $1\le i\le j\le L$) with a choice of signs $s_i,s_{i+1},\dots,s_j\in\{1,-1\}$ for which \[s_ia_i+s_{i+1}a_{i+1}+\dots+s_ja_j=0.\]
This post has been edited 1 time. Last edited by OronSH, Jul 17, 2024, 12:28 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MarkBcc168
1595 posts
#2 • 5 Y
Y by OronSH, peace09, GrantStar, megarnie, aidan0626
Buffed version: replace $2^{2023}$ with any positive integer $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EeEeRUT
75 posts
#3 • 2 Y
Y by Quidditch, Want-to-study-in-NTU-MATH
Solved with Quidditch
The answer is \( L = 2^{2024} - 1 \). Next, we will demonstrate that there exists a sequence of length \( 2^{2024} - 1 \) that satisfies the conditions.

We will proceed with mathematical induction on \( n \), where \( a_i \leqslant 2^n \), showing that there exists a sequence of length \( 2^{n+1} - 1 \) that satisfies this condition.

1. Base case: Considering \( n = 1 \), a sequence of length \( 2^2 - 1 = 3 \) is possible. Clearly, the sequence \( 2, 1, 2 \) satisfies this.

2. Inductive step: Let \( a_1, a_2, \dots, a_{2^n-1} \) be a sequence that satisfies \( a_i \leqslant 2^{n-1} \). Consider the sequence:
- Double each element: \( 2a_1, 2a_2, \dots, 2a_{2^n-1} \) denoted as \( A \).
- Append \( 1 \) after \( A \).
- Reverse \( A \) and append it again after \( 1 \). Denote this sequence as \( B \).$$\underbrace{2a_1,2a_2,\dots,2a_{2^n-1}}_A,1,\underbrace{2a_{2^n-1},\dots,2a_2,2a_1}_B$$
It can be shown that every term in the sequence \( A \cup \{1\} \cup B \) is less than or equal to \( 2 \cdot 2^{n-1} = 2^n \). If there exists a subsequence \( k_i, k_{i+1}, \dots, k_j \) in \( A \) such that \( s_i k_i + s_{i+1} k_{i+1} + \dots + s_j k_j = 0 \), then:
\[
   s_i \left( \frac{k_i}{2} \right) + s_{i+1} \left( \frac{k_{i+1}}{2} \right) + \dots + s_j \left( \frac{k_j}{2} \right) = 0
   \]which contradicts the assumption from the induction hypothesis of case \( n-1 \). Similarly, if such a subsequence exists in \( B \), it contradicts the assumption from the induction hypothesis of case \( n-1 \). Therefore, the subsequence must include \( 1 \), which clearly contradicts the assumption because the sum of an odd number with an even number cannot be \( 0 \).

Thus, the sequence defined above has a length of \( 2^{n+1} - 1 \) and satisfies the condition.

3. Conclusion: Therefore, if \( a_i \leqslant 2^{2023} \), there exists a sequence of length \( 2^{2024} - 1 \).

Next, we will demonstrate that there is no sequence of length \( 2^{2024} \) that satisfies the above conditions.

Consider \( a_1, a_2, \dots, a_{2^{2024}} \). We will demonstrate by finding contradictions, assuming that there is no \( \pm a_i \pm a_{i+1} \dots \pm a_{j} = 0 \), when \( 1 \leqslant i \leqslant j \leqslant 2^{2024} \).$$b_{i+1}=\left\{\begin{array}{l}{b_i - a_{i+1}\text{ if }b_i>0}\\{b_i + a_{i+1}\text{ if }b_i<0}\end{array}\right.$$
By considering the sequence \( b_i \), which is defined by \( b_1 = a_1 \) and for any integer \( i \) where \( 1 \leqslant i \leqslant 2^{2024} \), it is easy to see that:
\[ b_i = s_1 a_1 + s_2 a_2 + s_3 a_3 + \dots + s_i a_i \]where \( s_1, s_2, \dots, s_i \in \{1, -1\} \), defined by \( s_k = \text{sgn}(b_{k-1}) \) for all integers \( k \) where \( 1 < k \leq i \), and \( s_1 = 1 \).

We can observe that for every \( i \), it holds that \( -(2^{2023} - 1) \leq b_i \leq 2^{2023} \).

Since:
\[ -(2^{2023} - 1) \leq b_i \leq 2^{2023} \]
The possible values of \( b_i \) are:
\[ -(2^{2023} - 1), -(2^{2023} - 2), \dots, -1, 1, 2, \dots, 2^{2023} \]
There are \( 2^{2024} \) possible values for \( b_i \). However, the sequence \( b_i \) consists of \( 2^{2024} \) elements.

By the pigeonhole principle, at least two numbers in the sequence \( b_i \) must be equal. Suppose \( b_s \) and \( b_t \) are equal, where \( s < t \). Then:
\[ b_t - b_s = 0 \Rightarrow s_{s+1} a_{s+1} + s_{s+2} a_{s+2} + \dots + s_t a_t = 0 \]
This contradicts our earlier assumption that there is no subsequence \( \pm a_i \pm a_{i+1} \dots \pm a_{j} = 0 \).

Therefore, we can conclude that there does not exist a sequence of length \( 2^{2024} \) that satisfies the conditions outlined.
This post has been edited 1 time. Last edited by EeEeRUT, Mar 20, 2025, 2:47 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Marinchoo
407 posts
#4 • 3 Y
Y by lomta, isomoBela, TensorGuy666
The answer is $L = 2^{k+1}-1$ where $2023$ is replaced by $k$. Call a consecutive subsequence $a_i, a_{i+1}, \ldots, a_j$ bad if there exist $s_i, s_{i+1}, \ldots, s_j\in\{-1, 1\}$ such that
\[a_is_i+a_{i+1}s_{i+1}+\ldots+a_js_j=0.\]The construction for $L = 2^{k+1} - 1$ is by induction: start with the sequence $s_1 = 1$ for $k=1$ and construct the sequence $s_{k+1}$ as $2\cdot s_k, 1, 2\cdot s_k$ (that is, $s_{k+1}$ is two copies of the elements of $s_k$, multiplied by $2$, separated by a $1$). If $s_k$ has no bad subsequence, so does $s_{k+1}$ due to parity and the induction hypothesis on the two copies of $s_k$.

To prove $L = 2^k$ doesn't work, we fix signs for each $a_i$ by focusing on the prefixes. That is, we start by picking $s_1 = 1$ and then pick $s_{i+1}$ depending on the previously picked $s_1, s_2, \ldots, s_i$, adhering to the following rules:
  • If $a_1s_1+a_2s_2+\ldots+a_is_i < 2^{k}$, then $s_{i+1} = 1$.
  • Else, $s_{i+1} = -1$.
Note that at any point, the prefix sum $c_i = a_1s_1+a_2s_2+\ldots+a_is_i$ is non-negative and strictly less than $2^{k+1}$ as $1\leq a_i\leq 2^k$. Therefore, there exists an index $i$ with $c_i=0$, which corresponds to a bad subsequence, or two indices $i<j$, such that $c_i=c_j$. However, $c_j - c_i = 0$, so $a_i, a_{i+1}, \ldots, a_j$ is a bad subsequence, and we're done once again. This finishes.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tyx2019
22 posts
#5 • 1 Y
Y by NCbutAN
The answer is $2^{n+1}-1$ where we replace $2023$ with $n$. The construction is the same as the ones provided above.

Lemma
Proof
The rest
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MarkBcc168
1595 posts
#6
Y by
Since no one has posted the solution to the buffed version yet, I will.

If we replace $2^{2023}$ with general $n$, the answer is $L=2^{k+1}-1$ where $k=\lfloor\log_2 n\rfloor$.

Construction for $\boldsymbol{n=2^k}$ and $\boldsymbol{L=2^{k+1}-1}$

We take $a_i=2^{k-\nu_2(i)}$. For example, if $k=3$, then the sequence is
$$8\ 4\ 8\ 2\ 8\ 4\ 8\ \textbf 1\ 8\ 4\ 8\ 2\ 8\ 4\ 8.$$To see why this works, note that the subsequence cannot go through $1$ in the middle (otherwise, the sum is odd). Thus, it must be strictly within the left half or the right half. However, each half is the construction for $k-1$ multiplied by $2$, so we can repeat this argument to realize that no subsequence and signing work.
Bound for $\boldsymbol{n=2^{k+1}-1}$ and $\boldsymbol{L=2^{k+1}}$

We use induction on $k$. The base case $k=0$ is clear. For the inductive step, the idea is to consider the partial sums $s_i = a_1+a_2+\dots+a_i$ (and $s_0=0$). We have $2^{k+1}+1$ of these, so by Pigeonhole, at least $2^k+1$ of these have the same parity. This means that we can split group the numbers into $2^k$ blocks so that each block has even sum. For example, if if $L = 8$ and $s_1$, $s_3$, $s_4$, $s_5$, $s_8$ have the same parity, then the blocks are $(a_2\ a_3)\ (a_4)\ (a_5)\ (a_6\ a_7\ a_8)$.

Within each block, we may choose $\pm$ signs so that the results is in $[0, 2^{k+1}-2]$ (by choosing one by one and maintain that interval). If any of these were $0$, we are done. Otherwise, we divide the result of each block by $2$. We then get $2^k$ numbers in $[1, 2^k-1]$, and so we can use the induction hypothesis for $k-1$. Done.
This post has been edited 2 times. Last edited by MarkBcc168, Aug 17, 2024, 8:32 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blackbluecar
303 posts
#7
Y by
Replace $2023$ with $n$. We claim the answer is $L=2^{n+1}-1$.

First, we consider the following sequences of integers $A_0,A_1, \ldots$
\[ A_0=1 \]\[ A_1=2, 1, 2 \]\[ A_2=4, 2, 4, 1, 4, 2, 4\]\[ A_3=8, 4, 8, 2, 8, 4, 8, 1, 8, 4, 8, 2, 8, 4, 8 \]\[ \cdots \]To get from $A_k$ to $A_{k+1}$, we slot $2^{k+1}$ between any pair of numbers, as well as the two ends. We claim that $A_n$ is our desired equality case for $L=2^{n+1}-1$. First, we note that $A_n$ has length $2^{n+1}-1$ and has no entries exceeding $2^n$.

Notice that in this construction, given any consecutive instances of $2^m$, the entry at their midpoint is strictly less than $2^m$. Thus, given any contiguous block $B$ in $A_n$, the minimal element appears exactly once. So, we cannot partition $B$ into two multisets with equal sum, since the multiset with the unique minimum in $B$ will have a sum with a strictly lower $\nu_2$.

Now, all that is left to show is that $L \geq 2^{n+1}$ has such a contiguous block. AFTOC that no such block exists. Consider a sequence $e_1,e_2, \ldots, e_L \in \{-1,1\}$ with the following inductive definition
\[ e_k = 
    \begin{cases}
        1 & \text{if } e_1a_1+e_2a_2+ \cdots e_ka_k \leq 0\\
        -1 &  \text{otherwise}
    \end{cases} \]
It follows that $|e_1a_1+\cdots +e_ka_k| \leq 2^n$ for all $k \leq L$. By our assumption, $e_1a_1+\cdots +e_ka_k \not = 0$ for any $k$. Moreover, if $k \geq 2$ and $e_1a_1+\cdots +e_ka_k = \pm 2^n$ then $e_1a_1+\cdots +e_{k-1}a_{k-1} = 0$ which contradicts our assumption. Thus, if we consider the set $S$ denoting all possible values of $e_1a_1+\cdots +e_ka_k$ we see that $0 \not \in S$ and at least one of $2^n$ or $-2^n$ are not in $S$. Thus, $|S| \leq 2^{n+1}-1$ implying by PHP that some $d \in S$ appears at least \[ \left \lceil \frac{2^{n+1}}{|S|} \right \rceil \geq 2 \]times in $S$. Thus, there is some $i<j$ where \[ e_1a_1+\cdots +e_ia_i = e_1a_1+\cdots +e_ja_j = d \]but then, \[ e_{i+1}a_{i+1}+ \cdots +e_ja_j =0 \]Contradicting our assumption. $\blacksquare$
This post has been edited 4 times. Last edited by blackbluecar, Jul 29, 2024, 12:47 AM
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
#8
Y by
We claim the answer is $2^{n+1} - 1$ for general $2^n$.

The construction follows by making $\nu_2(a_i) = n - \nu_2(i)$. For example, when $n = 3$, we get construction $8\:4\:8\:2\:8\:4\:8\:1\:8\:4\:8\:2\:8\:4\:8$. One can see that either $i \le j < 8$ or $8 < i \le j$, since otherwise, the sum would have exactly one factor of $2$ which presents a contradiction. This split the construction into two halves. So divide by $2$ for the remaining halves and repeat the argument.

We will use induction to prove the bound, with the base case of $n = 1$ not being hard to see as the maximal sequence is $2, 1, 2$. We will now assume that for any $2^{n-1}$ positive integers less than $2^{n-2}$, there will be a consecutive subsequence that can be made into $0$ and prove that any sequence of length $2^{n}$ has a subsequence that can be made into $0$. Let the positions of the odd terms be $a_{n_1}, a_{n_2}, \ldots, a_{n_k}$ where $\{n_i\}_{i=1}^k$ is an increasing sequence. We can combine terms $a_{n_{2k-1}}, \ldots, a_{n_{2k}}$, picking signs to ensure that $|e_{n_{2k-1}}a_{n_{2k-1} + \cdots + e_{n_{2k}}a_{n_{2k}}}| \le 2^{n-1}$. If it is $0$, we have found a subsequence, so assume not. Now we get that the all terms are even. So divide by $2$ and apply the inductive hypothesis. If there are not enough terms, consider combining terms $a_{n_{2k}}, \ldots, a_{n_{2k+1}}$ instead and now this is guaranteed to have at least $2^{n-1}$ terms, so we are done by induction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SomeonesPenguin
129 posts
#9
Y by
The answer is $2^{n+1}-1$ in general (numbers are less than $2^{n}$).

Proof

Construction
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1918 posts
#10 • 2 Y
Y by OronSH, puffypundo
The answer is $\boxed{2^{2024}-1}$, achieved by the sequence $a_k=2^{2023-\nu_2(k)}$.

To prove that $2^{2024}$ is impossible, consider starting from $0$, and for each new term in the sequence, either adding or subtracting it to stay within $[-(2^{2023}-1),2^{2023}]$. Note that if we ever repeat a number or get to $0$, we lose, because then we just found a substring that works. But there are only $2^{2024}-1$ nonzero numbers in this interval, contradiction. $\blacksquare$
This post has been edited 1 time. Last edited by cj13609517288, Aug 19, 2024, 1:17 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Aiden-1089
293 posts
#11
Y by
The answer is $2^{2024}-1$.
For any sequence $a_1, \dots, a_L$, define $b_i$ for $0 \leq i \leq L$ and $s_i$ for $1 \leq i \leq L$ as follows:
$b_0=0, s_i = \begin{cases} 1 & \text{if } b_{i-1}  \leq 0 \\ -1 &\text{if } b_{i-1}>0 \end{cases}, b_i=b_{i-1}+s_ia_i$ for $1 \leq i \leq L$.
Note that if $b_i=b_j$ for some $i<j$, then $s_{i+1}a_{i+1} + \cdots + s_ja_j =0$.

We claim that $-2^{2023} < b_i \leq 2^{2023}$ for all $i$. We prove this by induction.
Clearly this is true for $i=0$.
For $i>0$, if $b_{i-1} \leq 0$, that means $-2^{2023}<-2^{2023}+a_i<b_i=b_{i-1}+a_i \leq 0+2^{2023}=2^{2023}$. If $b_{i-1}>0$, $-2^{2023}=0-2^{2023}<b_i=b_{i-1}-a_i \leq 2^{2023}-a_i < 2^{2023}$, so we are done.
Then, if $L+1>2^{2023}+2^{2023}=2^{2024}$, there must exist $b_i=b_j$ where $i<j$ by pigeonhole principle. So $L \geq 2^{2024}-1$.

We now give a construction for $L=2^{2024}-1$.
Put $a_i=2^{2023-\nu_2(i)}$ for $1 \leq L \leq 2^{2024}$. Assume there exists $i \leq j$, $s_i, \dots, s_j$ such that the sum $S=s_ia_i+ \cdots s_ja_j=0$.
If $i \leq 2^{2023} \leq j$, then $S \equiv 1 \pmod{2}$, contradiction. Since $a_i=2^{2023-\nu_2(i)}=2^{2023-\nu_2(2^{2024}-i)}=a_{2^{2024}-i}$, we may WLOG assume $i,j <2^{2023}$.
Then if $i \leq 2^{2022} \leq j$, then $S \equiv 2 \pmod{4}$, which is again a contradiction. $a_i=2^{2023-\nu_2(i)}=2^{2023-\nu_2(2^{2023}-i)}=a_{2^{2023}-i}$, so WLOG assume $i,j < 2^{2022}$.
Inductively, we may show that $i,j<2^1$, so $i=j=1$, contradiction. So this construction works, so we are done. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
zRevenant
14 posts
#12
Y by
Answer: $2^{2024}-1$.

Construction:

Let's define sequence $A_0$ as just number $1$. For convenience we will mean sequence $kB$ as sequence $B$, every term of which is increased by $k$ times. Now, define other sequences recurrently:

$A_{n+1}=2A_n, 1, 2A_n$

For example, $A_1=212$ and $A_2=4241424$.

Now, this construction works because there is only one $1$ meaning that by parity if it is included in the $s_i, ..., s_j$ the sum can't be zero. On the other hand, the parts on the $RHS$ and $LHS$ of $1$ are working by induction.

Bound:

We will prove by induction a stronger statement, that if we have a sequence bigger than that, we can find a sequence of '+' and '-' such that the amount of '+' equals to the amount of '-'. Suppose that we have a sequence of length greater or equal to $2^{n+1}-1$ if $a_i \le 2^n$. Then, we may assume that the sequence has exactly $2^{n+1}$ terms, say $a_1, a_2, ..., a_{2^{n+1}}$. We then define $b_i=\mid a_{2i} - a_{2i-1} \mid$. This gives us $2^n$ numbers that are between $0$ and $2^n$. Let $c_i=b_i-2^{n-1}$. By induction, we can assume that this sequence $c_i$ has a sequence of '+' and '-' that we searched for. Then the sequence $b_i$ can be put into $0$ yet we discard our statement about the amount of '+' and '-'. However, because of $b_i$'s definition, when we put signs next to $a_{2i}$ and $a_{2i-1}$ these signs will be different (that form $b_i$). Therefore the amount of '+' and '-' is again equal so induction is complete.
This post has been edited 1 time. Last edited by zRevenant, Apr 24, 2025, 9:47 AM
Z K Y
N Quick Reply
G
H
=
a