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
Collect ...
luutrongphuc   3
N 5 minutes ago by KevinYang2.71
Find all functions $f: \mathbb{R^+} \rightarrow \mathbb{R^+}$ such that:
$$f\left(f(xy)+1\right)=xf\left(x+f(y)\right)$$
3 replies
luutrongphuc
Apr 21, 2025
KevinYang2.71
5 minutes ago
functional equation interesting
skellyrah   5
N an hour ago by jasperE3
find all functions IR->IR such that $$xf(x+yf(xy)) + f(f(y)) = f(xf(y))^2  + (x+1)f(x)$$
5 replies
skellyrah
5 hours ago
jasperE3
an hour ago
For a there exist b,c with b+c-2a = 0 mod p
Miquel-point   0
an hour ago
Source: Kürschák József Competition 2024/3
Let $p$ be a prime and $H\subseteq \{0,1,\ldots,p-1\}$ a nonempty set. Suppose that for each element $a\in H$ there exist elements $b$, $c\in H\setminus \{a\}$ such that $b+ c-2a$ is divisible by $p$. Prove that $p<4^k$, where $k$ denotes the cardinality of $H$.
0 replies
Miquel-point
an hour ago
0 replies
The ancient One-Dimensional Empire
Miquel-point   0
2 hours ago
Source: Kürschák József Competition 2024/2
The ancient One-Dimensional Empire was located along a straight line. Initially, there were no cities. A total of $n$ different point-like cities were founded one by one; from the second onwards, each newly founded city and the nearest existing city (the older one, if there were two) were declared sister cities. The surviving map of the empire shows the cities and the distances between them, but not the order in which they were founded. Historians have tried to deduce from the map that each city had at most 41 sister cities.
[list=a]
[*] For $n=10^6$, give a map from which this deduction can be made.
[*] Prove that for $n=10^{13}$, this conclusion cannot be drawn from any map.
[/list]
0 replies
Miquel-point
2 hours ago
0 replies
No more topics!
IMO Shortlist 2013, Number Theory #1
lyukhson   152
N Apr 22, 2025 by Jakjjdm
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$.
152 replies
lyukhson
Jul 10, 2014
Jakjjdm
Apr 22, 2025
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.
lyukhson
127 posts
#1 • 27 Y
Y by Davi-8191, abab, Muaaz.SY, itslumi, mathematicsy, megarnie, rachelshi, jhu08, justJen, GeoMetrix, fluff_E, son7, Lamboreghini, Stuart111, hectorleo123, Adventure10, Mango247, trigadd123, ItsBesi, Akacool, rightways, pomodor_ap, cubres, and 4 other users
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$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
nicetry007
149 posts
#2 • 57 Y
Y by shmm, LeoTheRetard, randomasdf97, ArseneLupin, ajd1234, quangminhltv99, test20, baladin, Illuzion, hiabc, tapir1729, dantaxyz, pad, Hypernova, Amir Hossein, MathBoy23, karitoshi, MahsaMorady, programjames1, mathleticguyyy, Bumblebee60, vsamc, mynameisbob12, Muaaz.SY, jchang0313, SlimTune, Kanep, snakeaid, centslordm, hakN, math31415926535, leozitz, HamstPan38825, rachelshi, jhu08, megarnie, Timmy456, ZHEKSHEN, trying_to_solve_br, TFIRSTMGMEDALIST, son7, veirab, pog, Mathlover_1, Lamboreghini, mathmax12, tony88, Adventure10, Mango247, Tellocan, EpicBird08, Assassino9931, Sedro, cubres, and 3 other users
Setting $m = f(n)$, we get $f(n)^2 + f(n) \mid f(n)f(f(n)) + n \Rightarrow f(n) \mid n \Rightarrow f(n) \leq n \; \forall \; n \in \mathbb{N}$.
This implies $f(1) = 1$.
Setting $m=n$, we get $n^2 + f(n) \mid nf(n) + n \Rightarrow n^2+f(n) \leq nf(n) + n \Rightarrow n^2 - n \leq (n-1)f(n)$
This implies $n \leq f(n) \;\forall \; n \geq 2 \Rightarrow f(n) = n \; \forall n \in \mathbb{N}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AkosS
113 posts
#3 • 11 Y
Y by Muaaz.SY, rachelshi, jhu08, megarnie, son7, Adventure10, Mango247, cubres, and 3 other users
Let $m=n$, then
\[m^2+f(m)|m(f(m)+1)\Rightarrow f(m)=\frac{k_m m^2-m}{m-k_m}\]
for some $k_m\in\mathbb{Z}^+$, so $1<k_m<m$ and thus $f(m)\leq m^3-m^2-m$, as with $k$ growing the numerator grows and the denominator shrinks, for $m=2$, this gives us $k=1$ and $f(2)=2$.

