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
Centroid Distance Identity in Triangle
zeta1   2
N 5 minutes ago by zeta1
Let M be any point inside triangle ABC, and let G be the centroid of triangle ABC. Prove that:

\[
|MA|^2 + |MB|^2 + |MC|^2 = |GA|^2 + |GB|^2 + |GC|^2 + 3|MG|^2
\]
2 replies
+1 w
zeta1
an hour ago
zeta1
5 minutes ago
Advanced topics in Inequalities
va2010   4
N 6 minutes ago by sqing
So a while ago, I compiled some tricks on inequalities. You are welcome to post solutions below!
4 replies
va2010
Mar 7, 2015
sqing
6 minutes ago
Inequality while on a trip
giangtruong13   8
N 12 minutes ago by GeoMorocco
Source: Trip
I find this inequality while i was on a trip, it was pretty fun and i have some new experience:
Let $a,b,c \geq -2$ such that: $a^2+b^2+c^2 \leq 8$. Find the maximum: $$A= \sum_{cyc} \frac{1}{16+a^3}$$
8 replies
giangtruong13
Apr 12, 2025
GeoMorocco
12 minutes ago
Directed edge chromatic numbers over a tournament
v_Enhance   32
N 13 minutes ago by quantam13
Source: USA January TST for 56th IMO, Problem 2
A tournament is a directed graph for which every (unordered) pair of vertices has a single directed edge from one vertex to the other. Let us define a proper directed-edge-coloring to be an assignment of a color to every (directed) edge, so that for every pair of directed edges $\overrightarrow{uv}$ and $\overrightarrow{vw}$, those two edges are in different colors. Note that it is permissible for $\overrightarrow{uv}$ and $\overrightarrow{uw}$ to be the same color. The directed-edge-chromatic-number of a tournament is defined to be the minimum total number of colors that can be used in order to create a proper directed-edge-coloring. For each $n$, determine the minimum directed-edge-chromatic-number over all tournaments on $n$ vertices.

Proposed by Po-Shen Loh
32 replies
v_Enhance
Mar 22, 2015
quantam13
13 minutes ago
No more topics!
IMO Shortlist 2013, Number Theory #1
lyukhson   151
N Yesterday at 12:32 AM by InterLoop
Source: IMO Shortlist 2013, Number Theory #1
Let $\mathbb{Z} _{>0}$ be the set of positive integers. Find all functions $f: \mathbb{Z} _{>0}\rightarrow \mathbb{Z} _{>0}$ such that
\[ m^2 + f(n) \mid mf(m) +n \]
for all positive integers $m$ and $n$.
151 replies
lyukhson
Jul 10, 2014
InterLoop
Yesterday at 12:32 AM
IMO Shortlist 2013, Number Theory #1
G H J
Source: IMO Shortlist 2013, Number Theory #1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
RedFireTruck
4220 posts
#147 • 1 Y
Y by cubres
Letting $m=f(n)$ gives $(f(n)^2+f(n))|(f(n)f(f(n))+n)$ so $f(n)|n$.

Since $f(1)|1$, $f(1)=1$.

Plugging in $n=1$ gives $(m^2+1)|(mf(m)+1)$. Consider $x\ge 2$. Since $f(x)<x$ gives $(x^2+1)|(xf(x)+1)<(x^2+1)$ but $f(x)|x$, we must have $\boxed{f(x)=x}$ for all $x$.
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
#149 • 1 Y
Y by cubres
I claim the answer is only the identity, it is easy to verify that this works.

Take $m = f(n)$, we have $f(n) \mid f(n)^2 + f(n) \mid f(n)f(f(n)) + n$ so $f(n) \mid n$, forcing $f(1) = 1$. Then set $n = 1$, we have $f(1) - 1 \le m (f(m) - m)$, implying $m \ge f(m)$, since we already know $f(m) \mid m$ we have $m = f(m)$ for all $m$ as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AshAuktober
987 posts
#150 • 1 Y
Y by cubres
Denote the given assertion by $P(m, n)$.
We claim the full solution set is $f(x) = x$ for all $x$. This function works, so we now prove it is the only such one.


Claim: $f(x) \ge x$ for all $x$.


