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
Interesting inequalities
sqing   0
17 minutes ago
Source: Own
Let $ a,b,c\geq 0 ,2a +ab +abc \geq 9. $ Prove that
$$a+b+c  \geq 4$$$$a+b+\frac{1}{4}c  \geq \frac{13}{4}$$Let $ a,b,c\geq 0 ,2a +ab +4abc \geq 9. $ Prove that
$$a+b+c+abc  \geq 4$$$$a+b+4c   \geq 4$$$$a+b+c  \geq \frac{13}{4}$$$$a+\frac{6}{5}b+4c   \geq \frac{6(\sqrt{30}-2)}{5}$$$$a+\frac{9}{5}b+4c   \geq \frac{18(\sqrt 5-1)}{5}$$
0 replies
+1 w
sqing
17 minutes ago
0 replies
Hard diophant equation
MuradSafarli   3
N 23 minutes ago by MuradSafarli
Find all positive integers $x, y, z, t$ such that the equation

$$
2017^x + 6^y + 2^z = 2025^t
$$
is satisfied.
3 replies
MuradSafarli
Yesterday at 6:12 PM
MuradSafarli
23 minutes ago
< NA'T = < ADT wanted, starting with a right triangle, symmetric, projections
parmenides51   3
N an hour ago by tilya_TASh
Source: JBMO Shortlist 2018 G2
Let $ABC$ be a right angled triangle with $\angle A = 90^o$ and $AD$ its altitude. We draw parallel lines from $D$ to the vertical sides of the triangle and we call $E, Z$ their points of intersection with $AB$ and $AC$ respectively. The parallel line from $C$ to $EZ$ intersects the line $AB$ at the point $N$. Let $A' $ be the symmetric of $A$ with respect to the line $EZ$ and $I, K$ the projections of $A'$ onto $AB$ and $AC$ respectively. If $T$ is the point of intersection of the lines $IK$ and $DE$, prove that $\angle NA'T = \angle  ADT$.
3 replies
parmenides51
Jul 22, 2019
tilya_TASh
an hour ago
x(x - y) = 8y - 7 in NxN
parmenides51   4
N an hour ago by Namisgood
Source: JBMO 2008 Shortlist N1
Find all the positive integers $x$ and $y$ that satisfy the equation $x(x - y) = 8y - 7$
4 replies
parmenides51
Oct 14, 2017
Namisgood
an hour ago
No more topics!
Easy Number Theory
jj_ca888   12
N Apr 27, 2025 by joshualiu315
Source: SMO 2020/1
The sequence of positive integers $a_0, a_1, a_2, \ldots$ is recursively defined such that $a_0$ is not a power of $2$, and for all nonnegative integers $n$:

(i) if $a_n$ is even, then $a_{n+1} $ is the largest odd factor of $a_n$
(ii) if $a_n$ is odd, then $a_{n+1} = a_n + p^2$ where $p$ is the smallest prime factor of $a_n$

Prove that there exists some positive integer $M$ such that $a_{m+2} = a_m $ for all $m \geq M$.

Proposed by Andrew Wen
12 replies
jj_ca888
Aug 28, 2020
joshualiu315
Apr 27, 2025
Easy Number Theory
G H J
G H BBookmark kLocked kLocked NReply
Source: SMO 2020/1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jj_ca888
2726 posts
#1
Y by
The sequence of positive integers $a_0, a_1, a_2, \ldots$ is recursively defined such that $a_0$ is not a power of $2$, and for all nonnegative integers $n$:

(i) if $a_n$ is even, then $a_{n+1} $ is the largest odd factor of $a_n$
(ii) if $a_n$ is odd, then $a_{n+1} = a_n + p^2$ where $p$ is the smallest prime factor of $a_n$

Prove that there exists some positive integer $M$ such that $a_{m+2} = a_m $ for all $m \geq M$.

