Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

G
Topic
First Poster
Last Poster
k a June Highlights and 2025 AoPS Online Class Information
jlacosta   0
Jun 2, 2025
Congratulations to all the mathletes who competed at National MATHCOUNTS! If you missed the exciting Countdown Round, you can watch the video at this link. Are you interested in training for MATHCOUNTS or AMC 10 contests? How would you like to train for these math competitions in half the time? We have accelerated sections which meet twice per week instead of once starting on July 8th (7:30pm ET). These sections fill quickly so enroll today!

[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC 10 Problem Series[/list]
For those interested in Olympiad level training in math, computer science, physics, and chemistry, be sure to enroll in our WOOT courses before August 19th to take advantage of early bird pricing!

Summer camps are starting this 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 a transformative 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][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/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, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

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
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3
Wednesday, Sep 24 - Dec 17

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Wednesday, Jun 25 - Dec 17
Sunday, Sep 7 - Mar 15
Wednesday, Sep 24 - Apr 1
Friday, Nov 14 - May 22

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
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!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Monday, Jun 30 - Jul 21
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

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
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
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22
Friday, Oct 3 - Jan 16

USACO Bronze Problem Series
Sunday, Jun 22 - Sep 1
Wednesday, Sep 3 - Dec 3
Thursday, Oct 30 - Feb 5
Tuesday, Dec 2 - Mar 3

Physics

Introduction to Physics
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Monday, Jun 23 - Dec 15
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Jun 2, 2025
0 replies
Cute geometry
Rijul saini   6
N 4 minutes ago by mathscrazy
Source: India IMOTC Practice Test 1 Problem 3
Let scalene $\triangle ABC$ have altitudes $BE, CF,$ circumcenter $O$ and orthocenter $H$. Let $R$ be a point on line $AO$. The points $P,Q$ are on lines $AB,AC$ respectively such that $RE \perp EP$ and $RF \perp FQ$. Prove that $PQ$ is perpendicular to $RH$.

Proposed by Rijul Saini
6 replies
Rijul saini
Yesterday at 6:51 PM
mathscrazy
4 minutes ago
Cycle in a graph with a minimal number of chords
GeorgeRP   6
N 28 minutes ago by dgrozev
Source: Bulgaria IMO TST 2025 P3
In King Arthur's court every knight is friends with at least $d>2$ other knights where friendship is mutual. Prove that King Arthur can place some of his knights around a round table in such a way that every knight is friends with the $2$ people adjacent to him and between them there are at least $\frac{d^2}{10}$ friendships of knights that are not adjacent to each other.
6 replies
1 viewing
GeorgeRP
May 14, 2025
dgrozev
28 minutes ago
2019 IGO Advanced P1
Dadgarnia   12
N 33 minutes ago by fe.
Source: 6th Iranian Geometry Olympiad (Advanced) P1
Circles $\omega_1$ and $\omega_2$ intersect each other at points $A$ and $B$. Point $C$ lies on the tangent line from $A$ to $\omega_1$ such that
$\angle ABC = 90^\circ$. Arbitrary line $\ell$ passes through $C$ and cuts $\omega_2$ at points $P$ and $Q$. Lines $AP$ and $AQ$ cut $\omega_1$ for the second time at points $X$ and $Z$ respectively. Let $Y$ be the foot of altitude from $A$ to $\ell$. Prove that points $X, Y$ and $Z$ are collinear.

Proposed by Iman Maghsoudi
12 replies
Dadgarnia
Sep 20, 2019
fe.
33 minutes ago
Beware the degeneracies!
Rijul saini   5
N an hour ago by atdaotlohbh
Source: India IMOTC 2025 Day 1 Problem 1
Let $a,b,c$ be real numbers satisfying $$\max \{a(b^2+c^2),b(c^2+a^2),c(a^2+b^2) \} \leqslant 2abc+1$$Prove that $$a(b^2+c^2)+b(c^2+a^2)+c(a^2+b^2) \leqslant 6abc+2$$and determine all cases of equality.

Proposed by Shantanu Nene
5 replies
1 viewing
Rijul saini
Yesterday at 6:30 PM
atdaotlohbh
an hour ago
No more topics!
IMO 2017 Problem 1
cjquines0   155
N Tuesday at 10:36 AM by ND_
Source: IMO 2017 Problem 1
For each integer $a_0 > 1$, define the sequence $a_0, a_1, a_2, \ldots$ for $n \geq 0$ as
$$a_{n+1} = 
\begin{cases}
\sqrt{a_n} & \text{if } \sqrt{a_n} \text{ is an integer,} \\
a_n + 3 & \text{otherwise.}
\end{cases}
$$Determine all values of $a_0$ such that there exists a number $A$ such that $a_n = A$ for infinitely many values of $n$.

Proposed by Stephan Wagner, South Africa
155 replies
cjquines0
Jul 18, 2017
ND_
Tuesday at 10:36 AM
IMO 2017 Problem 1
G H J
Source: IMO 2017 Problem 1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alba_tross1867
44 posts
#158 • 1 Y
Y by Hamzaachak
This problem holds so many cases, so I'd present shortly the main idea :
If $a_{0}  \equiv 0  \pmod{3}$ : We can finish immediately by strong induction of multiples of $3$ and prove it works.
If $a_{0}  \equiv 1  \pmod{3}$ : Again same idea to prove we'll definitely hit $a_{i} \equiv 2 \pmod{3}$ then the sequence will increasing forever
The remaining case is obvious.
This post has been edited 1 time. Last edited by alba_tross1867, Aug 5, 2024, 1:42 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
de-Kirschbaum
204 posts
#159
Y by
We claim that the answer is all $a_0=3k$.

It is obvious that $a_0 \equiv 2 \mod{3}$ doesn't work since no perfect squares are $2 \mod{3}$, and every term in the sequence is $2 \mod{3}$, which means the sequence will be monotonically increasing and thus no terms will appear infinitely many times.

Claim: All $3|a_0$ works. Since $x^2 \equiv 0 \mod{3} \implies x \equiv 0 \mod{3}$, we know that all elements of the sequence are divisible by $3$. Let us operate on the sequence until we must take square roots, then keep square rooting until we must take $+3$ as the next move. Call this number at $a_i=A=3t$, where $3t$ is not a perfect square. We will keep incrementing $t$ by $1$ until $3t$ becomes a perfect square, then taking square root recovers $A$. Thus $A$ appears infinitely many times.

Claim: All $a_0 \equiv 1 \mod{3}$ don't work. Note that $x^2 \equiv 1 \mod{3}$ could mean $x \equiv 1, 2\mod{3}$, and if the modularity ever flips to $2 \mod{3}$ the sequence becomes monotonically increasing and we are done. So we just have to prove that eventually the modularity flips from $1$ to $2 \mod{3}$.

Suppose a term $A$ does appear infinitely many times, that means the sequence should eventually be periodic. WLOG let $A=3k+1$ be the smallest element of the period. That means when we are at $a_i=3k+1$, we should eventually reach $a_j=(3k+1)^2$. However, note that $3k-1>0$ has $3k+1 \leq (3k-1)^2 < (3k+1)^2$. Since $(3k-1)^2 \equiv 1 \mod{3}$ we will always hit it first, and then the next element becomes $3k-1 \equiv 2 \mod{3}$ so the sequence cannot be eventually periodic.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dolphinday
1329 posts
#160
Y by
The answer is all $a_0$ so that $3 \mid a_0$.
Say there is some $k$ so that $a_k = (3x)^2$ for $x > 1$. Then $a_{k+1} = 3x$. Notice that $3x - 3)^2 = 9x^2 - 18x + 9 > 3x$ for all $x > 1$. Thus, $a_i$ will continuously keep on reaching smaller and smaller squares until $x = 3$. From here, we get that $a_i$ goes in a loop; $3 - 6 - 9 - 3 - \dots$, so for all $a_0$ there exists an $A$.
Notice that $2$ is not a quadratic residue modulo $3$ so if at some point, $a_i$ becomes $2 \pmod{3}$, there will be no such $A$ satisfying our requirements. Say that $a_0 \equiv 1\pmod{3}$. Then, similarly, say that there is a $k$ so that $a_k = (3x + 1)^2$. Notice that $(3x-2)^2 > 3x + 1$ for all $x > 1$. However if $x = 1$ then $(3x - 2) = 1$ which is clearly not a valid number in the sequence. So it follows that $a_i$ must continously decrease until it reaches $4$. Then, taking the square root of $4$ gets $2$, which is $2\pmod{3}$ so there exists no such $A$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ezpotd
1327 posts
#161
Y by
I claim the answer is only the numbers divisible by $3$.

