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
Thursday at 11:16 PM
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
Thursday at 11:16 PM
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
JBMO Shortlist 2022 A2
Lukaluce   13
N 24 minutes ago by Rayvhs
Source: JBMO Shortlist 2022
Let $x, y,$ and $z$ be positive real numbers such that $xy + yz + zx = 3$. Prove that
$$\frac{x + 3}{y + z} + \frac{y + 3}{z + x} + \frac{z + 3}{x + y} + 3 \ge 27 \cdot \frac{(\sqrt{x} + \sqrt{y} + \sqrt{z})^2}{(x + y + z)^3}.$$
Proposed by Petar Filipovski, Macedonia
13 replies
Lukaluce
Jun 26, 2023
Rayvhs
24 minutes ago
A very beautiful geo problem
TheMathBob   4
N an hour ago by ravengsd
Source: Polish MO Finals P2 2023
Given an acute triangle $ABC$ with their incenter $I$. Point $X$ lies on $BC$ on the same side as $B$ wrt $AI$. Point $Y$ lies on the shorter arc $AB$ of the circumcircle $ABC$. It is given that $$\angle AIX = \angle XYA = 120^\circ.$$Prove that $YI$ is the angle bisector of $XYA$.
4 replies
TheMathBob
Mar 29, 2023
ravengsd
an hour ago
Inspired by old results
sqing   6
N an hour ago by Jamalll
Source: Own
Let $ a,b>0 , a^2+b^2+ab+a+b=5 . $ Prove that
$$ \frac{ 1 }{a+b+ab+1}+\frac{6}{a^2+b^2+ab+1}\geq \frac{7}{4}$$$$ \frac{ 1 }{a+b+ab+1}+\frac{1}{a^2+b^2+ab+1}\geq \frac{1}{2}$$$$  \frac{41}{a+b+2}+\frac{ab}{a^3+b^3+2} \geq \frac{21}{2}$$
6 replies
sqing
Apr 29, 2025
Jamalll
an hour ago
A Duality Operation on Decreasing Integer Sequences
Ritangshu   0
an hour ago
Let \( S \) be the set of all sequences \( (a_1, a_2, \ldots) \) of non-negative integers such that
(i) \( a_1 \geq a_2 \geq \cdots \); and
(ii) there exists a positive integer \( N \) such that \( a_n = 0 \) for all \( n \geq N \).

Define the dual of the sequence \( (a_1, a_2, \ldots) \in S \) to be the sequence \( (b_1, b_2, \ldots) \), where, for \( m \geq 1 \),
\( b_m \) is the number of \( a_n \)'s which are greater than or equal to \( m \).

(i) Show that the dual of a sequence in \( S \) belongs to \( S \).

(ii) Show that the dual of the dual of a sequence in \( S \) is the original sequence itself.

(iii) Show that the duals of distinct sequences in \( S \) are distinct.
0 replies
Ritangshu
an hour ago
0 replies
Property of a function
Ritangshu   0
an hour ago
Let \( f(x, y) = xy \), where \( x \geq 0 \) and \( y \geq 0 \).
Prove that the function \( f \) satisfies the following property:

\[
f\left( \lambda x + (1 - \lambda)x',\; \lambda y + (1 - \lambda)y' \right) > \min\{f(x, y),\; f(x', y')\}
\]
for all \( (x, y) \ne (x', y') \) and for all \( \lambda \in (0, 1) \).

0 replies
Ritangshu
an hour ago
0 replies
Subset of digits to express as a sum
anantmudgal09   46
N an hour ago by anudeep
Source: INMO 2020 P3
Let $S$ be a subset of $\{0,1,2,\dots ,9\}$. Suppose there is a positive integer $N$ such that for any integer $n>N$, one can find positive integers $a,b$ so that $n=a+b$ and all the digits in the decimal representations of $a,b$ (expressed without leading zeros) are in $S$. Find the smallest possible value of $|S|$.

Proposed by Sutanay Bhattacharya

