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
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
Interesting inequality
sqing   1
N 23 minutes ago by sqing
Source: Own
Let $ a,b,c\geq \frac{1}{3}$ and $ a+b+c=\frac{1}{a}+\frac{1}{b}+\frac{1}{c}+8  . $ Prove that
$$ ab+bc +ca\leq 17+2\sqrt{73}$$Let $ a,b,c\geq \frac{1}{2}$ and $ a+b+c=\frac{1}{a}+\frac{1}{b}+\frac{1}{c}+8  . $ Prove that
$$ ab+bc +ca\leq \frac{469+115\sqrt{17}}{32}$$Let $ a,b,c\geq \frac{1}{5}$ and $ a+b+c=\frac{1}{a}+\frac{1}{b}+\frac{1}{c}+8  . $ Prove that
$$ ab+bc +ca\leq \frac{569+34\sqrt{281}}{25}$$
1 reply
sqing
43 minutes ago
sqing
23 minutes ago
True Generalization of 2023 CGMO T7
EthanWYX2009   0
41 minutes ago
Source: aops.com/community/c6h3132846p28384612
Given positive integer $n.$ Let $x_1,\ldots ,x_n\ge 0$ and $x_1x_2\cdots x_n\le 1.$ Show that
\[\sum_{k=1}^n\frac{1}{1+\sum_{j\neq k}x_j}\le\frac n{1+(n-1)\sqrt[n]{x_1x_2\cdots x_n}}.\]
0 replies
EthanWYX2009
41 minutes ago
0 replies
Not homogenous, messy inequality
Kimchiks926   10
N an hour ago by Marcus_Zhang
Source: Latvian TST for Baltic Way 2019 Problem 1
Prove that for all positive real numbers $a, b, c$ with $\frac{1}{a}+\frac{1}{b}+\frac{1}{c} =1$ the following inequality holds:
$$3(ab+bc+ca)+\frac{9}{a+b+c} \le \frac{9abc}{a+b+c} + 2(a^2+b^2+c^2)+1$$
10 replies
Kimchiks926
May 29, 2020
Marcus_Zhang
an hour ago
Interesting inequality
sqing   0
an hour ago
Source: Own
Let $ a,b,c\geq 2.$ Prove that
$$ (a+1)(b+1)(c +1)-\frac{9}{4}abc\leq 9$$$$ (a+1)(b+1)(c +1)-\frac{23}{10}abc\leq\frac{43}{5}$$
0 replies
sqing
an hour ago
0 replies
USA 97 [1/(b^3+c^3+abc) + ... >= 1/(abc)]
Maverick   45
N 2 hours ago by Marcus_Zhang
Source: USAMO 1997/5; also: ineq E2.37 in Book: Inegalitati; Authors:L.Panaitopol,V. Bandila,M.Lascu
Prove that, for all positive real numbers $ a$, $ b$, $ c$, the inequality
\[ \frac {1}{a^3 + b^3 + abc} + \frac {1}{b^3 + c^3 + abc} + \frac {1}{c^3 + a^3 + abc} \leq \frac {1}{abc}
\]
holds.
45 replies
Maverick
Sep 12, 2003
Marcus_Zhang
2 hours ago
The prime inequality learning problem
orl   137
N 3 hours ago by Marcus_Zhang
Source: IMO 1995, Problem 2, Day 1, IMO Shortlist 1995, A1
Let $ a$, $ b$, $ c$ be positive real numbers such that $ abc = 1$. Prove that
\[ \frac {1}{a^{3}\left(b + c\right)} + \frac {1}{b^{3}\left(c + a\right)} + \frac {1}{c^{3}\left(a + b\right)}\geq \frac {3}{2}.
\]
137 replies
orl
Nov 9, 2005
Marcus_Zhang
3 hours ago
hard ............ (2)
Noname23   2
N 3 hours ago by mathprodigy2011
problem
2 replies
Noname23
Yesterday at 5:10 PM
mathprodigy2011
3 hours ago
Abelkonkurransen 2025 3a
Lil_flip38   5
N 3 hours ago by ariopro1387
Source: abelkonkurransen
Let \(ABC\) be a triangle. Let \(E,F\) be the feet of the altitudes from \(B,C\) respectively. Let \(P,Q\) be the projections of \(B,C\) onto line \(EF\). Show that \(PE=QF\).
5 replies
Lil_flip38
Yesterday at 11:14 AM
ariopro1387
3 hours ago
Inequality by Po-Ru Loh
v_Enhance   54
N 4 hours ago by Marcus_Zhang
Source: ELMO 2003 Problem 4
Let $x,y,z \ge 1$ be real numbers such that \[ \frac{1}{x^2-1} + \frac{1}{y^2-1} + \frac{1}{z^2-1} = 1. \] Prove that \[ \frac{1}{x+1} + \frac{1}{y+1} + \frac{1}{z+1} \le 1. \]
54 replies
v_Enhance
Dec 29, 2012
Marcus_Zhang
4 hours ago
Problem 5
Functional_equation   14
N 4 hours ago by ali123456
Source: Azerbaijan third round 2020(JBMO Shortlist 2019 N6)
$a,b,c$ are non-negative integers.
Solve: $a!+5^b=7^c$

