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
Area problem
MTA_2024   0
2 minutes ago
Let $\omega$ be a circle inscribed inside a rhombus $ABCD$. Let $P$ and $Q$ be variable points on $AB$ and $AD$ respectively, such as $PQ$ is always the tangent line to $\omega$.
Prove that for any position of $P$ and $Q$ the area of triangle $\triangle CPQ$ is the same.
0 replies
MTA_2024
2 minutes ago
0 replies
Geometry
srnjbr   0
15 minutes ago
In triangle ABC, D is the leg of the altitude from A. l is a variable line passing through D. E and F are points on l such that AEB=AFC=90. Find the locus of the midpoint of the line segment EF.
0 replies
srnjbr
15 minutes ago
0 replies
Geometry
srnjbr   0
31 minutes ago
in triangle abc, l is the leg of bisector a, d is the image of c on line al, and e is the image of l on line ab. take f as the intersection of de and bc. show that af is perpendicular to bc
0 replies
srnjbr
31 minutes ago
0 replies
<QBC =<PCB if BM = CN, <PMC = <MAB, <QNB = < NAC
parmenides51   1
N an hour ago by dotscom26
Source: 2005 Estonia IMO Training Test p2
On the side BC of triangle $ABC$, the points $M$ and $N$ are taken such that the point $M$ lies between the points $B$ and $N$, and $| BM | = | CN |$. On segments $AN$ and $AM$, points $P$ and $Q$ are taken so that $\angle PMC = \angle  MAB$ and $\angle QNB = \angle NAC$. Prove that $\angle QBC = \angle PCB$.
1 reply
parmenides51
Sep 24, 2020
dotscom26
an hour ago
No more topics!
K-pop sequences
L567   8
N Dec 21, 2024 by alexanderhamilton124
Source: India EGMO TST 2023/5
Let $k$ be a positive integer. A sequence of integers $a_1, a_2, \cdots$ is called $k$-pop if the following holds: for every $n \in \mathbb{N}$, $a_n$ is equal to the number of distinct elements in the set $\{a_1, \cdots , a_{n+k} \}$. Determine, as a function of $k$, how many $k$-pop sequences there are.

Proposed by Sutanay Bhattacharya
8 replies
L567
Dec 10, 2022
alexanderhamilton124
Dec 21, 2024
K-pop sequences
G H J
G H BBookmark kLocked kLocked NReply
Source: India EGMO TST 2023/5
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
L567
1184 posts
#1
Y by
Let $k$ be a positive integer. A sequence of integers $a_1, a_2, \cdots$ is called $k$-pop if the following holds: for every $n \in \mathbb{N}$, $a_n$ is equal to the number of distinct elements in the set $\{a_1, \cdots , a_{n+k} \}$. Determine, as a function of $k$, how many $k$-pop sequences there are.

Proposed by Sutanay Bhattacharya
This post has been edited 1 time. Last edited by L567, Dec 10, 2022, 7:00 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
L567
1184 posts
#2 • 1 Y
Y by VicKmath7
First, note that the sequence is non-decreasing. Also, $a_{i+1} - a_i$ must be either $0$ or $1$, and it depends on whether $a_{i+1+k} - a_{i+k} = 0$ or $1$.

Define $b_i = a_{i+1} - a_i$, then the condition means that $b_{i+k} = b_i$, and so each residue class mod $k$ has a constant value of $b_i$. Since this is the only constraint, there are $2^k$ ways to choose this.