Proof nothing else works: Our aim will to be show the sequence eventually hits a number that is $2$ mod $3$, at which point we are clearly done by quadratic residues (sequence just becomes adding $3$). Thus assume $a_0 \equiv 1 \mod 3$. Construct zones of the form $((3n - 1)^2, (3n + 1)^2]$. Clearly, if $a_i$ is not in such a zone, eventually we will have some $a_j = (3n + 2)^2$, at which point we fail. Now we claim that if $a_i$ is always $1$ mod $3$, it can never go up a zone and must eventually leave the zone by square root. The first part is trivial, we can never add $3$ to leave a zone since we will always just hit $(3n  +1)^2$. We are also eventually forced to hit $(3n  +1)^2$, at which point we go to $3n + 1$. We see $3n  +1 \le (3n - 1)^2$ is always true, so we always leave the zone. Since this process of going down zones can only occur a finite amount of times, we see that at some point we must end up not in a zone, at which point we are done.

Proof all multiples of $3$ work: Construct zones of the form $((3n)^2 , (3n + 3)^2 ]$, we can clearly see that we can never leave a zone by adding $3$, so we must always leave the zone by hitting a square root, and since $3n + 3 < 9n^2$ for all $n > 1$, and all numbers are in zones, we must always hit the bottom zone, at which point we are stuck there forever.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SimplisticFormulas
131 posts
#162 • 1 Y
Y by radian_51
We claim that only $a_{0}= 3k, k \in \mathbb{Z}^{+}$ will work