Now use $(2,m)$, then for some $l_m\in\mathbb{Z}^+$
\[4+f(m)|4+m\Rightarrow f(m)=\frac{m+4}{l_m}-4\leq m\]
Using $m=1$ and $m=3$ in $4+f(m)|4+m$ we get $f(1)=1$ and $f(3)=3$, so we can assume $m\geq 4$
Now look at the following:
\[\frac{m(mk_m-1)}{m-k_m}=f(m)\leq m\]
Use $k_m=2$, we get:
\[\frac{m(2m-1)}{m-2}-m=\frac{m(m+1)}{2}>0\]
This means that only $k_m=1$ can hold, meaning $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.
alibez
358 posts
#4 • 10 Y
Y by rachelshi, jhu08, megarnie, son7, kamatadu, Adventure10, cubres, and 3 other users
lyukhson wrote:
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$.


we know : $f(p)^{2}+f(p)\mid f(p)f(f(p))+p\Rightarrow f(p)=1\: or\: p$ ($p$ is prime number)

$i)$ if we have Infinitely many prime numbers such that $f(p)=p$ so we have:

$m^{2}+p\mid mf(m)+p\Rightarrow m^{2}+p\mid mf(m)-m^{2}\Rightarrow mf(m)-m^{2}=0\rightarrow f(m)=m$

$ii)$ if we don't have Infinitely many prime numbers such that $f(p)=p$ !

$m=n=p\rightarrow p^{2}+1\mid 2p$ and it is not true for Infinitely many prime numbers . so $f(m)=m$ is unique solution.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gobathegreat
741 posts
#5 • 8 Y
Y by rachelshi, jhu08, tony88, Adventure10, cubres, and 3 other users
lyukhson wrote:
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$.

Let $P(m,n)$ be assertion of $ m^2 + f(n) \mid mf(m) +n $
$P(f(n),n)$ implies $f(n)$ divides $n$ so $f(n) \leq n$ .This implies $f(1)=1$. Now suppose for some $n$ we have $f(n)=n$ (this is possible since $f(1)=1$). We will prove that $f(n+1)=n+1$.
Consider:
$P(n,n+1)$:
Then $ n^2 + f(n+1) \mid nf(n) +n+1 $ from which we obtain $f(n+1) \leq n+1$
$P(n+1,n)$:
Then $ (n+1)^2 + n \mid (n+1)f(n+1) +n $ from which we obtain $n+1 \leq f(n+1)$.Together this implies $f(n+1) \leq n+1 \leq f(n+1)$ so $f(n+1)=n+1$.
Since $f(1)=1$ we see that $f(n)=n$ for every positive integer $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathuz
1517 posts
#6 • 8 Y
Y by Mathuzb, rachelshi, jhu08, Adventure10, Mango247, cubres, and 2 other users
It's inequality problem. We have that $f(n)\ge n$ and there exists $k\in N$ such that $f(k)\le n+f(1)-1<2k$. So $f(k)=k$. So for all $n\in N$ \[ f(n)=n. \]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
fclvbfm934
759 posts
#7 • 7 Y
Y by rachelshi, jhu08, Adventure10, Mango247, cubres, and 2 other users
Solution with thkim1011:
Let $m = n$ and we get $m^2 + f(m) | mf(m) + m$ so we have
\[m^2 + f(m) \le mf(m) + m\]
which rearranges to $f(m) \ge m$ for all $m \ge 2$. Now let $m = f(n)$ and we get
\[f(n)^2 + f(n) | f(f(n))\cdot f(n) + n\]
so $f(n) |n$ but $f(n) \ge n$, so the only viable possibility is $f(n) = n$ for $n \ge 2$. For $n = 1$, we have $f(1) | 1$, so $f(1) = 1$. It is easy to check that $f(n) = n$ satisfies the condition.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Number1
355 posts
#8 • 8 Y
Y by MiMi1376, randomasdf97, rachelshi, Adventure10, cubres, and 3 other users
If we put $m=n$ we get $f(m)\geq m$ for all $m \geq 2$ (*).

If we put $m=n=2$ we get $4+f(2)|2f(2)+2$ and thus $f(2) =2$.

If we put $m=2$ we get $4+f(n)|4+n$ and thus $f(n)\leq n$ for all $n$ (**).

If we use (*) and (**) we get $f(n)=n$ for all $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MiMi1376
11 posts
#9 • 6 Y
Y by rachelshi, Adventure10, Mango247, cubres, and 2 other users
it was really easy!!!
this problem was proposed by Mohsen Jamaali
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_genie
40 posts
#10 • 6 Y
Y by rachelshi, Adventure10, Mango247, cubres, and 2 other users
Nice solution everyone. Was quite easy :D

My first impression was it was very similar to IMO 2004 shortlist problem (N3). Indeed, the solution was very similar.