Original Wording
46 replies
anantmudgal09
Jan 19, 2020
anudeep
an hour ago
A problem on functions on sets
Ritangshu   0
an hour ago
For a finite set $A$, let $|A|$ denote the number of elements in the set $A$.

(a) Let $F$ be the set of all functions
\[ f : \{1, 2, \ldots, n\} \to \{1, 2, \ldots, k\} \quad \text{with } n \geq 3,\; k \geq 2 \]satisfying the condition:
\[ f(i) \ne f(i+1) \quad \text{for every } i,\; 1 \leq i \leq n-1. \]Show that
\[ |F| = k(k-1)^{n-1}. \]
(b) Let $c(n, k)$ denote the number of functions in $F$ satisfying $f(n) \ne f(1)$.
For $n \geq 4$, show that
\[ c(n, k) = k(k-1)^{n-1} - c(n-1, k). \]
(c) Using part (b), prove that for $n \geq 3$,
\[ c(n, k) = (k-1)^n - (-1)^n(k-1). \]
0 replies
Ritangshu
an hour ago
0 replies
Arbitrary point on BC and its relation with orthocenter
falantrng   29
N an hour ago by optimusprime154
Source: Balkan MO 2025 P2
In an acute-angled triangle \(ABC\), \(H\) be the orthocenter of it and \(D\) be any point on the side \(BC\). The points \(E, F\) are on the segments \(AB, AC\), respectively, such that the points \(A, B, D, F\) and \(A, C, D, E\) are cyclic. The segments \(BF\) and \(CE\) intersect at \(P.\) \(L\) is a point on \(HA\) such that \(LC\) is tangent to the circumcircle of triangle \(PBC\) at \(C.\) \(BH\) and \(CP\) intersect at \(X\). Prove that the points \(D, X, \) and \(L\) lie on the same line.

Proposed by Theoklitos Parayiou, Cyprus
29 replies
falantrng
Apr 27, 2025
optimusprime154
an hour ago
Strange angle condition and concyclic points
lminsl   127
N an hour ago by reni_wee
Source: IMO 2019 Problem 2
In triangle $ABC$, point $A_1$ lies on side $BC$ and point $B_1$ lies on side $AC$. Let $P$ and $Q$ be points on segments $AA_1$ and $BB_1$, respectively, such that $PQ$ is parallel to $AB$. Let $P_1$ be a point on line $PB_1$, such that $B_1$ lies strictly between $P$ and $P_1$, and $\angle PP_1C=\angle BAC$. Similarly, let $Q_1$ be the point on line $QA_1$, such that $A_1$ lies strictly between $Q$ and $Q_1$, and $\angle CQ_1Q=\angle CBA$.

Prove that points $P,Q,P_1$, and $Q_1$ are concyclic.

Proposed by Anton Trygub, Ukraine
127 replies
lminsl
Jul 16, 2019
reni_wee
an hour ago
IMO Shortlist 2009 - Problem C5
April   37
N 2 hours ago by ihategeo_1969
Five identical empty buckets of $2$-liter capacity stand at the vertices of a regular pentagon. Cinderella and her wicked Stepmother go through a sequence of rounds: At the beginning of every round, the Stepmother takes one liter of water from the nearby river and distributes it arbitrarily over the five buckets. Then Cinderella chooses a pair of neighbouring buckets, empties them to the river and puts them back. Then the next round begins. The Stepmother goal's is to make one of these buckets overflow. Cinderella's goal is to prevent this. Can the wicked Stepmother enforce a bucket overflow?

Proposed by Gerhard Woeginger, Netherlands
37 replies
April
Jul 5, 2010
ihategeo_1969
2 hours ago
Divisibility of a triple
goodar2006   53
N 2 hours ago by cursed_tangent1434
Source: Iran TST 2013-First exam-2nd day-P5
Do there exist natural numbers $a, b$ and $c$ such that $a^2+b^2+c^2$ is divisible by $2013(ab+bc+ca)$?