Proposed by Andrew Wen
This post has been edited 5 times. Last edited by jj_ca888, Aug 28, 2020, 6:39 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
i3435
1350 posts
#2 • 1 Y
Y by Mango247
Sol
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gnoka
245 posts
#3
Y by
Excuse me, what is the full name of SMO?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
brianzjk
1201 posts
#4 • 1 Y
Y by gnoka
gnoka wrote:
Excuse me, what is the full name of SMO?

Summer Math Olympiad
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gnoka
245 posts
#5
Y by
brianzjk wrote:
gnoka wrote:
Excuse me, what is the full name of SMO?

Summer Math Olympiad

thanks very much
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rcorreaa
238 posts
#6
Y by
Assume WLOG $a_1$ is odd. Observe that if $p_1$ is the smallest prime factor $a_1 \implies p_1|a_2=a_1+p_1^2 \implies p_1|a_n \quad \forall n \in \mathbb{N}.$ Hence if $p_n$ is the smallest odd prime factor of $a_n$, we have that $p_0 \geq p_1 \geq p_2 \geq ... \implies$ since this sequence is bounded below, we have that it is eventually constant, i.e., there exists an $N$ such that for all $n \geq N, p_{n+1}=p_n. \quad (*)$

Now, observe that if $a_n$ is odd and composite, $\implies a_{n+1}=a_n+p_n^2 \leq a_n + (\sqrt{a_n}^2)=2a_n \implies a_{n+2}= \frac{a_{n+1}}{2^{v_2(a_{n+1})}} < a_n \implies a_{n+2} < a_n$. Thus, if $a_n$ is composite for all odd $a_n$, $a_n$ is eventually negative, which is clearly a contradiction. Hence, there exists $m_0$ such that $a_{m_0}=q_0$, where $q_0$ is an odd prime number.
$\implies a_{m_0+1}=q_0(q_0+1) \implies a_{m_0+2}= \frac{q_0(q_0+1)}{2^{v_2(q_0+1)}}$.

If $\frac{q_0+1}{2^{v_2(q_0+1)}} >1 \implies$ we find $m_1>m_0$ such that $a_{m_1}$ is an odd prime, and defining $q_n$ in a similar way as previously, keep doing this until $\frac{q_n+1}{2^{v_2(q_n+1)}}=1$ or $m_n \geq N$ (from $(*)$). In both cases we are done! :-D

$\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
amuthup
779 posts
#7
Y by
Suppose FTSOC that such an $M$ does not exist, and assume $a_0$ is odd. Let $b_i=a_{2i}$ for all $i$, and let $p_i$ denote the smallest prime factor of $b_i.$

$\textbf{Claim: }$ For all $i,$ there exists $j>i$ such that $p_i>p_j.$

$\emph{Proof: }$ If $b_i=p_i,$ then we have $$b_{i+1}=\frac{p_i(p_i+1)}{2^{\nu_2(p_i+p_{i}^2)}}.$$
  • If $p_i+1$ is a power of $2,$ then $b_{i+1}=b_{i},$ contradiction.
  • Otherwise, $p_i+1$ has a prime factor smaller than $p_i.$.