CLAIM 1: If $3 \mid a_{0}$, then $\{a_{i}\}_{i\ge 0}$ is eventually periodic:
PROOF: Note that $\{a_{i}\}_{i\ge 0}$ will remain constant modulo $3$.
For any $3k$ achieved in the sequence, let $3(a-1)^2<k< 3a^2$. Observe that after some time, $3(3a^2)$ is achieved, and the next value will be $3a<3k$. Hence, the sequence will ultimately reach $3 \cdot 1=3$, after which the sequence will become $3,6,9,3,6,9…$.

CLAIM 2: If $1 <a_{0} \equiv 1 (\mod 3)$, then $\{a_{i}\}_{i\ge 0}$ will eventually reach a number $m \equiv 2(\mod 3)$, after which, the sequence is monotonically increasing.
PROOF: Let $r=k^2$ be the first perfect square in the sequence. Consider $a$, the smallest positive integer not divisible by $3$ such that $k^2<a^4$. Note that the next value in the sequence will be $k<a^2$. Observe that $a^2$ is the smallest perfect square greater that $k$ not divisible by $3$. Therefore, the sequence will again eventually reach $a^2$, and therefore $a$ (since $a^2 \equiv 1 (\mod 3)$).
If $a \equiv 2(\mod 3)$, then we are done. If not, then this process will keep occurring. At some point, it wil reach $4$, which is the smallest integer $\equiv 1 (\mod 3)$. After reaching $4$, it will reach $2$, and we are done.

Finally, note that if $a_{0} \equiv 2 (\mod 3)$, then $\{a_{i}\}_{i\ge 0}$ is monotonically increasing since no square can leave a remainder of $2$ upon division by $3$.
This post has been edited 1 time. Last edited by SimplisticFormulas, Nov 24, 2024, 2:23 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
577 posts
#163
Y by
Too simple?!?!?!

Clearly all $a_0 \equiv 0 \pmod 3$ work. Meanwhile, if $a_0 \equiv 2 \pmod 3$ the sequence will be strictly increasing as there are no perfect squares that are $2 \pmod 3.$

Now, we show by induction that $a_0 \equiv 1 \pmod 3$ doesn't work. The base cases, $a_0=1, 4, 7$ are trivial. Now, suppose that the proposition for $a_0 \leq 3k+1$ holds. Then for $a_0 = 3k+4,$ if the least perfect square congruent to $a_0$ is the same as that of $a_0-3,$ then we are done. Otherwise, if it is of the form $(3m+2)^2,$ we are clearly done. However, if it is of the form $(3m+1)^2,$ we are done too by the strong inductive hypothesis.