Proof: Observe that$$P(m, 1) \implies m^2 + f(1) \mid mf(m) + 1$$$$\implies mf(m) + 1 \ge m^2 + f(1) \ge m^2 + 1$$$$\implies f(m) \ge m.$$$\square$


Claim: $f$ has a fixed point (in particular, $f(2) = 2$).

Proof: Note that $$P(2, 2) \implies 4 + f(2) \mid 2f(2) + 2$$$$ \implies 4 + f(2) \mid 6$$$$\implies 4 + f(2) \le 6 \implies f(2) \le 2.$$But from the first claim, $f(2) \ge 2$. Therefore we indeed have $f(2) = 2$. $\square$

Claim: $f$ is the identity function.

Proof: We have that $$P(2, m) \implies 4 + f(n) \mid 4 + n$$$$\implies 4 + f(n) \le 4 + n \implies f(n) \le n.$$But from the first claim $f(n) \ge n$. So we have $f(n) = n$ for all $n$. $\square$

This final claim was what we wanted to prove, QED.
This post has been edited 1 time. Last edited by AshAuktober, Sep 24, 2024, 6:13 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pie854
243 posts
#151 • 1 Y
Y by cubres
Putting $m=n$ it becomes obvious that $f(m)\geq m$, for any $m$. So, let's define $g:\mathbb Z_{>0} \to \mathbb Z_{\geq 0}$ such that $g(n)=f(n)-n$. Then, $$m^2+g(n)+n\mid m^2+mg(m)+n \implies m^2+g(n)+n \mid mg(m)-g(n) \qquad (1)$$Note that if $g(k)\leq g(1)$ for some $k$ then $k$ must be bounded. So there is a $N$ such that $g(n)\geq g(1)$ for $n\geq N$. Taking $n\geq N$ and putting $m=1$ in $(1)$ we get $$g(n)+n+1\mid g(n)-g(1).$$This forces $g(n)=g(1)$. Now taking $m=n\geq N$ in $(1)$ we get $$n^2+n+g(1)\mid g(1)(n-1).$$For large enough $n$ this forces $g(1)=0$. Thus it follows that $g(n)=0$ for all $n$. Hence, $f(n)=n$ for all $n$ which clearly works.
This post has been edited 3 times. Last edited by pie854, Nov 7, 2024, 8:16 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Assassino9931
1243 posts
#152 • 1 Y
Y by cubres
I thought I posted this before, but maybe not: here is a generalization from Bulgaria's Balkan MO 2014 TST - for a fixed positive integer $k$, consider $m^2 + f(n^k) \mid mf(m) + n^k$.

To solve this, note that $m=f(n^k)$ yields that $f(n^k)$ divides $n^k$, in particular $f(1) = 1$. But then $m^2 + 1 \mid mf(m) + 1$, so $f(m) \geq m$ for all $m$, thus $f(n^k) = n^k$ for all $n$. Back to the initial condition, we want $m^2 + n^k \mid mf(m) + n^k$, i.e. $m^2 + n^k \mid m(f(m) - m)$. Fixing $m$, the divisor attains infinitely many values as $n$ varies, thus $m(f(m) - m) = 0$ for all $m$, implying $f(m) = m$ for all $m$, which works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Eka01
204 posts
#153 • 1 Y
Y by cubres
Put $m=f(n)$ to get $f(n) | n$. Let $f(m)=\frac{m}{d} ;d|m$ and Now $m=n$ to get $m^2 +\frac{m}{d} | \frac{m^2}{d}+m^2$.
This implies $dm^2+m |m^2+dm^2$ or $dm+1 |m+d$. Now $dm+1 \leq m+d$ so $d=1$ or $m=1$ so $d=1$ in the latter case as well. Hence $f(m)=m$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lelouchvigeo
179 posts
#154 • 1 Y
Y by cubres
Sol
This post has been edited 1 time. Last edited by lelouchvigeo, Dec 9, 2024, 10:18 AM
Reason: ..
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
#155 • 1 Y
Y by cubres
Let $P(m,n)$ denote the given relation. Setting $P(2,2)$ yields that $(f(2)+4)\mid(2f(2)+2)$, so that $(f(2)+4)\mid6$ and thus $f(2)=2$.