First, I noted that $f(n) = n$ was a solution (as almost always).
And I noticed that we need to just prove either $f(1) = 1$ or $f(p) = p$ for all $p$ prime.
(*)


[Taking $m = n = p$ gives us
$p^2 + f(p) \mid p(f(p) + 1)$
Since $p^2 + f(p)$ does not divide $f(p) + 1$ (as its bigger) thus,
$p \mid p^2 + f(p)$ i.e. $p \mid f(p)$
Therefore $f(p) \geq p$

If $f(1) = 1$ then take $m = 1$, $n = p$ and we get $1 + f(p) \mid p + 1$. Thus $f(p) = p$ for all p prime. (take inequality)
And, if we show $f(p) = p$, then taking m = p we get
$p^2 + f(n) \mid p^2 + n$
Thus $p^2 + f(n) \mid (n - f(n))$.
Choosing $p$ large enough, we get the quotient tends to 0. (as $n - f(n)$ is fixed but $p$ can be as large as you want).
Therefore, $f(n) = n$ for all $n$ in naturals]


To prove (*) - it didn't hit me to take $m = f(n)$ as nicetry007 did. (You could probably finish the proof like that)

Instead, what I did was the following:
Let $p$ be a prime and take $n = p$.
Let $q$ be a prime dividing $f(p)$, and take $m = q$. We get:

$q^2 + f(p) \mid qf(q) + p$
But $q\mid q^2 + f(p)$ !
Thus, we get $q \mid p$, or $p = q$.
So, we have $f(p) = p^i$, where $i$ depends on $p$.


Now, take $m = n = p$.
We get
$p^2 + p^i \mid p^{i+1} + p$.
(1)

Case 1 : $i \geq 3$
Easy contradiction to (1) as $p^2 | LHS$ but not the $RHS$.

Case 2: $ i = 2$
Then we get $2p^2 \mid p^3 + p$
or, $2p \mid p^2 + 1$, this means $p\mid1$. Contradiction.


Thus, $f(p) = p$ and 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.
AnonymousBunny
339 posts
#11 • 5 Y
Y by rachelshi, Adventure10, Mango247, cubres, and 1 other user
Plugging $m=n,$
\[m^2 + f(m) \leq mf(m) + m \implies m^2 + f(m) \leq mf(m) + m \implies m \leq f(m).\]
Plugging $n=f(m),$
\[f(m) \mid f(m)^2 + f(m) \mid mf(f(m)) + f(m) \implies  f(m) \mid m \implies f(m) \leq m.\]
Hence, $\boxed{f(m)=m \quad \forall \ m \in \mathbb{N}}.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
numbertheorist17
268 posts
#12 • 5 Y
Y by girishvar12, rachelshi, Adventure10, cubres, and 1 other user
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
codyj
723 posts
#13 • 7 Y
Y by rachelshi, Adventure10, Mango247, cubres, and 3 other users
Let $m=n$ to get $n^2+f(n)\mid nf(n)+n$, so $n^2+f(n)\le nf(n)+n$, or $f(n)\ge n$. In the case of $n=2$, $4+f(2)\mid 2f(2)+2$, and $\frac{2f(2)+2}{f(2)+4}=2-\frac6{f(2)+4}\in\mathbb{Z}$. Therefore, $f(2)+4\in\{-6,-3,-2,-1,1,2,3,6\}$, and the only solution with a positive $f(2)$ is $f(2)=2$. Let $m=2$ to get $2^2+f(n)\mid2f(2)+n$, so $4+f(n)\le2f(2)+n=4+n$, or $f(n)\le n$. Therefore, $f(n)=n$ is the only solution, and we can easily verify that $m^2+n\mid m^2+n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
smy2012
688 posts
#14 • 3 Y
Y by Adventure10, Mango247, cubres
Very easy problem. :)
I find 2 solutions (the same as #8 and #11) at once. :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Dexenberg
143 posts
#15 • 6 Y
Y by rachelshi, Adventure10, Mango247, cubres, and 2 other users
$m=2;n=1  \Rightarrow 4+f(1) | 2f(2)+1 $
$m=1;n=2 \Rightarrow 1+f(2)|f(1)+2 \Rightarrow f(1)+1 \geq f(2) \Rightarrow$
$ 4+f(1) \geq \dfrac{2f(2)+1}{2} \Rightarrow 4+f(1)=2f(2)+1$, yielding to $1+f(2) | 2f(2)-1 \Rightarrow f(2)=2;f(1)=1$
$f(1)=1 -> 1+f(n) | n+1 \Rightarrow n \geq f(n); m^2+1 | mf(m)+1 \Rightarrow m \leq f(m)$, and now we have the conclusion: $f(x)=x$
Z K Y
G
H
=
a