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
\angle ABC + \angle ABS = \angle ACB + \angle ACS = 180
matinyousefi   20
N 12 minutes ago by L13832
Source: Iran MO Third Round 2021 G1
An acute triangle $ABC$ is given. Let $D$ be the foot of altitude dropped for $A$. Tangents from $D$ to circles with diameters $AB$ and $AC$ intersects with the said circles at $K$ and $L$, in respective. Point $S$ in the plane is given so that $\angle ABC + \angle ABS = \angle ACB + \angle ACS = 180^\circ$. Prove that $A, K, L$ and $S$ lie on a circle.
20 replies
matinyousefi
Sep 25, 2021
L13832
12 minutes ago
how do we find a construction?
iStud   1
N 19 minutes ago by BR1F1SZ
Source: Monthly Contest KTOM March 2025 P4 Essay
Given a chess board $n\times n$ with $n>3$ with all the unit squares are initially white coloured. Every move, we can turn the color (from white to black or otherwise) from the 5 unit squares that form this T-pentomino which can be rotated or reflexed (see the image below). Determine all natural numbers $n$ such that all unit squares on the board can be made into all black after a finite number of moves.
1 reply
iStud
Today at 3:59 AM
BR1F1SZ
19 minutes ago
2 var inquality
sqing   7
N an hour ago by ionbursuc
Source: Own
Let $ a ,  b\geq 0 $ and $ \frac{1}{a^2+1}+\frac{1}{b^2+1}\le   \frac{3}{2}. $ Show that$$ a+b+ab\geq1$$Let $ a ,  b\geq 0 $ and $ \frac{1}{a^2+1}+\frac{1}{b^2+1}\le   \frac{5}{6}. $ Show that$$ a+b+ab\geq2$$
7 replies
sqing
Yesterday at 4:06 AM
ionbursuc
an hour ago
Polynomial application with complex number
RenheMiResembleRice   1
N an hour ago by Mathzeus1024
$P\left(x\right)=128x^{4}-32x^{2}+1$

By examining the roots of P(x), find the exact value of $\sin\left(\frac{\pi}{8}\right)\sin\left(\frac{3\pi}{8}\right)$
1 reply
RenheMiResembleRice
an hour ago
Mathzeus1024
an hour ago
square geometry bisect $\angle ESB$
GorgonMathDota   12
N an hour ago by AshAuktober
Source: BMO SL 2019, G1
Let $ABCD$ be a square of center $O$ and let $M$ be the symmetric of the point $B$ with respect to point $A$. Let $E$ be the intersection of $CM$ and $BD$, and let $S$ be the intersection of $MO$ and $AE$. Show that $SO$ is the angle bisector of $\angle ESB$.
12 replies
GorgonMathDota
Nov 8, 2020
AshAuktober
an hour ago
Number of modular sequences with different residues
PerfectPlayer   1
N an hour ago by Z4ADies
Source: Turkey TST 2025 Day 3 P9
Let \(n\) be a positive integer. For every positive integer $1 \leq k \leq n$ the sequence ${\displaystyle {\{ a_{i}+ki\}}_{i=1}^{n }}$ is defined, where $a_1,a_2, \dots ,a_n$ are integers. Among these \(n\) sequences, for at most how many of them does all the elements of the sequence give different remainders when divided by \(n\)?
1 reply
PerfectPlayer
Today at 4:17 AM
Z4ADies
an hour ago
D1010 : How it is possible ?
Dattier   13
N 2 hours ago by Dattier
Source: les dattes à Dattier
Is it true that$$\forall n \in \mathbb N^*, (24^n \times B \mod A) \mod 2 = 0 $$?

A=1728400904217815186787639216753921417860004366580219212750904
024377969478249664644267971025952530803647043121025959018172048
336953969062151534282052863307398281681465366665810775710867856
720572225880311472925624694183944650261079955759251769111321319
421445397848518597584590900951222557860592579005088853698315463
815905425095325508106272375728975