Proposed by Mahan Malihi
53 replies
goodar2006
Apr 19, 2013
cursed_tangent1434
2 hours ago
Sequences problem
BBNoDollar   0
2 hours ago
Source: Mathematical Gazette Contest
Determine the general term of the sequence of non-zero natural numbers (a_n)n≥1, with the property that gcd(a_m, a_n, a_p) = gcd(m^2 ,n^2 ,p^2), for any distinct non-zero natural numbers m, n, p.

⁡Note that gcd(a,b,c) denotes the greatest common divisor of the natural numbers a,b,c .
0 replies
BBNoDollar
2 hours ago
0 replies
all functions satisfying f(x+yf(x))+y = xy + f(x+y)
falantrng   33
N 2 hours ago by ioannism45
Source: Balkan MO 2025 P3
Find all functions $f\colon \mathbb{R} \rightarrow \mathbb{R}$ such that for all $x,y \in \mathbb{R}$,
\[f(x+yf(x))+y = xy + f(x+y).\]
Proposed by Giannis Galamatis, Greece
33 replies
falantrng
Apr 27, 2025
ioannism45
2 hours ago
Solution needed ASAP
UglyScientist   8
N 2 hours ago by deltapc
$ABC$ is acute triangle. $H$ is orthocenter, $M$ is the midpoint of $BC$, $L$ is the midpoint of smaller arc $BC$. Point $K$ is on $AH$ such that, $MK$ is perpendicular to $AL$. Prove that: $HMLK$ is paralelogram(Synthetic sol needed).
8 replies
UglyScientist
Today at 1:18 PM
deltapc
2 hours ago
IMO ShortList 1998, number theory problem 8
orl   20
N Apr 17, 2025 by Maximilian113
Source: IMO ShortList 1998, number theory problem 8
Let $a_{0},a_{1},a_{2},\ldots $ be an increasing sequence of nonnegative integers such that every nonnegative integer can be expressed uniquely in the form $a_{i}+2a_{j}+4a_{k}$, where $i,j$ and $k$ are not necessarily distinct. Determine $a_{1998}$.
20 replies
orl
Oct 22, 2004
Maximilian113
Apr 17, 2025
IMO ShortList 1998, number theory problem 8
G H J
Source: IMO ShortList 1998, number theory problem 8
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 5 Y
Y by samrocksnature, Adventure10, ImSh95, Mango247, and 1 other user
Let $a_{0},a_{1},a_{2},\ldots $ be an increasing sequence of nonnegative integers such that every nonnegative integer can be expressed uniquely in the form $a_{i}+2a_{j}+4a_{k}$, where $i,j$ and $k$ are not necessarily distinct. Determine $a_{1998}$.
Attachments:
This post has been edited 1 time. Last edited by orl, Oct 23, 2004, 12:48 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#2 • 5 Y
Y by samrocksnature, Adventure10, ImSh95, math90, Mango247
Please post your solutions. This is just a solution template to write up your solutions in a nice way and formatted in LaTeX. But maybe your solution is so well written that this is not required finally. For more information and instructions regarding the ISL/ILL problems please look here: introduction for the IMO ShortList/LongList project and regardingsolutions :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
grobber
7849 posts
#3 • 12 Y
Y by ValidName, Wizard_32, Pascal96, samrocksnature, Adventure10, ImSh95, Mango247, MarioLuigi8972, and 4 other users
I have my doubts about this since I might have rushed into it a bit, but here it goes:

Let $f:[0,1),\ f(x):=x^{a_0}+x^{a_1}+x^{a_2}+\ldots$. Since $0$ can be represented in the mentioned way, we must have $a_0=0$ (this will be important a bit later). We have $f(x)f(x^2)f(x^4)=1+x+x^2+\ldots=\frac 1{1-x}$. We do this again for $x\to x^2$ and we get $f(x^2)f(x^4)f(x^8)=\frac 1{1-x^2}$. Divide the first relation by the second one to get $\frac {f(x)}{f(x^8)}=1+x\ (*)$. In the same way we get $\frac{f(x^8)}{f(x^{8^2})}=1+x^8$, and so on. Since $f(0)=1$, for a certain $x$ we have $\lim_{n\to\infty}f(x^{8^n})=f(0)=1$, so, by fixing $x$ and multiplying the relations of the type $(*)$, we get $f(x)=(1+x)(1+x^8)(1+x^{8^2})\ldots$. What we need to find is the $1998$'th positive exponent (in increasing order) from this infinite series.

In order to finish it, take $1998$, write it in base $2$, and read the result in base $8$. What we get is $a_{1998}$. I guess that, if I didn't make any mistakes, it should be $8+8^2+8^3+8^6+8^7+8^8+8^9+8^{10}$.

The answer looks really strange, and that's what makes me have doubts :).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
monkeyman2
76 posts
#4 • 4 Y
Y by samrocksnature, Adventure10, ImSh95, Mango247
Could somebody explain this a bit more, because i dont really get the solution.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathias_DK
1312 posts
#5 • 5 Y
Y by samrocksnature, Adventure10, ImSh95, Mango247, Dtong08_math
I have a bit different solution:
$ \sum_{i,j,k=0}^{n-1} a_i + 2a_j + 4a_k$ is the sum of the first $ n^3$ numbers. So $ \sum_{i,j,k=0}^{n-1} a_i + 2a_j + 4a_k = 0 + 1 + ... + (n^3-1) = \frac{n^3(n^3-1)}{2}$
On the other hand: $ \sum_{i,j,k=0}^{n-1} a_i + 2a_j + 4a_k = \sum_{i,j,k=0}^{n-1} 7a_i = \sum_{i=0}^{n-1} n^27a_i$
And we have $ \sum_{i=0}^{n-1} n^27a_i = \frac{n^3(n^3-1)}{2}$

So $ \sum_{i=0}^{2009-1} n^27a_i - \sum_{i=0}^{2008-1} n^27a_i = \frac{2009^3(2009^3-1)}{2}-\frac{2008^3(2008^3-1)}{2}$.

On the other hand $ \sum_{i=0}^{2009-1} n^27a_i - \sum_{i=0}^{2008-1} n^27a_i = 2008^2*7*a_{2008}$

So $ a_{2008}= \frac{\frac{2009^3(2009^3-1)}{2}-\frac{2008^3(2008^3-1)}{2}}{2008^2*7}$.

I have a fealing that i've made a mistake somewhere..
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gks921217
2 posts
#6 • 4 Y
Y by samrocksnature, ImSh95, Adventure10, Mango247
Mathias_DK wrote:
$ \sum_{i,j,k = 0}^{n - 1} a_i + 2a_j + 4a_k$ is the sum of the first $ n^3$ numbers.