Now setting $P(2,n)$ yields that $(f(n)+4)\mid(n+4)$, while setting $P(n,2)$ yields that $(n^2+2)\mid(nf(n)+2)$. Since $n$ and $f(n)$ are always positive integers, it follows that $f(n)+4\le n+4$ and $n^2+2\le nf(n)+2$, or equivalently $f(n)=n$, for all integers $n$. Hence $f$ is the identity. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
TestX01
338 posts
#156 • 1 Y
Y by cubres
uwu~ i think this is different from other ppl

Let $P(m,n)$ be the assertion given.

$P(1,n)$, yields $1+f(n)\mid f(1)+n$. Let $n=p-f(1)$ for some prime $p$ large enough. Then, $1+f(p-f(1))\mid p$, but this means (as $f\geq 1$ by codomain), $1+f(p-f(1))=p$, or $f(p-f(1))=p-1$. Now, $P(m,p-f(1))$ gives $m^2+p-1\mid mf(m)+p-f(1)$. Hence, $m^2+p-1\mid mf(m)+p-f(1)-m^2-p+1=mf(m)-m^2+1-f(1)$.

The RHS is constant for $m$ constant, but the LHS tends to infinity as $p\to \infty$ (there is an infinitude of primes). This is impossible unless the RHS is $0$, or $mf(m)-m^2=f(1)-1$. Factoring, and noting $f(1)\geq 1$, $m(f(m)-m)\geq 0$, hence $f(m)\geq m$. Now, suppose that $f(x)\neq x$ for infinitely many positive integers $x$. Then, there must be arbitrarily large $m$ such that $f(m)>m$, (as equality won't hold) thus by discrete inequality, $f(m)-m\geq 1$ so $f(1)-1=m(f(m)-m)\geq m$ which is a contradiction as the LHS is bounded.

Now, this implies that for some constant $C$, $f(x)=x \quad \forall x>C$, now for some $m>C$, considering $P(m,n)$ gives $m^2+f(n)\mid m^2+n$. As the RHS is non-negative, $m^2+f(n)\leq m^2+n$, or $f(n)\leq n$ for all positive integers $n$. Combining with the previous bound of $f(m)\geq m$, we conclude that $f(x)=x$ for all positive integers $x$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
539 posts
#157 • 1 Y
Y by cubres
I think I have a pretty unique and short solution.

Let $n=m,$ then $m^2+f(m) \leq mf(m)+m \implies (m-f(m))(m-1) \leq 0 \implies f(m) \geq m.$

Now suppose that $n$ is such that $m|f(n).$ Then $m | m^2+f(n) | mf(m)+n \implies m | n.$ Thus letting $m=f(n)$ yields $f(n) | n \implies f(n) \leq n.$

Thus, $f(m)=m$ for all $m,$ and this 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.
math004
23 posts
#158 • 1 Y
Y by cubres
  • $P(f(n),n) : f(n)^2+f(n)\mid f(n)f((n))+n\implies f(n)\mid n \implies f(n)\leq n$
  • $P(n,1) : n^2+1\leq  n^2+f(1) \mid nf(n)+1 \implies nf(n)+1\geq n^2+1\implies f(n)\geq n.$
Whence $f\equiv n$ which Convsersely satisfies the equation.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math-olympiad-clown
19 posts
#159 • 1 Y
Y by cubres
m=n=2 plug in : 4+f(2)|2f(2)+2 if 2f(2)+2=k*[4+f(2)] and kis greater than 1 it's easy to see it's not possible.
so k=1 gives f(2)=2.

m=2 plug in :4+f(n)|4+n this gives f(n)<=n.
n=2 plug in : m^2+2|mf(m)+2 this gives f(m)>=m.

then we have f(m)=m is the only solution :-D .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SSS_123
20 posts
#160 • 1 Y
Y by cubres
too big solution lol
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MuradSafarli
85 posts
#161
Y by
We find from the substitution \( P(2,2) \) that \( f(2) = 2 \).
From \( P(2,3) \), we obtain \( f(3) = 3 \).
Finally, from \( P(3,m) \), we get \( m \geq f(m) \),
and from \( P(m,2) \), we get \( f(m) \geq m \).
Therefore, \( f(m) = m \) for all natural numbers \( m \).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
InterLoop
266 posts
#162
Y by
another ntfe
solution
Z K Y
N Quick Reply
G
H
=
a