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

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. 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 events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/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, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Apr 2, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
Common tangent to diameter circles
Stuttgarden   2
N 24 minutes ago by Giant_PT
Source: Spain MO 2025 P2
The cyclic quadrilateral $ABCD$, inscribed in the circle $\Gamma$, satisfies $AB=BC$ and $CD=DA$, and $E$ is the intersection point of the diagonals $AC$ and $BD$. The circle with center $A$ and radius $AE$ intersects $\Gamma$ in two points $F$ and $G$. Prove that the line $FG$ is tangent to the circles with diameters $BE$ and $DE$.
2 replies
Stuttgarden
Mar 31, 2025
Giant_PT
24 minutes ago
functional equation
hanzo.ei   2
N 36 minutes ago by MathLuis

Find all functions \( f : \mathbb{R} \to \mathbb{R} \) satisfying the equation
\[
(f(x+y))^2= f(x^2) + f(2xf(y) + y^2), \quad \forall x, y \in \mathbb{R}.
\]
2 replies
1 viewing
hanzo.ei
5 hours ago
MathLuis
36 minutes ago
Geometry
youochange   5
N 37 minutes ago by lolsamo
m:}
Let $\triangle ABC$ be a triangle inscribed in a circle, where the tangents to the circle at points $B$ and $C$ intersect at the point $P$. Let $M$ be a point on the arc $AC$ (not containing $B$) such that $M \neq A$ and $M \neq C$. Let the lines $BC$ and $AM$ intersect at point $K$. Let $P'$ be the reflection of $P$ with respect to the line $AM$. The lines $AP'$ and $PM$ intersect at point $Q$, and $PM$ intersects the circumcircle of $\triangle ABC$ again at point $N$.

Prove that the point $Q$ lies on the circumcircle of $\triangle ANK$.
5 replies
youochange
Today at 11:27 AM
lolsamo
37 minutes ago
Something nice
KhuongTrang   25
N an hour ago by KhuongTrang
Source: own
Problem. Given $a,b,c$ be non-negative real numbers such that $ab+bc+ca=1.$ Prove that

$$\sqrt{a+1}+\sqrt{b+1}+\sqrt{c+1}\le 1+2\sqrt{a+b+c+abc}.$$
25 replies
KhuongTrang
Nov 1, 2023
KhuongTrang
an hour ago
Line Combining Fermat Point, Orthocenter, and Centroid
cooljoseph   0
2 hours ago
On triangle $ABC$, draw exterior equilateral triangles on sides $AB$ and $AC$ to obtain $ABC'$ and $ACB'$, respectively. Let $X$ be the intersection of the altitude through $B$ and the median through $C$. Let $Y$ be the intersection of the altitude through $A$ and line $CC'$. Let $Z$ be the intersection of the median through $A$ and the line $BB'$. Prove that $X$, $Y$, and $Z$ lie on a common line.

IMAGE
0 replies
cooljoseph
2 hours ago
0 replies
Path within S which does not meet itself
orl   5
N 3 hours ago by atdaotlohbh
Source: IMO 1982, Day 2, Problem 6
Let $S$ be a square with sides length $100$. Let $L$ be a path within $S$ which does not meet itself and which is composed of line segments $A_0A_1,A_1A_2,A_2A_3,\ldots,A_{n-1}A_n$ with $A_0=A_n$. Suppose that for every point $P$ on the boundary of $S$ there is a point of $L$ at a distance from $P$ no greater than $\frac {1} {2}$. Prove that there are two points $X$ and $Y$ of $L$ such that the distance between $X$ and $Y$ is not greater than $1$ and the length of the part of $L$ which lies between $X$ and $Y$ is not smaller than $198$.
5 replies
orl
Nov 11, 2005
atdaotlohbh
3 hours ago
Right tetrahedron of fixed volume and min perimeter
Miquel-point   0
4 hours ago
Source: Romanian IMO TST 1981, Day 4 P3
Determine the lengths of the edges of a right tetrahedron of volume $a^3$ so that the sum of its edges' lengths is minumum.

0 replies
Miquel-point
4 hours ago
0 replies
V \le RS/2 in tetrahderon with equil base
Miquel-point   0
4 hours ago
Source: Romanian IMO TST 1981, Day 4 P2
Consider a tetrahedron $OABC$ with $ABC$ equilateral. Let $S$ be the area of the triangle of sides $OA$, $OB$ and $OC$. Show that $V\leqslant \dfrac12 RS$ where $R$ is the circumradius and $V$ is the volume of the tetrahedron.