If the sequence of $b_i$ is determined, $a_1$ is also uniquely determined (it is the number of $1$'s among the first $k$ $b_i$ + 1), so there are overall exactly $2^k$ sequences. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gghx
1069 posts
#4
Y by
Rewrite as $f$. Obviously $f(n)\le f(n+1)\le f(n)+1$. Note that if $f(n+1)=f(n)$ then $f(n+1+k)=f(n+k)$, while if $f(n+1)=f(n)+1$ then $f(n+1+k)=f(n+k)$. Hence the function is determined by $f(1),f(2),\cdots f(k+1)$ alone. Conversely, if there are $f(1)$ distinct elements amongst them, and $f(i)\le f(i+1)\le f(i)+1$ for all $1\le i\le k$, then we can construct such a function. Suppose $f(1)=t$, then we need $t$ "+1"s between adjacent numbers in $f(1)$ to $f(k+1)$. There are $\binom{k}{t}$ ways to do this. Summing over all $t$, this gives $2^k$.
This post has been edited 1 time. Last edited by gghx, Mar 5, 2023, 1:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kamatadu
466 posts
#5 • 2 Y
Y by HoripodoKrishno, whencence
Here is a solution written with every possible motivation I had. :P Also, I just totally loved this problem! :D

The answer if $f(k)=2^k$.
Note that $a_n\le a_{n+1}\le a_n+1$ as we are just adding one more term into the previous set which is either a new term, or one of the pre-existing ones.

Now note that $a_i$ is the number of distinct elements in\[a_1,a_2,\ldots,a_{k+i}\]and that $a_{i+1}$ is the number of distinct elements in\[a_1,a_2,\ldots,a_{k+i},a_{k+i+1}.\]So if $a_{i+1}=a_i$, then both the sequences have the same number of distinct elements, which means $a_{k+i+1}\in\left\{a_1,a_2,\ldots,a_{k+i}\right\}$. Now using the fact that $a_{k+i+1}in{a_{k+i},a_{k+i}+1}$ we get that this forces $a_{k+i+1}=a_{k+i}$. Similarly, if $a_{i+1}=a_i+1$, then we can get $a_{k+i+1}=a_{k+i}+1$.

Now let $+$ denote the operation $a_i\rightarrow a_{i+1}$ when $a_{i+1}=a_i+1$ and $\square$ denote the operation $a_i\rightarrow a_{i+1}$ when $a_{i+1}=a_i$. Due to what we derived above, we get that the operation of $a_{k+i}\rightarrow a_{k+i+1}$ is same as that of the operation $a_i\rightarrow a_{i+1}$. This gives us that if we determine the order of operations on the sequence $\left\{a_1,a_2,\ldots, a_{k+1}\right\}$, then we automatically get the order of operations on the entire sequence which is described as below.
\begin{align*}
    a_1&\rightarrow a_2\rightarrow\cdots\rightarrow a_{k+1}\\
    a_{k+1}&\rightarrow a_{k+2}\rightarrow\cdots\rightarrow a_{2k+1}
.\end{align*}
So we just need to determine the sequence $\left\{a_1,a_2,\ldots, a_{k+1}\right\}$. Let there be $m$ many $+$ operations, and thus $k-m$ many $\square$ operations in the sequence of first $k+1$ numbers; where $0\le m\le k$. So we get that there are $m+1$ distinct elements in the sequence. But we also had that this value equals $a_1$, and so $a_1=m+1$. Thus after picking the ordering of the $+$ and the $\square$ operations, we get the sequence from $a_1$ to $a_{k+1}$, which on extending further gives us our entire sequence.

Now to finish, we have can select a value for $m$ from $0\le m\le k$, and then, we will have $\binom{k}{m}$ ways to choose the positions of the $+$, which sets the position for the rest of the $\square$ operations too. So we get that our final answer is $f(k)=\displaystyle\sum_{m=0}^k \binom{k}{m}=2^k$ and we are done. :stretcher:
This post has been edited 1 time. Last edited by kamatadu, Jul 22, 2023, 1:39 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HoRI_DA_GRe8
584 posts
#7
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.
rama1728
800 posts
#8
Y by
Wow! Neat bijection. I guess Im getting good C practice before RMO :P

The answer is $2^k$. First note that $a_i$ is a non-decreasing sequence due to it's definition. So, $a_{i+1}-a_i=0,1$ if $a_{k+i+1}-a_{k+i}=0,1$ and so if we define $d_i=a_{i+1}-a_i$, then $d_i$ is periodic with period $k$. Now what matters is the choice of $d_1,\hdots , d_k$, which can be chosen in $2^k$ ways, so we are done.

Remark. Many times, what is important with such problems which create strong 'dependencies' is to utilize those 'dependencies' and identify uniquely determined objects. The problem then would be very easy.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Pyramix
419 posts
#9
Y by
We claim that there are exactly $2^k$ such sequences for any $k$.

Claim: For any positive integer $n$, we have $a_{n+k+1}-a_{n+k}=a_{n+1}-a_n$.
Proof. By definition, we have $0\leq a_{n+1}-a_n\leq 1$. Note that if $a_{n+k+1}=a_{n+k}$ then $a_{n+1}=a_n$, and if $a_{n+k+1}\ne a_{n+k}$, then their difference is 1, but then $a_{n+1}-a_n=1$. So, $a_{n+k+1}-a_{n+k}=a_{n+1}-a_n$. $\blacksquare$
A simple induction gives $a_{n+tk+1}-a_{n+tk}=a_{n+1}-a_n$ for any $t$. So, we really just need to ensure that $a_1$ is the number of distinct elements in the set $\{a_1,a_2,\ldots,a_{1+k}\}$. In this set, call a number $1\leq i\leq k$ good if $a_{i+1}=a_i+1$ and bad otherwise. We have that $a_1=1+\#(\text{good numbers between }1\text{ and }k\text{ inclusive})$.
This can be done very easily, let there be $g$ good numbers from $1,2,\ldots,k$. Then, $a_1=1+g$ and choose $g$ good numbers in $\binom{n}{g}$ ways. Hence,
\[\#(k-\text{pop sequences})=\sum_{g=0}^{k}\binom kg=2^k,\]as claimed.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AshAuktober
912 posts
#10
Y by
Note that $a_{i+1} - a_i \in \{0, 1 \} \forall i$.
Further, any $k$-pop sequence must satisfy $a_{i+1} = a_i \iff a_{i+k+1} = a_{i+k}$. And conversely, all sequences satisfying this and the fact that $a_1 = |\{a_1, \dots, a_{k+1}\}|$ work.
So now we choose $a_{i+1} - a_i$ for $i = 1, 2, \dots, k$ out of $\{0, 1\}$ to get a working $k$-pop sequence. Since there are $2^k$ ways to do this, the final answer is in fact $\boxed{2^k}$.

EDIT: WAIT POST #700 LESGOOOOOOOO
This post has been edited 1 time. Last edited by AshAuktober, Dec 17, 2024, 3:11 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
375 posts
#11 • 1 Y
Y by L13832
This is a really nice problem :)

Claim 1: $a_i \leq a_{i + 1} \leq a_i + 1$
Observe that $a_i$ is the number of distinct elements in $\{a_1, \dots, a_{k + i}\}$, while $a_{i + 1}$ is the number of distinct elements in $\{a_1, \dots, a_{k + i}, a_{k + i + 1}\}$. Note that $a_{k + i + 1}$ can either add one distinct element or the number of distinct elements remain the same, so our claim is proved.

Claim 2: The sequence is dependent on the selection of $\{a_1, \dots, a_{k + 1}\}$.
Again, $a_i$ is the number of distinct elements in $\{a_1, \dots, a_{k + i}\}$, while $a_{i + 1}$ is the number of distinct elements in $\{a_1, \dots, a_{k + i}, a_{k + i + 1}$. If $a_{i + 1} = a_i$, then $a_{k + i + 1}$ must not add any distinct element, or $a_{k + i + 1} = a_{k + i}$. If $a_{i + 1} = a_i + 1$, then $a_{k + i + 1}$ must add a distinct element, or $a_{k + i + 1} = a_{k + i} + 1$.

This proves our claim. To finish, note that for each $a_j$ where $j \leq k$, we can either choose $a_{j + 1} = a_j$ or $a_{j + 1} = a_j + 1$, and $a_1$ is merely the number of pairs $(a_i, a_{i + 1}) + 1$, where $a_{i + 1} = a_i + 1$. So there will be $2^k$ selections (dependent on $a_1$) for $(a_1, a_2, \dots, a_{k + 1}$, which means there are $2^k$ sequences.
Z K Y
N Quick Reply
G
H
=
a