On the other hand, if $b_i$ is composite, write $b_i=kp_i$ for some $k>p_i$ (check that $k=p_i$ is impossible). Then, note that $$b_{i+1}=\frac{kp_{i}+p_{i}^2}{2^{\nu_2(kp_{i}+p_{i})^2}}\le\frac{kp_{i}+p_{i}^2}{2}<kp_{i}=b_i.$$Continuing in this manner, we will eventually reach $b_{i'}$ which is at most $p_i^2.$
  • If $b_{i'}=p_{i}^2,$ then $b_{i'}=b_{i'+2},$ contradiction.
  • If $b_{i'}=p_i,$ we are done by our previous work.
  • Otherwise, $b_{i'}$ has a prime factor smaller than $p_i,$ as desired.
$\blacksquare$

Since the set of odd primes has a minimum, we are done.
This post has been edited 3 times. Last edited by amuthup, Apr 3, 2021, 3:26 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathleticguyyy
3217 posts
#8 • 1 Y
Y by centslordm
Let $A_{x}=a_{2x}$.

$p$ represents any generic prime. Note that the smallest prime divisor of the sequence cannot increase. Also, if $A_i$ isn't $p$ or $p^2$, $A_{i+1}$ strictly decreases. Hence, we will eventually reach a number of the form $p$ or $p^2$; in the latter case we are done, and in the former case, notice that the smallest prime factor will strictly decrease, and if we never hit $p^2$, we will eventually get to $A_i=p=2^k-1$ since $3=2^2-1$, at which we achieve the periodicity.
This post has been edited 1 time. Last edited by mathleticguyyy, Jan 15, 2022, 3:19 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5001 posts
#9
Y by
Obviously the smallest odd prime factor of $a_n$ is nonincreasing, hence eventually constant. Suppose that for every $n>N_0$, the least prime divisor of $a_n$ is a fixed prime $p$. If $a_n>p^2$, then advancing two moves starting with (ii) (so then we do (i), and go back to (ii), etc.) will go from $a_n$ to at most $\tfrac{a_n+p^2}{2}$, hence $a_n$ will strictly decrease. Suppose that for all $n>N_1>N_0$ we have $a_n \leq p^2$. Then $a_n/p \in \{1,p\}$ for size reasons, else $p$ is not the minimal prime divisor. If $a_n/p=1 \implies a_n=p$, then we go from $p \to p^2 \to \tfrac{p(p+1)}{2^{\nu_2(p+1))}}$. Since this final fraction is strictly less than $p^2$, we must have $\tfrac{p+1}{2^{\nu_2(p+1)}}=1$, else this term has a smaller prime divisor than $p$, in which case our fraction just equals $p$ so we have the desired periodicity. If $a_n/p=p \implies a_n=p^2$ (the easy case) we go $p^2 \to 2p^2 \to p^2$ so we're done here as well. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
GrantStar
821 posts
#10 • 1 Y
Y by OronSH
Solved with OronSH

Note that the smallest prime factor of each term is non increasing. Thus, after some point, it remains constant, say this is after the term $a_n=p\cdot k$ with $p$ being said factor (WLOG $k$ is odd, otherwise (i) is applied). We take $3$ cases.
  • If $k=1$, then $a_{i+1}=p(p+1)$. By assumption, $p+1$ thus must be a power of $2$, hence $a_{i+2}=p$ again.
  • If $k=p$ then It oscillates between $p^2$ and $2p^2$
  • If $k>p$, then $a_{i+2}\leq \frac{p(p+k)}{2}<pk=a_i$. Thus the sequence is decreasing and thus either hits $p$ or $p^2$.
This post has been edited 1 time. Last edited by GrantStar, Jan 8, 2024, 12:07 AM
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
#11
Y by
For each $n$, let $p_n$ denote the smallest prime factor of $a_n$. Observe that the $\{a_n\}$ alternate parity, so we will assume WLOG that $a_n \equiv n \pmod 2$.

Claim. $\{p_n\}$ is nondecreasing.

Proof. Clearly $p_n \neq 2$, so if $a_n$ is even, then $p_n \mid a_{n+1}$. If $a_n$ is odd, then $a_{n+1} = a_n + p_n^2$ is still a multiple of $p_n$ too. $\blacksquare$

It follows that there is some $N$ such that for all $n > N$, $p_n = p$ is constant.

Claim. There is some $n > N$ such that $a_n \leq p^2$.

Proof. If otherwise, then note that $a_{2n+1} \leq \frac 12 a_{2n}$ as $a_{2n}$ is always even, so
\[a_{2n+1} \leq \frac 12 a_{2n} = \frac 12 (a_{2n-1} + p^2) < a_{2n-1}\]meaning that $\{a_{2n+1}\}$ is strictly decreasing. So it must drop below $p^2$ at some point, contradiction. $\blacksquare$

Consider the $a_n$ described by the claim. Clearly $p \mid a_n$, but if $a_n = pk$ for $2 \leq k \leq p-1$, then there is a smaller prime factor of $a_n$ than $p$, contradiction. Hence either $a_n = p$ or $a_n = p^2$.

If $a_n = p^2$, then $a_{n+1} = 2p^2$ and $a_{n+2} = p^2$, and the conclusion follows immediately. If $a_n = p$, either $p+1$ is a power of two, or it has an odd prime factor less than $p$. The latter case yields a contradiction, and the former case yields $a_{n+2} = p$, so again $\{a_n\}$ is periodic with period $2$. This finishes the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bin_sherlo
716 posts
#12
Y by
This is a similar one.
Let $p_i$ be the smallest odd prime divisor of $a_i$. First, if $a_n$ is even then $p_n|a_{n+1}$ hence $p_{n+1}\leq p_n$. Also if $a_n$ is odd, then $a_{n+1}=p_n(p_n+\frac{a_n}{p_n})$ which implies $p_{n+1}\leq p_n$ again. Since $\{p_i\}$ is nondecreasing and is a set of primes, this seuqence must be constant evantually. Let this constant prime be $p$. Let $p_n=p$ for $n\geq T$. Consider some constant $C>a_i$ for $i\geq T^T$. If $a_l$ is even, then $a_{l+1}<a_l$ and if $a_l$ is odd, then $a_{l+1}=p^2+a_l<2C$ and $a_{l+2}\leq \frac{a_{l+1}}{2}=\frac{p^2+a_l}{2}<C$ hence $a_i<2C$ for all $i$. Note that there is an $a_k$ repeating at least twice (actually for infinitely many times) and $a_k=a_l$ causes $a_{k+i}=a_{l+i}$ hence this sequence becomes periodic. Let $a_i=pb_i$ for $i\geq T$.
\[2^{r_1}pk_1\rightarrow pk_1\rightarrow 2^{r_2}pk_2\rightarrow pk_2\rightarrow \dots \rightarrow 2^{r_m}pk_m\rightarrow pk_m\rightarrow 2^{r_1}pk_1\]Also we have the equations $p(p+k_i)=2^{r_{i+1}}pk_{i+1}$ or $p+k_i=2^{r_{i+1}}k_{i+1}$. By adding these we get $pm\geq k_1+\dots + k_m$ and since $k_i=1$ or $k_i\geq p+1$, we observe that there must exist some $k_i=1$. WLOG $k_1=1$. However, $p+1=2^{r_2}k_2\geq 2k_2$ thus, $k_2=1$. Similarily, $k_1=k_2=\dots =k_m=1$. So the length of the period must be $2$ where $p$ is a prime with $p+1=2^n$ 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.
joshualiu315
2533 posts
#13
Y by
Begin by noticing that we only need $a_{i+2} = a_i$ for any $i$. Take an arbitrary term $a_k = px$ where $a_k$ is odd and $p$ is the smallest prime factor of $a_k$. Note that $a_{k+2} = \tfrac{p(x+p)}{2} > a_k$ unless $x=1$ or $x=p$. Hence, the sequence is decreasing until one of the terms is $p^2$ or $p$.

If $a_k = p^2$, then $a_{k+2}=a_k=p^2$. If $a_k=p$, then $a_{k+1} = p(p+1)$; we have $a_{k+2} < a_k$ unless $p+1$ is a power of $2$, at which point the sequence satisfies $a_{k+2} = a_k$. Thus, the primes decrease until $p=3$, at which point $p+1$ is a power of $2$, implying periodicity. $\blacksquare$
Z K Y
N Quick Reply
G
H
=
a