B=2275643401548081847207782760491442295266487354750527085289354
965376765188468052271190172787064418854789322484305145310707614
546573398182642923893780527037224143380886260467760991228567577
953725945090125797351518670892779468968705801340068681556238850
340398780828104506916965606659768601942798676554332768254089685
307970609932846902
13 replies
Dattier
Mar 10, 2025
Dattier
2 hours ago
Interesting inequality
sqing   1
N 2 hours ago by sqing
Source: Own
Let $ a,b\geq 2  . $ Prove that
$$ (a^2-1)(b^2-1) (1-ab)+\frac{27}{8}a^2b^2\leq 27$$$$ (a^2-1)(b^2-1)(1-a^2b^2 )+\frac{81}{4}a^2b^2     \leq 189$$$$ (a^2-1)(b^2-1)(1-a^2b^2 )+ 162  ab  \leq 513$$$$  (a^2-1)(b^2-1) (1-a^2b^2 )+21 a^2b^2\leq \frac{3219}{16}$$$$ (a^2-1)(b^2-1) (1-ab)+\frac{27}{8}a^2b^2\leq\frac{415+61\sqrt{61}}{18}$$
1 reply
sqing
3 hours ago
sqing
2 hours ago
Minimal Grouping in a Complete Graph
swynca   1
N 2 hours ago by swynca
Source: 2025 Turkey TST P1
In a complete graph with $2025$ vertices, each edge has one of the colors $r_1$, $r_2$, or $r_3$. For each $i = 1,2,3$, if the $2025$ vertices can be divided into $a_i$ groups such that any two vertices connected by an edge of color $r_i$ are in different groups, find the minimum possible value of $a_1 + a_2 + a_3$.
1 reply
swynca
5 hours ago
swynca
2 hours ago
Nice FE as the First Day Finale
swynca   1
N 2 hours ago by swynca
Source: 2025 Turkey TST P3
Find all $f: \mathbb{R} \rightarrow \mathbb{R}$ such that, for all $x,y \in \mathbb{R}-\{0\}$,
$$ f(x) \neq 0 \text{ and } \frac{f(x)}{f(y)} + \frac{f(y)}{f(x)} - f \left( \frac{x}{y}-\frac{y}{x} \right) =2 $$
1 reply
swynca
4 hours ago
swynca
2 hours ago
Cn/lnn bound for S
EthanWYX2009   0
2 hours ago
Source: 2025 March 谜之竞赛-2
Prove that there exists an constant $C,$ such that for all integer $n\ge 2$ and a subset $S$ of $[n],$ satisfy $a\mid\tbinom ab$ for all $a,b\in S,$ $a>b,$ then $|S|\le \frac{Cn}{\ln n}.$

Created by Yuxing Ye
0 replies
1 viewing
EthanWYX2009
2 hours ago
0 replies
Natural function and cubelike expression
sarjinius   2
N 2 hours ago by Kaimiaku
Source: Philippine Mathematical Olympiad 2025 P8
Let $\mathbb{N}$ be the set of positive integers. Find all functions $f : \mathbb{N} \to \mathbb{N}$ such that for all $m, n \in \mathbb{N}$, \[m^2f(m) + n^2f(n) + 3mn(m + n)\]is a perfect cube.
2 replies
sarjinius
Mar 9, 2025
Kaimiaku
2 hours ago
hard problem
Noname23   3
N 2 hours ago by Noname23
problem
3 replies
Noname23
Sunday at 4:57 PM
Noname23
2 hours ago
Roots, bounding and other delusions
anantmudgal09   28
N 3 hours ago by kes0716
Source: INMO 2021 Problem 6
Let $\mathbb{R}[x]$ be the set of all polynomials with real coefficients. Find all functions $f: \mathbb{R}[x] \rightarrow \mathbb{R}[x]$ satisfying the following conditions:

[list]
[*] $f$ maps the zero polynomial to itself,
[*] for any non-zero polynomial $P \in \mathbb{R}[x]$, $\text{deg} \, f(P) \le 1+ \text{deg} \, P$, and
[*] for any two polynomials $P, Q \in \mathbb{R}[x]$, the polynomials $P-f(Q)$ and $Q-f(P)$ have the same set of real roots.
[/list]

Proposed by Anant Mudgal, Sutanay Bhattacharya, Pulkit Sinha
28 replies
anantmudgal09
Mar 7, 2021
kes0716
3 hours ago
IMO Shortlist 2013, Number Theory #3
lyukhson   46
N Yesterday at 5:56 PM 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
Yesterday at 5:56 PM
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
7579 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
1865 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
8853 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
791 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
1720 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
33 posts
#49
Y by
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