Proposed by Serbia
14 replies
Functional_equation
Jun 6, 2020
ali123456
4 hours ago
a^12+3^b=1788^c
falantrng   6
N 4 hours ago by ali123456
Source: Azerbaijan NMO 2024. Junior P3
Find all the natural numbers $a, b, c$ satisfying the following equation:
$$a^{12} + 3^b = 1788^c$$.
6 replies
+1 w
falantrng
Jul 8, 2024
ali123456
4 hours ago
stuck on a system of recurrence sequence
Nonecludiangeofan   0
5 hours ago
Please guys help me solve this nasty problem that i've been stuck for the past month:
Let \( (a_n) \) and \( (b_n) \) be two sequences defined by:
\[
a_{n+1} = \frac{1 + a_n + a_n b_n}{b_n} \quad \text{and} \quad b_{n+1} = \frac{1 + b_n + a_n b_n}{a_n}
\]for all \( n \ge 0 \), with initial values \( a_0 = 1 \) and \( b_0 = 2 \).

Prove that:
\[
a_{2024} < 5.
\]
(btw am still not comfortable with system of recurrence sequences)
0 replies
Nonecludiangeofan
5 hours ago
0 replies
A huge group of children compare their heights
Tintarn   5
N 5 hours ago by InCtrl
Source: All-Russian MO 2024 9.8
$1000$ children, no two of the same height, lined up. Let us call a pair of different children $(a,b)$ good if between them there is no child whose height is greater than the height of one of $a$ and $b$, but less than the height of the other. What is the greatest number of good pairs that could be formed? (Here, $(a,b)$ and $(b,a)$ are considered the same pair.)
Proposed by I. Bogdanov
5 replies
Tintarn
Apr 22, 2024
InCtrl
5 hours ago
Iran Inequality
mathmatecS   15
N 5 hours ago by Marcus_Zhang
Source: Iran 1998
When $x(\ge1),$ $y(\ge1),$ $z(\ge1)$ satisfy $\frac{1}{x}+\frac{1}{y}+\frac{1}{z}=2,$ prove in equality.
$$\sqrt{x+y+z}\ge\sqrt{x-1}+\sqrt{y-1}+\sqrt{z-1}$$
15 replies
mathmatecS
Jun 11, 2015
Marcus_Zhang
5 hours ago
IMO Shortlist 2013, Number Theory #3
lyukhson   46
N Mar 17, 2025 by hgomamogh
Source: IMO Shortlist 2013, Number Theory #3
Prove that there exist infinitely many positive integers $n$ such that the largest prime divisor of $n^4 + n^2 + 1$ is equal to the largest prime divisor of $(n+1)^4 + (n+1)^2 +1$.
46 replies
lyukhson
Jul 10, 2014
hgomamogh
Mar 17, 2025
IMO Shortlist 2013, Number Theory #3
G H J
Source: IMO Shortlist 2013, Number Theory #3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
asdf334
7586 posts
#35
Y by
Let $f(x)$ be the largest prime divisor of $x^2+x+1$. Since
\[n^4+n^2+1=((n-1)^2+(n-1)+1)(n^2+n+1)\]\[(n+1)^4+(n+1)^2+1=(n^2+n+1)((n+1)^2+(n+1)+1)\]we just want to find values of $n$ such that
\[f(n)\ge f(n-1),f(n+1).\]Therefore, it is enough to show that $f$ cannot eventually only increase. Since $f(n^2)=\text{max}(f(n-1),f(n))$ this is true, and we are done. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1868 posts
#36
Y by
Let $f(x)=x^2+x+1$ and $g(x)$ be the largest prime divisor of $x$. Note that $f(x-1)f(x)=f(x^2)$ and $g(xy)=\text{max}(g(x),g(y))$. Then we want to prove that there exist infinitely many positive integers $n$ such that $g(f(n^2))=g(f((n+1))^2)$