Stere Ianuș
0 replies
Miquel-point
4 hours ago
0 replies
Beautiful problem
luutrongphuc   21
N 4 hours ago by hukilau17
Let triangle $ABC$ be circumscribed about circle $(I)$, and let $H$ be the orthocenter of $\triangle ABC$. The circle $(I)$ touches line $BC$ at $D$. The tangent to the circle $(BHC)$ at $H$ meets $BC$ at $S$. Let $J$ be the midpoint of $HI$, and let the line $DJ$ meet $(I)$ again at $X$. The tangent to $(I)$ parallel to $BC$ meets the line $AX$ at $T$. Prove that $ST$ is tangent to $(I)$.
21 replies
luutrongphuc
Apr 4, 2025
hukilau17
4 hours ago
Point moving towards vertices and changing plans again and again
Miquel-point   0
4 hours ago
Source: Romanian IMO TST 1981, Day 3 P6
In the plane of traingle $ABC$ we consider a variable point $M$ which moves on line $MA$ towards $A$. Halfway there, it stops and starts moving in a straight line line towards $B$. Halfway there, it stops and starts moving in a straight line towards $C$, and halfway there it stops and starts moving in a straight line towards $A$, and so on. Show that $M$ will get as close as we want to the vertices of a fixed triangle with area $\text{area}(ABC)/7$.
0 replies
Miquel-point
4 hours ago
0 replies
max(PA,PC) when ABCD square
Miquel-point   1
N 4 hours ago by sixoneeight
Source: Romanian IMO TST 1981, P2 Day 1
Determine the set of points $P$ in the plane of a square $ABCD$ for which \[\max (PA, PC)=\frac1{\sqrt2}(PB+PD).\]
Titu Andreescu and I.V. Maftei
1 reply
Miquel-point
5 hours ago
sixoneeight
4 hours ago
Incircle-excircle config geo
a_507_bc   13
N 4 hours ago by Bonime
Source: Serbia 2024 MO Problem 4
Let $ABC$ be a triangle with incenter and $A$-excenter $I, I_a$, whose incircle touches $BC, CA, AB$ at $D, E, F$. The line $EF$ meets $BC$ at $P$ and $X$ is the midpoint of $PD$. Show that $XI \perp DI_a$.
13 replies
a_507_bc
Apr 4, 2024
Bonime
4 hours ago
Two Orthocenters and an Invariant Point
Mathdreams   2
N 4 hours ago by hukilau17
Source: 2025 Nepal Mock TST Day 1 Problem 3
Let $\triangle{ABC}$ be a triangle, and let $P$ be an arbitrary point on line $AO$, where $O$ is the circumcenter of $\triangle{ABC}$. Define $H_1$ and $H_2$ as the orthocenters of triangles $\triangle{APB}$ and $\triangle{APC}$. Prove that $H_1H_2$ passes through a fixed point which is independent of the choice of $P$.

(Kritesh Dhakal, Nepal)
2 replies
Mathdreams
Today at 1:30 PM
hukilau17
4 hours ago
Cute inequality in equilateral triangle
Miquel-point   0
5 hours ago
Source: Romanian IMO TST 1981, Day 3 P5
Let $ABC$ be an equilateral triangle, $M$ be a point inside it, and $A',B',C'$ be the intersections of $AM,\; BM,\; CM$ with the sides of $ABC$. If $A'',\; B'',\; C''$ are the midpoints of $BC$, $CA$, $AB$, show that there is a triangle with sides $A'A''$, $B'B''$ and $C'C''$.

Laurențiu Panaitopol
0 replies
Miquel-point
5 hours ago
0 replies
IMO 2017 Problem 1
cjquines0   154
N Apr 3, 2025 by blueprimes
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
154 replies
cjquines0
Jul 18, 2017
blueprimes
Apr 3, 2025
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.
lnzhonglp
120 posts
#157
Y by
The answer is all multiples of $3$.

If $a_0 \equiv 2 \pmod 3$, then there are no perfect squares in the sequence, so the sequence is an arithmetic sequence and no term will repeat.

If $a_0 \equiv 1 \pmod 3$, we will use induction to prove that the sequence has a $2 \pmod 3$ term no term will appear infinitely many times. This is clearly true for $a_0 = 4$, as the sequence is $4, 2$. Now suppose the claim is true up to $4^{2^n}$. Then up to $4^{2^{n+1}}$, the sequence will reach a perfect square whose square root is either $2 \pmod 3$ or $1 \pmod 3$ and $\leq 4^{2^n}$, so the sequence will always have a $2 \pmod 3$ term. Therefore, all $a_0 \equiv 1 \pmod 3$ do not work.

If $a_0 \equiv 0 \pmod 3$, then all terms of the sequence are multiples of $3$. Let $m^2$ be a perfect square in the sequence. If there are no $0 \pmod 3$ perfect squares between $m$ and $m^2$, then there is a cycle in the sequence. Otherwise, we repeat can this process with a smaller perfect square between $m$ and $m^2$. Since all terms of the sequence are positive, eventually we will find a cycle in the sequence. Therefore, all $a_0 \equiv 0 \pmod 3$ work.
Z K Y
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
188 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
1318 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
1252 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
85 posts
#162
Y by
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
526 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
617 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
104 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
18 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
1306 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
260 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
176 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
326 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
N Quick Reply
G
H
=
a