I cannot understand this part.. :(
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathias_DK
1312 posts
#7 • 4 Y
Y by samrocksnature, ImSh95, Adventure10, Mango247
gks921217 wrote:
Mathias_DK wrote:
$ \sum_{i,j,k = 0}^{n - 1} a_i + 2a_j + 4a_k$ is the sum of the first $ n^3$ numbers.

I cannot understand this part.. :(
I don't really understand it either, because it is totally wrong :) Sorry :P
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
andersonw
652 posts
#8 • 6 Y
Y by sayantanchakraborty, samrocksnature, ImSh95, Adventure10, Mango247, and 1 other user
solution with Mewto55555
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#10 • 6 Y
Y by Wizard_32, mijail, Pascal96, veirab, ImSh95, Adventure10
A good warm-up problem for studying formal series! :)

Let us define the formal series $f(z)$ as $$f(z) := \sum_{i \ge 0} z^{a_i}$$and observe that this formal series is defined at all values $0<z<1$ of the variable. The given relation is equivalent to $$f(z)\cdot f(z^2)\cdot f(z^4)=\sum_{i \ge 0} z^i=\frac{1}{1-z}.$$Replacing $z$ by $z^2$ reveals that $f(z)=(1+z)f(z^8)$ and we conclude that the formal series $f$ is given by $$f(z)=\prod_{k \ge 0} \left(1+z^{8^k}\right)$$Thus, $a_n$ is the $n$ the natural number with digits only $0,1$ when written in base $8$. We conclude that $a_{1998}=\sum a_i8^i$ where $1998=\sum a_i2^i$, as the desired value.
This post has been edited 1 time. Last edited by anantmudgal09, Dec 31, 2019, 3:17 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AwesomeYRY
579 posts
#12 • 1 Y
Y by ImSh95
Claim: If $n$ has the binary representation of $\sum_{i\geq 0} e_i\cdot 2^{i}$. Then we have that
\[a_n = \sum_{i\geq 0} e_i\cdot 8^{i}\]
Proof:
The uniqueness is easy to show. For any nonnegative integer $M$, consider its binary representation, and then split up the powers of two into three sets based on the exponent mod 3. $A$ is the sum of those with $\equiv 0 \pmod{3}$, $B$ for $\equiv 1 \pmod{3}$, and $C$ for $\equiv 2 \pmod{3}$.

Thus, $M=A+B+C = \text{(sum of powers of 8)}+2\cdot \text{(sum of powers of 8)} + 4\cdot \text{(sum of powers of 8)}$, which is doable with $a_n$, and we clearly cannot express $M$ in any other way. Thus, each $M$ is uniquely expressible in this form.
$\square$

Now, note that
\[1998 = 11111001110_2 \Longrightarrow a_{1998}=11111001110_8 = 1227096648_{10}\]and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4186 posts
#13 • 1 Y
Y by ImSh95
We claim that the sequence $a_i$ contains precisely the nonnegative integers that contain no digits other than 0 and 1 in base 8. Clearly, this sequence works, since for each nonnegative integer, we essentialy express it in base 8, split each digit into 3 bits, and use those to pick either 0 or 1 in that corresponding location in order to find the bit in that place for $i,j,k$.

We will then show that there can only be one possible sequence. Note that 0 must be in the sequence, since 0 must be expressible, so $a_0=0$. For $n\geq 0$, let $T_n$ denote the smallest nonnegative integer that cannot be expressed as $a_i+2a_j+4a_k$ for $0\leq i,j,k\leq n$.

Claim: $a_{n+1}=T_n$. Suppose otherwise. Then, if $a_{n+1}<T_n$, by definition of $T_n$ there is some way to express $a_{n+1}$ as $a_i+2a_j+4a_k$ for $0\leq i,j,k\leq n.$ However, we can also express $a_{n+1}$ as $a_{n+1}+2a_0+4a_0$, contradicting uniqueness. However, if $a_{n+1}>T_n$, then since it is an increasing sequence, $a_m>T_n$ for all $m\geq n+1.$ However, consider $T_n$. By definition, it cannot be expressed using just $a_0$ through $a_n$. However, if we use any of $a_m$ for $m\geq n+1$, we would already overshoot the goal of $T_n$, so $T_n$ cannot be expressed in any way, contradiction.

Therefore, $a_{n+1}=T_n$. Since $T_n$ is uniquely determined by $a_0$ through $a_n$, by induction, there can only be one possible sequence. Since the earlier sequence works, it must be the sequence.

Therefore, the answer is $$8^{10}+8^9+8^8+8^7+8^6+8^3+8^2+8.$$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8857 posts
#14 • 1 Y
Y by ImSh95
Darn this generating function trick is becoming way too commonly used.

Let $f(x) = \sum_{i \geq 0} a_i x^i$. Notice that $f(0) = 0$. Note that the condition is equivalent to $$f(x)f(x^2)f(x^4) = \frac 1{1-x}.$$On the other hand, combining this with $f(x^2)f(x^4)f(x^8) = \frac 1{1-x^2}$, we have $\frac{f(x)}{f(x^8)} = (1+x)$, so thus the infinite product $$\frac{f(x)}{(1+x)(1+x^8)(1+x^{64})\cdots} = f(x^{8^n}) \to f(0) = 1,$$and thus $\{a_n\}$ can be characterized as the sequence of numbers expressible as the sum of powers of $8$. The rest is extraction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1900 posts
#15 • 1 Y
Y by ImSh95
I claim that the only sequence that works is the nonnegative integers that only have $0$s and $1$s in their base $8$ representation. Obviously this works, so we will prove that this is the only possible sequence.

First, note that $0$ has to be in the sequence to generate $0$ and $1$ has to be in the sequence to generate $1$.

Claim. The next element in the sequence is always the least nonnegative integer that cannot be formed yet.
Proof. If the next element is any smaller, it can be formed, then $a_k+2(0)+4(0)=a_k$, bad. If the next element is any larger, than that least nonnegative integer will never be formed, bad.

Now we will prove that the next element in the sequence is always the next nonnegative integer with only $0$s and $1$s in its base $8$ representation.

Claim. Given the first some amount of terms in the sequence, you are guaranteed to be able to form any number such that if it was written in base $8$ and each nonzero digit was replaced with a $1$, you have it in your sequence.
Proof. This is just taking the binary representation of each base $8$ digit. Note that replacing any of the $1$s with a $0$ still keeps you in the part of the sequence you have.

Now simply note that any nonnegative integer with only $0$s and $1$s in its base $8$ representation can only be formed by $a_i+2(0)+4(0)$, because the base $8$ addition cannot carry. But this means that the next nonnegative integer with only $0$s and $1$s in its base $8$ representation cannot be formed with the current sequence, and thus must be appended to the sequence. $\blacksquare$

The rest is extraction: $1998_{(10)}=11111001110_{2}$, so the answer is $\boxed{11111001110_{8}}$.
This post has been edited 4 times. Last edited by cj13609517288, Mar 14, 2023, 2:18 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1711 posts
#16 • 1 Y
Y by ImSh95
We claim that the sequence is just all numbers whose base $2$ representation contains only $1$s in spots whose place value is a power of $8$, that is, every third digit with the units digit being counted. Thus, the answer would simply be $1998$ written in base $2$ but parsed in base $8$. Clearly, this works, since every digit of any nonnegative integer's base two representation can be split into three classes, the first class being every digit of place value $8^k$, the second being every digit of place value $2\cdot 8^k$ and the third being every digit of place value $4\cdot 8^k$ and the number formed only using digit first class is $a_{i}$, the number formed by the second class is $2a_{j}$ and the third class forms $4a_{k}$.

Now, to prove this is the only sequence: note that $0$ must be in the sequence. Suppose we have already constructed some of the sequence in increasing order, then the next term cannot be something already representable as $a_i+2a_j+4a_k$, otherwise the representation isn't unique. If the next term of the sequence is at least two greater than anything already representable, then the number one greater than anything already representation is never going to be representable. Thus, the next term is fixed and thus is the sequence.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Math4Life7
1703 posts
#17 • 1 Y
Y by ImSh95
We claim that $a_n$ is the $n+1$th smallest base $8$ number made of $1$'s and $0$'s

We use induction on the first $2^x$ terms. We claim by induction that the first $2^x$ terms can uniquely express the first $8^x - 1$ integers.

Our base case is trivial.

Now for the inductive step. Assume the result for $n-1$. Now looking at the last $n-1$ digits of our numbers we can see that each of the $2^{n-1}$ possibilities are expressed $2$ ways: one with a $1$ at the beginning and one without. Since we know that these digits can be combined to form any number from $0$ to $8^{n-1} - 1$ we simply need those $1$'s at the end to form the multiples of $8^{n-1}$ up to $7 \cdot 8^{n-1}$. This is obviously possible.

Translating $1998$ we see that $a_{1998} = \boxed{11111001110_8}$. $\blacksquare$

Cute problem :love:
This post has been edited 1 time. Last edited by Math4Life7, Jun 17, 2023, 4:18 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
RedFireTruck
4221 posts
#18
Y by
Let $f(x)=\sum_{n=0}^\infty x^{a_n}$. Then, $f(x)f(x^2)f(x^4)=\sum_{n=0}^\infty x^n=\frac1{1-x}$ so $f(x^2)f(x^4)f(x^8)=\frac1{1-x^2}$ so $f(x)=(1+x)f(x^8)$.

This implies that if $x^n$ is a term in $f(x)$, then $x^{8n}$ is a term in $f(x^8)$, so $x^{8n}$ and $x^{8n+1}$ must both be terms in $f(x)$.

This means that the $a_i$ are the numbers in base $8$ with all digits $0$ or $1$.

Since $1998=11111001110_2$, $a_{1998}=11111001110_8=\boxed{1227096648}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
794 posts
#19
Y by
Notice that the first two terms must be 0 and 1, and each subsequent term is the least integer which cannot be expressed as the desired linear combination of the previous terms. Hence our sequence is unique, so proving that the sequence of integers with only 0s and 1s in base 8 works will suffice.

The integers in this sequence have the property that the 1s in its binary representation are spaced out by multiples of 3. The coefficients of 2 and 4 are equivalent to concatenating 0 and 00 to the binary representations of $a_j$ and $a_k$, respectively.

Thus the $0 \pmod 3$ bits determine $a_i$, the $1 \pmod 3$ bits determine $a_j$, and the $2 \pmod 3$ bits determine $a_k$, so our representation is attainable and unique.

Consequently, since $1998 = 1111101110_2$, we have $a_{1998} = 1111101110_8$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueprimes
345 posts
#20
Y by
Let $f(x) = x^{a_0} + x^{a_1} + \dots$, the condition easily implies
\[f(x)f(x^2)f(x^4) = 1 + x + x^2 + \dots = \dfrac{1}{1 - x} \implies \dfrac{f(x)}{f(x^8)} = \dfrac{f(x)f(x^2)f(x^4)}{f(x^2)f(x^4)f(x^8)} = \dfrac{1 - x^2}{1 - x} = 1 + x.\]Therefore, we have the telescoping series
\[f(x) = \dfrac{f(x)}{f(x^8)} \cdot \dfrac{f(x^8)}{f(x^{8^2})} \cdot \dfrac{f(x^{8^2})}{f(x^{8^3})} \cdots = (1 + x)(1 + x^8)(1 + x^{8^2}) \cdots \]So $a_{1998}$ denotes the evaluation of the base-$8$ representation of $1998$ in binary. We have
\[1998 = 11111001110_2 \implies a_{1998} = 8^{10} + 8^9 + 8^8 + 8^7 + 8^6 + 8^3 + 8^2 + 8^1\]as wanted.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
zuat.e
55 posts
#21
Y by
We claim the solution is $a_{1998}=8^1+8^2+8^3+8^6+8^7+8^8+8^9+8^{10}$

The main claim is: $a_{2^n}=7a_{2^n-1}+1$ and $a_{2^n+k}=a_{2^n}+a_k$ with $(1\leq k<2^n)$.

Proof:
Clearly $a_0=0$ (if not, we can't get 0), $a_1=1$ (if not we can't get 1). As $1\leq m\leq 7$ can be achieved by using 1 and 0, but not 8, $a_2=8$ and $a_3=9$.

We now claim we can get every single number $10\leq m\leq 72$ uniquely. Write $n=8k+r$, with $1\leq k,r\leq 7$ and $k=x_i+2x_j+4x_k$, $r=y_i+2y_j+4y_k$.

Now, we perform the following algorithm (which is quite intuitive, so I won't prove it):

If $x_n=y_n=1$, choose$a_n=9$
If $x_n=1$, $y_n=0$, choose $a_n=8$
If $x_n=0$, $y_n=1$, choose $a_n=1$
If $x_n=y_n=0$, choose $a_n=0$

Hence, it starts $(0,1,8,9,73,\dots)$.
We prove by induction: Suppose it is true until $a_{2^n+k}$ $(k<2^n-1)$. Now clearly we can't get $a_{2^n}+a_{k+1}$, for $a_{2^n}+a_{k+1}=a_{2^n+i}$ (because $7a_{2^n-1}<a_{2^n}\leq a_{2^n+i}$) $+2a_j+4a_k$=$a_{2^n}+a_i+2a_j+4a_k \longleftrightarrow a_{k+1}=a_i+2a_j+4a_k$. Now, for every $a_{2^n+k}+1\leq m\leq a_{2^n}+a_(k+1)-1$, we can get every $a_k+1\leq n\leq a_(k+1)-1$ just using $a_0, a_1, \dots a_k$ by induction hypothesis. Therefore, we select those exact indices for $m$, but choose $a_{2^n+i}$ instead of $a_i$.

Finally, we've that it is true for $a_0,a_1, \dots ,a_{2^n+(2^n-1)}$. As we can get $0\leq m\leq 7*a_{2^n-1}$ just using $a_0, a_1, \dots a_{2^n-1}$, we can get all $7*a_{2^n-1}+1\leq n \leq 7*a_{2^n}+7*a_{2^n-1}=7*a_{2^{n+1}-1}$, hence $a_{2^{n+1}}=7a_{2^n}+1$ for $7a_{2^n}+1>7a_{2^n}$. $\square$

It remains to solve the recursion; after some clever algebra we get $a_{2^n}=8^n$ and as $1998=2^1+2^2+2^3+2^6+2^7+2^8+2^9+2^{10}$, we get $a_{1998}=8^1+8^2+8^3+8^6+8^7+8^8+8^9+8^{10}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EpicBird08
1750 posts
#22
Y by
Clearly $a_0 = 0$ and $a_1 = 1$ as otherwise we would be unable to represent $0$ or $1.$ The following claim determines that at most one sequence works:

Claim: $a_n$ is the smallest nonnegative integer which cannot be represented as $a_i + 2a_j + 4a_k$ for $i,j,k \le n-1.$
Proof: Let this integer be $b.$ If $a_n < b$ then we could represent the number $a_n$ in two different ways, contradiction. If $a_n > b,$ then we can never form $b$ as we always use a larger number. This concludes our proof of the claim.

Now we give an example of a sequence which works: let $$a_n = \sum 8^{c_i},$$where $(c_k c_{k-1} \dots c_1 c_0)_2$ is the binary representation of $n.$ This works because the only way to account for the $0 \pmod{3}$ positions in the binary representation are with the $a_i$ term, and similar for the $1 \pmod{3}$ and $2 \pmod{3}$ positions. This uniquely determines the $i,j,k.$ Hence this is the only sequence which works. Finally, $1998 = 11111001110,$ so our answer is $$8^{10} + 8^9 + 8^8 + 8^7 + 8^6 + 8^3 + 8^2 + 8.$$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
574 posts
#23
Y by
First of all, observe that there is one unique sequence as we start with $0, 1$ and then eventually we reach a number not representable, in which we have to add that number to the sequence. This process is deterministic.

Now, we claim that the sequence is all numbers which in base $8$ have only $0$s and $1$s. This clearly works as if we write all the numbers in base $8$ as $0, 1$ can represent only all numbers from $0$ to $7$ inclusive (uniquely) all numbers can be represented uniquely by considering each digit separately. Therefore $a_{1998}$ can be found by taking it in base $2$ but reading it in base $8.$ Hence the answer is $11111001110_8 = 1227096648.$
This post has been edited 1 time. Last edited by Maximilian113, Apr 17, 2025, 8:56 PM
Z K Y
N Quick Reply
G
H
=
a