Claim. For any positive integer $N$, there exists a positive integer $n>N$ such that $g(f(n))=g(f(n^2))$.
Proof. We will prove that there exists an increasing sequence of such $n$. Firstly, manually check that
\[g(f(36))=\text{max}(g(f(5)),g(f(6)))=g(f(6)).\]Now note that there must be some positive integer $6\le k < 36$ such that $g(f(k))\le g(f(k+1))$. Then
\[g(f((k+1)^2))=\text{max}(g(f(k)),g(f(k+1)))=g(f(k+1)).\;\blacksquare\]
Claim. There exists infinitely many positive integers $n\ge 2$ such that $g(f(n))\ge g(f(n+1))$ and $g(f(n))\ge g(f(n-1))$.
Proof. Suppose not. Then $g(f(x))$ is strictly increasing or strictly decreasing past one point, which is impossible due to the previous claim.

Now simply note that such $n$ satisfy the given constraint. QED.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
starchan
1601 posts
#37
Y by
nice
solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pikapika007
294 posts
#38
Y by
Let $f(x) = x^2 + x + 1$ and $P(x)$ be the largest prime divisor of $x$. Then we wish to show that
\[P(f(n^2)) = P(f((n+1)^2).\]However, $f(x^2) = f(x)f(x-1)$, so this is equivalent to
\[\max(P(f(n), P(f(n-1)) = \max(P(f(n), P(f(n+1)).\]We will show that there exist infinitely many $n$ so that $P(f(n)) \ge \max(P(f(n-1)), P(f(n+1))$; this clearly finishes. Note that this is equivalent to showing that the sequence $a_n = P(f(n))$ cannot be strictly increasing; however, since $a_{n^2} = \max(a_n, a_{n-1})$ this is impossible and we are done. $\square$
This post has been edited 1 time. Last edited by pikapika007, Jun 24, 2023, 2:15 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4170 posts
#39
Y by
Let $a_n$ denote the largest prime factor of $n^2+n+1$. The largest prime factor of $n^4+n^2+1$ is just $\max(a_n,a_{n-1})$ because $n^4+n^2+1=(n^2+n+1)(n^2-n+1).$

Claim 1: There are infinitely many $n$ such that $a_{n+1}\geq a_n$. Note that given any prime $p$, there is a value of $n\pmod p$ such that $n^2+n+1$ is not divisible by $p$. Thus, given any finite list of primes, by Chinese Remainder Theorem we can pick $n$ to avoid all of them. Thus, the sequence $a_i$ is unbounded, which clearly shows the claim.

Claim 2: There are infinitely many $n$ such that $a_{n+1}\leq a_n$. Suppose for the sake of contradiction that after some point, the sequence is strictly increasing. Then, after a certain point, the largest prime divisor keeps increasing. The slowest that the "largest prime divisor" sequence is allowed to increase is by going to the next prime, and counting primes grows at a faster than linear rate by PNT, so for sufficiently large $n$, all $n^2+n+1$ has a prime factor greater than say $1434n$. However, when $n$ is a perfect square, we have that $$n^2+n+1=(n+\sqrt{n}+1)(n-\sqrt{n}+1).$$Both of these factors are less than $1434n$, hence contradiction as we know that there is a prime factor at least $1434n$ for all sufficiently large $n$.

Thus, there are infinitely many nonincreasing steps, and infinitely many nondecreasing steps. Thus, there must be infinitely many transitions between the two, and thus infinitely many turns where a nondecreasing step is followed by a nonincreasing step. Thus, there are infinitely many runs of 3 numbers such that the middle number is equal to the max of the 3 numbers, hence done as if $a_n\geq a_{n-1}$ and $a_n\geq a_{n+1}$, then $\max(a_{n-1},a_n)=\max(a_n,a_{n+1}).$
This post has been edited 2 times. Last edited by john0512, Sep 8, 2023, 4:07 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8855 posts
#40
Y by
Talk about being nonstandard!

Let $f(n) = n^2+n+1$. Notice that if we can find infinitely many $n$ such that $f(n-1), f(n+1) \leq f(n)$, then all these $n$ will satisfy the problem statement. It just suffices to show that there cannot exist an $N$ such that $f(n)$ is strictly increasing for all $n \geq N$.

To see this, construct a sequence $\{p_i\}$ where $p_0 = f(N)$ and $p_i > p_{i-1} = f\left(N +\prod_{j=1}^{i-1} p_i\right)$. It follows that for every $m$, $$p_0p_1 \cdots p_m \mid f(N + p_0p_1 \cdots p_{m-1}) = (p_0p_1 \cdots p_{m-1})^2 + (2N+1)(p_0p_1 \cdots p_{m-1})  + N^2+N+1.$$By picking $m$ large enough we have $p_0p_1 \cdots p_{m-1} > N^2+N+1$, hence contradiction.

It follows that $f(n)$ switches from increasing to decreasing and vice versa infinitely many times. Picking these maximum critical points $n$ yields the desired solutions.
This post has been edited 4 times. Last edited by HamstPan38825, Dec 31, 2023, 1:42 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_comb01
659 posts
#41
Y by
Very intuitive NT!
Let $f(n)=n^2+n+1$ and let $F(x)$ denote the largest prime factor of $x$. Note that $F(f(n))$ is clearly unbounded. Also it cannot be increasing or decreasing due to obvious reasons. Therefore it must have infinitely many "peaks". Hence we're done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alsk
28 posts
#42
Y by
Notice that $n^4+n^2+1 = (n^2+n+1)(n^2-n+1)$ and $(n+1)^4+(n+1)^2+1 = (n^2+2n+3)(n^2+n+1)$. Define $f(x)$ as the largest prime divisor of $x^2+x+1$. Then, we have that $f(x^2) = f(x)f(x-1)$.

We would like to show there exist infinitely many $n$ such that $f(n^2) = f((n+1)^2)$. Since $f(n^2) = \max(f(n), f(n-1))$, this is equivalent to showing that $f(x)$ has infinitely many ``local maxima.''

FTSoC assume that $f(x)$ has finitely many ``local maxima.'' Then, this implies that for big enough $N$, $f(x)$ is either strictly increasing or strictly decreasing for $x > N$. Since $f(x)$ always outputs a positive number, it is impossible for it to be always strictly decreasing, so we would like to show that $f$ cannot be strictly increasing forever.

This is easy to show since $f(n^2) = \max(f(n), f(n-1))$ and $n^2 > n$, so clearly it cannot be strictly increasing, done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
792 posts
#43
Y by
Define the function $f(x)=x^2+x+1$, and notice that our desired expressions factor as $f(n-1) \cdot f(n)$ and $f(n) \cdot f(n-1)$.

It remains to show that there exists infinitely many $n$ for which the largest prime factor of $f(n)$ is greater than or equal to the largest prime factor of $f(n-1)$ or $f(n)$. In other words, the largest prime factor of $f(n)$ is neither always increasing or decreasing for large $n$.

The decreasing claim is trivial. For the increasing portion, assume FTSOC there exists some $m$ for which the largest prime factors of each term in $f(m), f(m+1), f(m+2), \ldots$ is always strictly increasing. However, we simply note that
\[f((m+1)^2) = f(m) \cdot f(m+1),\]
so the greatest prime factor of $f((m+1)^2)$ is the greatest prime factor of $f(m+1)$, contradiction. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathematical717
34 posts
#44
Y by
Time For Another Unnecessary Long And Motivated Solution :P
Posting after a long while.....

Let $W(n)$ denote the largest prime factor of some $n$ and $f(n)=n^2+n+1$. We basically want that \[W(n^4+n^2+1)=W((n+1)^4+(n+1)^2+1)\]however notice the factorizations, \[n^4+n^2+1=f(n)f(n-1) \ \land \ (n+1)^4+(n+1)^2+1=f(n)f(n+1)\]which gets us to $max\{W(f(n)),W(f(n-1))\}=max\{W(f(n)),W(f(n+1))\}$ although, there are a few cases to deal with. We check a few $W(f(n))$ points by hand and want that $max$ on both points are $W(f(n))$ as then we are automatically done. We just want, \[W(f(n)) \ge max\{W(f(n+1)),W(f(n-1))\}\]to hold and call all such pairs as "good tuples".
Now, first assume that there are only finitely many points such that $W(f(n)) \ge W(f(n-1))$ then, obviously $\exists \ C$ such that $\forall x \ge C$ we have, $W(f(x)) \le W(f(x-1))$ as in this function becomes decreasing after a finite point. However this means that the primes dividing $n^2+n+1$ are bounded above. We shall prove the opposite. Basically $\exists$ arbitrarily large $n$ divisble by arbitrarily large primes $p$. Consider a large prime of the form $1 \ (mod \ 3)$ by dirichlet's theorem now by a bit of trivial quadratic residue check, one realizes that $(-3)$ is a quadratic residue and for any such $p$ we have some $\sqrt{-3} \equiv d \ (mod \ p)$. Now we have that, \[n^2+n+1 \equiv 0 \ (mod \ p) \iff (2n+1)^2 \equiv (-3) \ (mod \ p) \iff (2n+1) \equiv d \ (mod \ p) \iff n \equiv \frac{d-1}{2} \ (mod \ p)\]so arbitrarily large $n$ exist. Also modular inverse of $2$ exists due to $(2,p)=1$.
Thus we have infinitely many points where this sign flip occurs (or perhaps not a flip but this thing entirely as a chain), in any case if infinitely many such points also had $W(f(n)) \ge W(f(n+1))$ then we would be done. Hence assuming the opposite we have only finite such points where our original condition holds. So there is some finite constant $G'$ above which whenever there is a \[W(f(n)) \ge W(f(n-1)) \implies W(f(n))<W(f(n+1))\]and hence pick the first such point and on the next point if $W(f(n+2)) \le W(f(n+1))$ then this pair is a "good tuple" but we have already assumed that we have exceeded the finite set (Euclid's Infinitude Style Argument) and thus we must have a strict increasing $W$ after that point. We shall prove this is not the case as arbitrary points have, what we called "sign-flips" earlier.

Herein the idea comes after a while of playing around with say $n^2+n+1=p^a, k^2, k^{2a}$ and so on. All these forms have some conclusion which is not something we like. Generalizing to a general power seems too wanky to work with, but testing $n=1,2,\dots,10$ turns out we can wish for $a^2+a+1 \mid b^2+b+1$ and thus, \[a^2+a+1 \mid b^2+b-a^2-a \iff a^2+a+1 \mid (b-a)(b+a+1)\]again by a bit of Evan's "Blackjack Analogy" we have that, $a^2+a+1=b-a \implies b=(a+1)^2$ when we suddenly realize $f((n+1)^2)=f(n)f(n+1)$ and thus, \[W(f(n+1)^2))=max\{W(f(n)),W(f(n+1))\}\]when we let $n>G'$ arbitrary so that $f(n)<f(n+1)$ and hence $W(f(n+1)^2)=W(f(n+1))$ however, $(n+1)^2>(n+1)$ and thus $W(f((n+1)^2))>W(f(n+1))$ due to condition which creates an obvious contradiction!

Therefore we are done! Q.E.D :showoff:
Remark : I might have missed out on an equality somewhere, but I'm pretty sure it can be easily corrected if so. Also, kindly spot out major errors (if any). Secondly I know there are a lot of optimizations say for example, the problem statement itself points out $f((n+1)^2)$ observation but whatever. :rotfl:
This post has been edited 2 times. Last edited by mathematical717, Nov 13, 2024, 1:47 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Krave37
46 posts
#45
Y by
Factorizing $n^4+n^2+1$ and $(n+1)^4+(n+1)^2+1$ gives $(n^2+n+1)(n^2-n+1)$ and $(n^2+n+1)(n^2+3n+3)$ respectively.
Now, if we show that the largest prime diving both the equation comes from $(n^2+n+1)$ infinitely many times, we are done.
Claim: Above statement

Proof: Assume this happens finitely, then we will get a chain of increasing numbers having their largest prime coming from $(n^2+3n+3)$ and the other factor. Take the successive number, we see they share a factor Eg; take $n+2$, we see that it factorizes to $(n^2+3n+3)(n^2+5n+7)$, the larger polynomial becomes the smaller one. So, if after some $n$, the largest prime always comes from the larger polynomial, this means that the largest prime will always increase in $n^2+n+1$ form (in $n^2+3n+3$ is just $n=n+1$). This is obviously false as the largest prime of $n=n^2$ (n^4+n^2+1) equals that of $n^2+n+1$, so all the numbers in between $n$ and $n^2$ will either have equal or smaller largest prime than $n^2+n+1$, this solves our problem by contradiction. As there should be some $n$ for which the largest prime belongs to the smaller polynomial, in a chain of numbers where it belongs to the larger one. So, we can find two consecutive numbers.

For the largest prime coming from the smaller polynomial always, we can show that this means the largest prime decreases with $n$ but this can not happen due to the same above argument.
This post has been edited 1 time. Last edited by Krave37, Dec 18, 2024, 5:48 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sansgankrsngupta
127 posts
#46
Y by
OG! Same as v_enhance
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1723 posts
#47
Y by
Pick $p\equiv 1\pmod 3$ and let $n\ne 1$ satisfy $p\mid n^2+n+1$. Then the two possible values of $n$ sum to $p-1$ so one of them is $\le\tfrac{p-1}2$. Let this be $n$. Then choose $m$ minimized such that $m^2>n$. Then $(m-2)^2<n<m^2$. Fron $n\le\tfrac{p-1}2$ we get $m^2<c(p-1)$ for $\tfrac12<c<1$ and $p$ large enough. Now if $f(x)$ is the largest prime factor of $x$ then from the identity $x^4+x^2+1=(x^2+x+1)(x^2-x+1)$ we have $f((m-2)^4+(m-2)^2+1)<m^2-3m+3<m^2<p,f(m^4+m^2+1)<m^2+m+1<cp+\sqrt{c(p-1)}<p$ for large $p$ and $f(n)>p$. Thus the values of $f$ from $(m-2)^2$ to $m^2$ have some maximum $k\ne(m-2)^2,m^2$. Then $f(k^4+k^2+1)=\max(f((k-1)^2+(k-1)+1),f(k^2+k+1))=f(k^2+k+1)=\max(f((k+1)^2+(k+1)+1),f(k^2+k+1))=f((k+1)^4+(k+1)^2+1)$, so for arbitrarily large $p$ we generate arbitrarily many values of $k$ as desired.
This post has been edited 1 time. Last edited by OronSH, Mar 2, 2025, 10:52 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kotmhn
56 posts
#48
Y by
A post after ages here it is.

Let $f(n) = n^2+n+1$ and $P(N)$ be the largest divisor of $N$.
Obs that $f(n^2) = f(n-1)f(n+1)$ and hence $P(f(n^2)) = \max\{P(f(n-1)),P(f(n+1))\}$.
Now the condition in the question turns out to be equivalent to showing that $P$ never becomes monotonous.
For this we do the following:
Case 1: it becomes constant after a certain $N$.
This cannot happen, as it would imply that the set of prime divisors of $f(n)$ is bounded. To see other wise obs that $-3$ is a $QR$ when $p\equiv 1 \pmod{12}$ which, by dirichlet, shows that infinite primes divide some value of $f$.

Case 2: It becomes strictly increasing after a certain $N-2$.
Well,
$$ P(f(N+1))< P(f(N+2))<\cdots < P(f(N^2)) = \max\{P(f(N-1)),P(f(N+1))\} = P(f(N+1))$$a contradiction.

And voila! 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.
hgomamogh
34 posts
#49 • 1 Y
Y by OronSH
For $n > 0$, let $f(n) = n^2 + n + 1$, and let $g(n)$ be the maximum prime divisor of $f(n)$. Observe that $g(n + 1)$ can clearly not equal $g(n)$.

Lemma 1: There exist infinitely many positive integers $n$ such that $g(n + 1) > g(n)$.

Assume the contrary. Then, for some $N$, when $n > N$, $g(n + 1)$ is always less than $g(n)$, which is absurd because this sequence obviously reaches $0$.

Lemma 2: There exist infinitely many positive integers $n$ such that $g(n + 1) < g(n)$.

We assume the contrary again, noting that there exists some large positive integer $N$ for which $g(n + 1) > g(n)$ whenever $n \geq N$. However, we have an easy contradiction here because $g((n+1)^2)$ is either $g(n)$ or $g(n + 1)$ because of the identity $f(n^2)  = f(n)f(n - 1)$.

Lemma 3: There exist infinitely many positive integers $n$ such that $g(n - 1) < g(n)$ and $g(n) > g(n + 1)$.

This follows easily from Lemmas 1 and 2.

We are now ready to tackle the main problem. Take any integer $n$ satisfying Lemma 3, and observe that $f(n^2) = n^4 + n^2 + 1 = (n^2 + n + 1)(n^2 - n + 1) = f(n)f(n - 1)$ and hence $g(n^2) = \max(g(n), g(n - 1))$. Similarly, $g((n + 1)^2) = \max(g(n), g(n + 1))$. By the statement of Lemma 3, we conclude that $g(n^2) = g(n) = g((n + 1)^2)$, and we are done.
Z K Y
N Quick Reply
G
H
=
a