Therefore $a_0=3k$ is the only solution.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
639 posts
#164
Y by
The answer is only $\boxed{\text{multiples of 3}}$. All $a_0 \equiv 2 \pmod{3}$ do not work because of quadratic residues and the resulting unbounded increase. All $a_0 \equiv 0 \pmod{3}$ clearly work as whenever we hit a perfect square the sequence decreases leading to a cycle. The main claim is that all $a_0 \equiv 1 \pmod{3}$ do not work which follows from strong induction. $a_0=4$ does not work by observation. If the next highest perfect square is of the form $(3n+2)^2, n \in \mathbb{Z}$ then the conclusion follows by the logic in the second sentence. Otherwise it is of the form $(3n+1)^2, n \in \mathbb{Z}$ which fails again from induction so 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.
cubres
123 posts
#165
Y by
Storage - grinding IMO probems
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
smileapple
1010 posts
#167
Y by
wait why is this problem so bashy? my sol was just to case on a0 mod 3 (similar to e.g. post #4) and some bounding gives easy gg
Since all perfect squares are either $0$ or $1$ modulo $3$, if we have $a_n\equiv2\pmod3$ for some index $n$, then $a_0$ fails. Hence all $a_0$ satisfying $a_0\equiv2\pmod3$ fail.

We show that all $a_0$ with $a_0\equiv1\pmod3$ fail as well. By induction, suppose that all elements of $\{1,4,\dots,3k-2\}$ fail. If $3k-2$ is not a perfect square, then having $a_0=3k-2$ gives $a_1=3k+1$, so having $a_0=3k+1$ will fail too. If $3k-2$ is a perfect square, having $a_0=3k+1$ will eventually yield some $a_j$ such that $a_j\le\sqrt{3k-2}+2<3k+1$ for $k>0$ and $a_0=3k+1$ will likewise fail by inductive hypothesis.

Note that $A=3$ works if $a_0\equiv0\pmod3$. Indeed, all elements of our sequence will be divisible by $3$. If $9b^2\le a_i<9(b+1)^2$ and $b>1$ for some $i$, then $a_j=3(b+1)<9b^2\le a_i$ for some $j>i$. Hence our sequence will continually exhibit smaller elements until $b=0$, at which point it will cycle between $3$, $6$, and $9$. $\blacksquare$
This post has been edited 1 time. Last edited by smileapple, Jan 4, 2025, 4:48 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
optimusprime154
28 posts
#168 • 1 Y
Y by SorPEEK
if \(a_0 \equiv 2 \pmod {3}\) then all \(a_i \equiv 2 \pmod {3}\) so none of them can be a perfect square and it makes every one of them different.
if \(a_0 \equiv 0 \pmod{3}\) then we can always find a number \(k\) such that \(n + 3k = 9t^2\) for some \(t\) and thats when the cycle begins when the smallest number of that type is reached.
if\(a_0 \equiv 1 \pmod {3}\) then we can always get to \(2 \pmod{3}\) by that sequence and its quite easy to prove, this sequence fails for \(1\) and \(4\) then induction to finish
This post has been edited 2 times. Last edited by optimusprime154, Jan 8, 2025, 5:15 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Saucepan_man02
1365 posts
#169 • 1 Y
Y by Sreepranad
If $a_0 \equiv 0 \pmod 3$:

Note that, every term in the sequence is divisible by $3$.
Let $m$ denote the minimum term in the sequence. If $m \ge 6$, then: note that: $(m-3)^2 \ge m$. Thus, there exists some $k$ such that: $(m-3)^2 \ge k^2 \ge m$. Thus: we would have $k \le m-3 < m$ in the sequence, contradiction. Thus: $m=3$ and the sequence $3 \to 6 \to 9 \to 3 \cdots$ repeats.

If $a_0 \equiv 1 \pmod 3$:

Let $m$ denote the minimum term in the sequence. If $m \equiv 2 \pmod 3$, we are done as $2 \pmod 3$ is not a QR, which implies the sequence gets unbounded and increases monotonously (after some point). If $m \equiv 1 \pmod 3$, then we have $m \ge 4$. Then: $(m-2)^2 \ge m$. Therefore, there exists some integer $k$ such that: $(m-2)^2 \ge k^2 \ge m$. Therefore: $k \le m-2 < m$ exists in the sequence, which leads to contradiction. Thus we must have: $m \equiv 2 \pmod 3$ and we are done with no such value of $a_0$.

If $a_0 \equiv 2 \pmod 3$:

Evidently, $2 \pmod 3$ is not a QR, which implies the sequence gets unbounded and increases monotonously (after some point).

Thus, we are done with $3|a_0$ or any value of $a_0 = 3k$ works, where $k \in \mathbb N$.
This post has been edited 1 time. Last edited by Saucepan_man02, Jan 17, 2025, 12:32 PM
Reason: EDIT
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
iStud
268 posts
#170
Y by
didn't expected to use strong induction on this problem :-D

Note that $k^2\equiv 0,1\pmod{3}$ for all $k\in\mathbb{N}$. If $a_0\equiv 2\pmod{3}$, then the sequence becomes $a_0,a_0+3,a_0+6,\dots$ and eventually $\{a_n\}$ will be an unbounded sequence, which doesn't meet the problem desire. If $a_0\equiv 0\pmod{3}$, we divide into two cases. First case when $a_0$ is a quadratic number clearly works since $\{a_n\}$ is literally bounded by $a_0$, so by doing infinite terms of the sequence, we'll eventually ended up having a number $A$ such that $a_n=A$ for infinitely many values of $n$. Now if $a_0$ isn't a quadratic form, then we can assure that we will have a quadratic number $a_p=a_0+3p$ for some $p\in\mathbb{N}$, so we're done by using the similar argument as the previous case.

Now we come up with the case when $a_0\equiv 1\pmod{3}$. The idea is quite simple; we use strong induction. Base case when $a_0=4$ (quadratic) and $a_0=7$ (not quadratic) are done just by checking them. Assume that for the induction hypothesis, we have $a_0=k$ doesn't works for some $k\in\mathbb{N}$. Note that we can have $k$ and $k+3$ are both quadratic numbers iff $k=1$, which clearly opposing the problem condition ($a_0>1$). So we'll basically divide into three cases from now on. If none of $k$ and $k+3$ are quadratic numbers, then we're done by our induction hypothesis. The similar argument applies for when $k+3$ is a quadratic number. Now for the case when $k$ is quadratic, let $k=t^2$ for some $t\in\mathbb{N}$. Then the sequence becomes $t^2,t,\dots$. Now we have $\{a_n\}$ is bounded by $k=t^2$, so by noticing that $t<t^2=k$ (since $t^2=k\ne 1$ and $t\in\mathbb{N}$) we're done by the induction hypothesis.

Overall, all $a_0$ such that $3\mid a_0$ work as solutions. $\blacksquare$
This post has been edited 1 time. Last edited by iStud, Apr 3, 2025, 4:35 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lelouchvigeo
183 posts
#171 • 1 Y
Y by alexanderhamilton124
Easy headsolve
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueprimes
363 posts
#172
Y by
The answer is all $3 \mid a_0$.

To prove these work, we strong induct on $a_0$. Note that the cases $a_0 = 3, 6, 9,$ all eventually cycle $3, 6, 9,$ which works, now assume the claim holds for $a_0 \le 3m$ for some integer $m \ge 3$. When $a_0 = 3m + 3$, the sequence eventually generates a term $3k$ where $k \in \mathbb{Z}_{\ge 0}$ such that $(3k - 3)^2 < 3m + 3 \le (3k)^2$. So
\[ 3k \le (3k - 3)^2 \iff 3k^2 - 7k + 3 \ge 0\]which is true since $k \ge 2$. Thus $3k < 3m + 3$ so our induction is complete.

Now we show everything else fails, clearly if $a_0 \equiv 2 \pmod{3}$ no perfect square emerges so the sequence diverges. On the other hand, if $a_0 \equiv 1 \pmod{3}$, assume that the sequence works. Then we can never have a $2 \pmod{3}$ term by above, we will strong induct to show that such a sequence cannot exist.

Note that the cases $a_0 = 4, 7, 10, 13, 16$ eventually yields $4, 2, \dots, $ which diverges. Now assume the sequence eventually diverges for $a_0 \le 3m + 1$ for an integer $m \ge 6$. Let $a_0 = 3m + 4$, then at some point we generate the term $3k + 1$ where $(3k - 2)^2 < 3m + 4 \le (3k + 1)^2$ but
\[ 3k + 1 \le (3k - 2)^2 \iff 3k^2 - 5k + 1 \ge 0 \]which holds since $k \ge 2$. So $3k + 1 < 3m + 4$ and the induction is complete.

Voilà.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ND_
60 posts
#173
Y by
Answer: $3 \mid a_0$

Case 1: $a_0 \equiv 2$: The sequence is obviously increasing as $\sqrt {a_n}$ is never a square.
Case 2: $a_0 \equiv 0$: By PHP, some term must occur infinitely many times as the sequence can only take the multiples of 3 in $\left[3, 9 \left ( \left \lceil \sqrt {\frac{a_n}{9}} \right \rceil \right )^2\right]$
Case 3: $a_0 \equiv 1$: ${a}$ can only take values in Case 1, or smaller values in this case, none of which work by induction on $a_0$.
Z K Y
N Quick Reply
G
H
=
a