Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

G
Topic
First Poster
Last Poster
k a June Highlights and 2025 AoPS Online Class Information
jlacosta   0
Jun 2, 2025
Congratulations to all the mathletes who competed at National MATHCOUNTS! If you missed the exciting Countdown Round, you can watch the video at this link. Are you interested in training for MATHCOUNTS or AMC 10 contests? How would you like to train for these math competitions in half the time? We have accelerated sections which meet twice per week instead of once starting on July 8th (7:30pm ET). These sections fill quickly so enroll today!

[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC 10 Problem Series[/list]
For those interested in Olympiad level training in math, computer science, physics, and chemistry, be sure to enroll in our WOOT courses before August 19th to take advantage of early bird pricing!

Summer camps are starting this month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have a transformative summer experience. 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 upcoming events:
[list][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/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, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
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
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3
Wednesday, Sep 24 - Dec 17

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Wednesday, Jun 25 - Dec 17
Sunday, Sep 7 - Mar 15
Wednesday, Sep 24 - Apr 1
Friday, Nov 14 - May 22

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
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!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Monday, Jun 30 - Jul 21
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

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
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
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22
Friday, Oct 3 - Jan 16

USACO Bronze Problem Series
Sunday, Jun 22 - Sep 1
Wednesday, Sep 3 - Dec 3
Thursday, Oct 30 - Feb 5
Tuesday, Dec 2 - Mar 3

Physics

Introduction to Physics
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Monday, Jun 23 - Dec 15
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Jun 2, 2025
0 replies
Real triples
juckter   68
N 2 minutes ago by Kempu33334
Source: EGMO 2019 Problem 1
Find all triples $(a, b, c)$ of real numbers such that $ab + bc + ca = 1$ and

$$a^2b + c = b^2c + a = c^2a + b.$$
68 replies
juckter
Apr 9, 2019
Kempu33334
2 minutes ago
IMO Shortlist 2014 N2
hajimbrak   36
N 9 minutes ago by lakshya2009
Determine all pairs $(x, y)$ of positive integers such that \[\sqrt[3]{7x^2-13xy+7y^2}=|x-y|+1.\]
Proposed by Titu Andreescu, USA
36 replies
hajimbrak
Jul 11, 2015
lakshya2009
9 minutes ago
2013 Japan MO Finals P5
parkjungmin   1
N 20 minutes ago by Triborg-V
2013 Japan MO Finals
1 reply
parkjungmin
Yesterday at 4:40 PM
Triborg-V
20 minutes ago
number theory
MuradSafarli   0
21 minutes ago
Find all natural numbers $n$ such that $8n^2 + 8n + 1$ is a perfect square.
0 replies
MuradSafarli
21 minutes ago
0 replies
a tst 2013 test
Math2030   11
N 2 hours ago by whwlqkd
Given the sequence $(a_n):   a_1=1, a_2=11$ and $a_{n+2}=a_{n+1}+5a_{n}, n \geq 1$
. Prove that $a_n $not is a perfect square for all $n > 3$.
11 replies
Math2030
May 24, 2025
whwlqkd
2 hours ago
Geometry
Exoticbuttersowo   1
N 3 hours ago by sunken rock
In an isosceles triangle ABC with base AC and interior cevian AM, such that MC = 2 MB, and a point L on AM, such that BLC = 90 degrees and MAC = 42 degrees. Determine LBC.
1 reply
Exoticbuttersowo
Yesterday at 7:28 PM
sunken rock
3 hours ago
Pure algebra problem
lgx57   1
N 3 hours ago by HAL9000sk
If $a_0=5$,$a_n=a_{n-1}+\dfrac{1}{a_{n-1}}$. Let $S=a_{1000}$
Calculate $S$.

PS1: The more precise decimal places there are, the better.(rounded down)
PS2: Please don't use python or C++, or this problem will be very easy.
1 reply
lgx57
6 hours ago
HAL9000sk
3 hours ago
Counting problem
lgx57   1
N 4 hours ago by HAL9000sk
Calculate the number of $n$ that meet the following conditions:
1. $585 \mid n$
2.$0 \sim 7$ appears exactly once in each octal digit of $n$
1 reply
lgx57
6 hours ago
HAL9000sk
4 hours ago
Geometry
Arytva   0
5 hours ago
Let \(ABC\) be an acute triangle, and let its circumcircle be \(\Gamma\). On side \(BC\), pick a point \(D\) (distinct from \(B\) and \(C\)). The lines through \(D\) tangent to \(\Gamma\) (other than \(DA\), if \(A\) lies inside the angle at \(D\)) touch \(\Gamma\) again at points \(E\) and \(F\). Let \(BE\) meet \(AC\) at \(P\), and let \(CF\) meet \(AB\) at \(Q\). Prove that the three lines \(AP\), \(AQ\), and \(EF\) are concurrent.
0 replies
Arytva
5 hours ago
0 replies
Easy Function
Darealzolt   1
N 6 hours ago by alexheinis
Let \( f(x+y) = f(x^2y)\) for all real numbers \(x,y\), hence find the value of \(f(3)\) if \(f(2023)=26\).
1 reply
Darealzolt
6 hours ago
alexheinis
6 hours ago
Spot-It inspired question
alexroberts   1
N Today at 6:25 AM by alexroberts
Oscar bought a set of blank playing cards. He puts stamps on each card such that
1. Each card has $k\geq 4$ different stamps each.
2. Every two cards have exactly one stamp in common.
3. Every stamp is used at least twice.

Show that the maximum number of different stamps $v$ he can use is in the range $$k^2-2k+5 \leq v \leq k^2-k+1$$
1 reply
alexroberts
Wednesday at 8:46 PM
alexroberts
Today at 6:25 AM
Floor of Cube Root
Magdalo   2
N Today at 6:18 AM by RedFireTruck
Find the amount of natural numbers $n<1000$ such that $\lfloor \sqrt[3]{n}\rfloor\mid n$.
2 replies
Magdalo
Jun 2, 2025
RedFireTruck
Today at 6:18 AM
Find the value of m
Darealzolt   2
N Today at 6:13 AM by RedFireTruck
Let \(m\) be a positive integer, such that \(m\) fulfills
\[
\frac{1}{m^2+3m+2}+\frac{1}{m^2+5m+6}+\frac{1}{m^2+7m+12}+\dots +\frac{1}{m^2+15m+56}+\frac{1}{m^2+17m+72} = \frac{8}{33}
\]Hence find the value of \(m\).
2 replies
Darealzolt
Yesterday at 11:38 AM
RedFireTruck
Today at 6:13 AM
common tangents
gasgous   2
N Today at 5:26 AM by gasgous
Find the equations of the common tangents to the circles:$\left(x-1\right)^2+{(y+2)}^2=16$ and $\left(x+2\right)^2+{(y-3)}^2=36$.
2 replies
gasgous
Jun 4, 2025
gasgous
Today at 5:26 AM
Another NT FE
nukelauncher   63
N May 29, 2025 by sansgankrsngupta
Source: ISL 2019 N4
Find all functions $f:\mathbb Z_{>0}\to \mathbb Z_{>0}$ such that $a+f(b)$ divides $a^2+bf(a)$ for all positive integers $a$ and $b$ with $a+b>2019$.
63 replies
nukelauncher
Sep 22, 2020
sansgankrsngupta
May 29, 2025
Another NT FE
G H J
Source: ISL 2019 N4
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
nukelauncher
354 posts
#1 • 9 Y
Y by TheLiker, itslumi, Kanep, centslordm, megarnie, ImSh95, TheHU-1729, deplasmanyollari, radian_51
Find all functions $f:\mathbb Z_{>0}\to \mathbb Z_{>0}$ such that $a+f(b)$ divides $a^2+bf(a)$ for all positive integers $a$ and $b$ with $a+b>2019$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
nukelauncher
354 posts
#2 • 4 Y
Y by Mathematicsislovely, centslordm, ImSh95, radian_51
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anyone__42
92 posts
#3 • 12 Y
Y by idkwhatthisis, Kanep, Aryan-23, centslordm, TheMath_boy, uvuvwevwevwe, megarnie, sabkx, Vladimir_Djurica, ImSh95, TensorGuy666, radian_51
can be done easily using dirichlet's theorem
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dangerousliri
932 posts
#4 • 5 Y
Y by A-Thought-Of-God, centslordm, sabkx, ImSh95, radian_51
Here it is a solution that I did find when I did get the shortlist. Somehow for me it took me faster to solve this then N1 which was on the test. Also it should be $a+b>C$ and not $a+b>2019.$

Since $gcd(f(1),1)=1$ from Dirichlet's theorem we have there exist infinitely prime numbers of the form $1+nf(1)$. Taking all such $n>C$ then for $a=1$ and $b=n$ we have,
$$1+f(n)|1+nf(1)\Rightarrow f(n)=nf(1).$$
Now taking $a$ fixed and $b=n>C$ large enough we have,
$$a+nf(1)|a+f(n)|a^2+nf(a)|f(1)a^2+f(1)nf(a)\Rightarrow a+nf(1)|f(1)a^2+f(1)nf(a)-(a+nf(1))f(a)$$$$\Rightarrow a+nf(1)|a(f(1)a-f(a))\Rightarrow f(a)=f(1)a=ka.$$
Hence $f(a)=ka$ for all positive integers $a$, and clearly for any positive integer $k$ hold.
This post has been edited 1 time. Last edited by dangerousliri, Sep 23, 2020, 12:10 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blacksheep2003
1081 posts
#5 • 4 Y
Y by centslordm, sabkx, ImSh95, radian_51
Solution

Oh wow, I thought my solution was pretty unique to use Dirichlet's Theorem, but it seems other people had the same idea lol oops :P
This post has been edited 4 times. Last edited by blacksheep2003, Sep 23, 2020, 12:49 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MarkBcc168
1595 posts
#6 • 14 Y
Y by mijail, Imayormaynotknowcalculus, k12byda5h, A-Thought-Of-God, Aryan-23, Kanep, centslordm, tigerzhang, GeoKing, ImSh95, Stuffybear, iamnotgentle, radian_51, Om245
Comment: Extremely standard NT functional divisibility. This trick used to solve this problem have been appeared many many times.

As in every functional divisibility problems, the main point is to prove that $f$ is linear on some infinite set. We prove the following claim.

Claim: There exists infinite sequence $C<x_1<x_2<\hdots$ such that $f(x_i)=kx_i$ for some constant $k$.

Proof: The idea is to force the right hand side to be prime. By Dirichlet, there exists infinitely many $x>C$ which $1+xf(1)=p$ is prime. However,
$$1+f(x)\mid xf(1)+1\implies f(x)+1\in\{1,p\}\implies f(x)=xf(1)$$for infinitely many $x$. Hence we are done. $\blacksquare$

Once we have this we are almost done. Fix $n\in\mathbb{Z}^+$. Since
\begin{align*}
&n+kx_i\mid n^2+x_if(n) \\ 
\implies &n+kx_i\mid k(n^2+x_if(n)) - f(n)(n+kx_i) \\
\implies &n+kx_i\mid kn^2-nf(n)
\end{align*}and $x_i$ is arbitrarily large. We get $f(n)=kn$ for any $n$.
This post has been edited 1 time. Last edited by MarkBcc168, Sep 23, 2020, 1:43 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
FAA2533
65 posts
#7 • 3 Y
Y by Aryan-23, centslordm, ImSh95
nukelauncher wrote:
Find all functions $f:\mathbb Z_{>0}\to \mathbb Z_{>0}$ such that $a+f(b)$ divides $a^2+bf(a)$ for all positive integers $a$ and $b$ with $a+b>2019$.
It somehow seemed very easy to me than N1.

Solution
This post has been edited 6 times. Last edited by FAA2533, Jul 18, 2022, 2:35 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ubermensch
820 posts
#9 • 5 Y
Y by ATGY, Illuzion, centslordm, ImSh95, radian_51
Let $P(a,b)$ denote the assertion that $a+f(b) \mid a^2+bf(a)$.

Naturally, a $P(1,b)$ substitution gives us $1+f(b) \mid 1+bf(1) \implies bf(1) \geq f(b)$. We'll now denote $f(1)$ by $k$, as we shall be using it quite extensively.

$P(a,1): a+k \mid a^2+f(a) \implies a+k \mid a^2+f(a)-a(a+k) \implies a+k \mid f(a)-ak \implies a+k \mid f(a)-ak +k(a+k)$.

Hence we get $a+k \mid f(a)+k^2$. Coupled with our first bound, this gives us that $f(a)=at+tk-k^2$ for large enough $a$.

Here, although it is quite instinctual to substitute $a$ as a prime, we can in fact avoid that altogether and deal just with our regular naturals- although it will get quite ugly, but at the very least it will remain very mechanical.

Our aim, as it always is in such problems, is to manipulate the divisibility so as to be able to make the left hand side arbitrarily large without altering the expression on the right, hence forcing the right hand side to be become zero. A simple $(a,b)$ substitution in the original expression with a little modification would give us what we're looking for.

Firstly-
$$a+f(b) \mid a^2+bf(a) \implies a+f(b) \mid a^2+bf(a)-a(a+f(b))$$$$\implies a+f(b) \mid bf(a)-af(b) +f(b)(a+f(b)) \implies a+f(b) \mid bf(a)+f(b)^2$$
Thus we have $a+f(b) \mid f(b)^2 + bf(a)$. We now substitute $f(a)=at+(k^2-kt)$ to get-

$$a+f(b) \mid b(at+k^2-kt)+f(b)^2$$$$\implies a+f(b) \mid abt+bk^2-bkt+f(b)^2-bt(a+f(b)) \implies a+f(b) \mid b(k^2-kt)+f(b)^2-btf(b)$$Observe now that we can make our $a$ arbitrarily large for a constant $b$, and noting that $k=f(1)$ has a fixed value along with $t \leq k$ forces $f(b)^2-btf(b)+b(k^2-kt)=0$, as planned.

Writing $f(b)=rb+rk-k^2$ gives us $(rb+rk-k^2)^2-bt(rb+rk-k^2)+b(k^2-kt)=0$. For large $b$, since our $k$ and $t$ are small (compared to our now large $b$), we can simply equate the coefficients of $b^2$ and $b$ and the constant term zero individually. Hence, $r^2-rt=0 \implies r=t$ and equating the constant term to zero gives us $r=k$.

Thus, for arbitrarily large $n$, we have $f(n)=kn$. The finish is now quite simple-
$$P(n,b): n+f(b) \mid n^2+knb-n(n+f(b))-(kb-f(b))(n+f(b))$$$$\implies n+f(b) \mid (kb-f(b))f(b)$$for large $n$, hence forcing $f(b)=kb$ for all $b$.

Clearly $f(n)=kn$ satisfies the original condition, and hence we're done.

Quite a standard one, and rather mechanical, especially if you've done something like this before (POP). Nevertheless, quite an instructive exercise on functional divisibilities...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dchenmathcounts
2443 posts
#10 • 4 Y
Y by centslordm, Marie36, ImSh95, radian_51
guess this has been said before, but here goes

We claim the answer is $f(x)=kx$ for $k\in \mathbb{Z}_{>0}.$

Fix $a=1.$ Note that $1+bf(1)$ is a prime infinitely often by Dirichlet (is this how you spell it?). So let $b$ be some absurdly large number such that $a+b>2019$ and $1+bf(1)$ is prime; then $1+f(b)\mid 1+bf(1).$ Since $1+bf(1)$ is prime we either have $1+f(b)=1$ or $1+f(b)=1+bf(1).$ Clearly the latter holds, so there are infinitely many $b$ such that $f(b)=bf(1).$

Now take some mega ultra large $b$ such that $f(b)=bf(1),$ and note that $a+f(b)=a+bf(1)\mid a^2+bf(a)$ and $a+bf(1)\mid a^2+abf(1).$ Subtracting the latter from the former gives $a+bf(1)\mid b(f(a)-af(1)).$ Note that $\gcd(a+bf(1),b)=\gcd(a,b),$ so if $a$ is prime this implies that $a+bf(1)\mid f(a)-af(1).$ Since $b$ is, as I quote, "ultra mega large," $|a+bf(1)|>|f(a)-af(1)|,$ so for all prime $a$ we have $f(a)=af(1).$

Now take some ultra mega large prime $b,$ which we have just shown exists, and note that
\[a+bf(1)\mid b(f(a)-af(1)), \text{ which implies that}\]\[a+bf(1)\mid f(a)-af(1),\]and since $b$ is ultra mega large, we have shown that $f(a)=af(1)$ in general.
This post has been edited 1 time. Last edited by dchenmathcounts, Sep 23, 2020, 5:14 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ayan_mathematics_king
1527 posts
#11 • 7 Y
Y by 508669, Mathematicsislovely, amar_04, A-Thought-Of-God, centslordm, ImSh95, radian_51
Solution by my friend RustyFox who is banned now.So I am posting his solution.
nukelauncher wrote:
Find all functions $f:\mathbb Z_{>0}\to \mathbb Z_{>0}$ such that $a+f(b)$ divides $a^2+bf(a)$ for all positive integers $a$ and $b$ with $a+b>C$.

Solution : Let $P(x, y)$ be the assertion. $P(1, k) \implies kf(1)\geq f(k)$.

This is going to be useful. Let $p \mid x$ where $p$ is a prime.

Let $k = Cf(x)$

$P(kp-f(x), x \implies kp \mid (kp-f(x))^2 + f(kp-f(x))x$ which means that $p \mid f(x)$. So, $p \mid f(p)$ for all primes $p$.

Let us say that $f(p)= g(p)p$ for primes $p$. Observe that $0 < g(p) \leq f(1)$. If $g(p)\neq g(q)$ for two distinct primes $p, q$ which are much much greater than $C$ (say it's much greater than $(C+2019f(1))!\uparrow \uparrow (C+2019f(1))!)$, then $P(p, q) \implies p + qg(q) \mid p^2 + pqg(p)$ or in other words $p + qg(q) \mid pq(g(p)-g(q))$. Now since $gcd(p, q) = gcd(p, g(q)) = gcd(p, qg(q)) = 1$, we havs $p + qg(q) \nmid pq$. Now, $p + qg(q) \mid g(p)-g(q)$ but the dividend is less than $f(1)$ and due to our value of $p, q$, $p + qg(q) >> f(1)$ which means that for all sufficiently large primes we have $g(p) = g(q) = c$. Now for any prime $p$ such that $f(p) = pc$ and any other prime $q$ for which we aren't sure if $f(q)$ equals $qc$ or not and obviously here $q < p$,we take $P(q, p)$ to get that $q + pc \mid p(f(q)-qc)$ and since $pc  + q > pc \geq p$, we havs $q + pc \mid f(q)-qc$ and so see that $f(q) - qc \leq qf(1)-qc = q(f(1)-c)$ and so choosing $p > q(f(1)-c)$ would suffice and so for all primes $p$, we have $f(p)=pc$. Now, let $p >>a$. Then $P(a, p) \implies a + pc \mid pf(a)-pca$ but $gcd(p, a)=1$ and so $a+pc \mid f(a)-ac$. Choosing large enough $p$ yields that $\boxed{f(a)=ac}$ for all naturals $a$
This post has been edited 3 times. Last edited by ayan_mathematics_king, Sep 24, 2020, 7:51 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ProblemSolver2048
104 posts
#15 • 3 Y
Y by centslordm, ImSh95, radian_51
Since gcd(f(1,),1)=1 from Dirichlet's theorem we have there infinitely prime numbers of the form 1+nf(1). Taking all such n>C then for all a=1 and b=n we have $$1+f(n)|1+nf(1)\Rightarrow f(n)=nf(1).$$Now taking a fixed and b=n> C large enough we have,
$$a+nf(1)|a+f(n)|a^2+nf(a)|f(1)a^2+f(1)nf(a)\Rightarrow a+nf(1)|f(1)a^2+f(1)nf(a)-(a+nf(1))f(a)$$$$\Rightarrow a+nf(1)|a(f(1)a-f(a))\Rightarrow f(a)=f(1)a=ka.$$hence f(a)=ka for all positibe integers , clearly for any positive integer k hold.
Acknowledgements to dangerousliri's in post 4. I didn't make it.
This post has been edited 1 time. Last edited by ProblemSolver2048, Dec 14, 2020, 7:39 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathematicsislovely
245 posts
#16 • 5 Y
Y by amar_04, centslordm, ImSh95, sabkx, ylmath123
Let $P(a,b)$ denote the assertion of the question.

Claim:For all prime $p$ we have $p|f(p)$.
proof.Fix a prime $p$.$k$ be an integer such that $(k+1)p-f(p)>2020^{2020}$.Then $P(kp-f(p),p)\implies p|kp-f(p)+f(p)|(kp-f(p))^2+pf(stuff)\implies p|f(p)$. $\blacksquare$.

Then $f(p_n)=c_np_n$ where $p_n$ is the $n^{th}$ prime.But as $P(1,b)\implies f(b)\le f(1)b$ $\forall 
 b\ge 2020$. So $c_n$ is bounded sequence.Hence,there exists an integer $r$ such that it is equal to infinitely many $c_i$.So there exists an increasing sequence $(q_n)_{n=1}^{\infty}$ of prime integers such that $f(q_s)=rq_s$ $\forall s\in \mathbb N$.

Now, for a fix $a$ take a big $q_i$ such that $gcd(a,q_i)=1$.Then,
$P(a,q_i)\implies\\
 a+rq_i|a^2+q_if(a)\\
\implies a+rq_i|a^2+q_if(a)-a^2-arq_i\\
\implies a+rq_i|q_i(f(a)-ar)\\
\implies a+rq_i|(f(a)-ar)$.
Now for sufficiently large $q_i$ we get $f(a)=ar$.Hence,$\boxed{f(x)=rx}$ is the only solution which indeed satisfies the functional equation. $\blacksquare$.
This post has been edited 4 times. Last edited by Mathematicsislovely, Sep 26, 2020, 11:00 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilove_mathematics
188 posts
#17 • 3 Y
Y by centslordm, odkaI, ImSh95
Let $P(a,b)$ denote the divisibility $(a+f(b)) \mid (a^2+bf(a)).  ($For simplicity say $C = 2019)$

Let $n$ denote $f(1).$ We are going to show that $f(k) = kn,$ for all $k \in \mathbb{Z}_{>0}.$ Let $\mathbb{A} = \{C+1, C+2, ...\}.$

Lemma 1: Define $g:\mathbb{A} \rightarrow \mathbb{Q}$ as $g(a) = \frac{an-f(a)}{a+n},$ then $g$ is limited.

Proof: Let $a$ be a positive integer greater than $C.$ Then $P(a,1)$ gives $a+n \mid a^2 + f(a) \implies (a+n).q = a^2 + f(a)$ with $q \in \mathbb{N}.$ On the other hand $P(1, a) \implies 1+f(a) \mid 1+an \implies f(a) \leq an,$ therefore $(a+n).a =$ $a^2 + an \geq a^2 + f(a), $ suppose for the sake of contradiction that $f(a) < an \implies q < a \implies q = a-k$ so $(a+n)(a-k) = a^2 + f(a) > a^2,$ since $(a+n)(a-n)  < a^2$ we have $k < n \implies k$ is bounded as $a$ varies along the natural numbers greater than $C,$ yielding $k = \frac{an-f(a)}{a+n} = g(a)$ is limited.$\blacksquare$

Lemma 2: There are infinitely many positive integers $s$ such that $f(s) = sn.$

Proof: Let $S = \{a_1, a_2, ...\}$ be the set of positive integers such that $\frac{a_in-f(a_i)}{a_i+n} = t$ a constant, with $C < a_1 < a_2 < ...,$ there exists such $t,$ because the set $\mathbb{A}$ is unbounded. So $\frac{a_in-f(a_i)}{a_i+n} = t \implies$ $f(a_i) = a_in-t(a_i+n),$ for all $i.$
Now fix $j$ such that $a_j(n-t+1) \ne nt.$ Plugging $a = a_i, b = a_j$ gives: $$(a_i + f(a_j)) \mid (a_i^2 + a_jf(a_i)) \implies$$$$(a_i + a_jn - t(a_j+n)) \mid [(a_i^2 + a_ja_in - a_jt(a_i+n)) - a_i(a_i+a_jn-t(a_j+n))] \implies$$$$(a_i+a_jn-t(a_j+n)) \mid (a_i-a_j)nt.$$Let $d_i$ be $gcd(a_i + a_jn-t(a_j+n), a_i - a_j),$ (of course $i \ne j$) if $d_i > max(a_j(n-t+1), nt) \implies$ $a_i + a_jn-t(a_j+n) \equiv a_j + a_j(n-t) - nt \pmod {d_i} \implies d_i \mid a_j(n-t+1)-nt,$ as supposed we must have $a_j(n-t+1) = nt,$ contradiction. Therefore $d_i$ is bounded. Observe $(a_i + a_jn-t(a_j+n))|d_int,$ $\forall i \in \mathbb{N}, i \ne j,$ setting $i \rightarrow \infty \implies a_i \rightarrow \infty$ thus, we eventually have: $a_i + a_jn -t(a_j+n) > d_int \implies d_int = 0 \implies t = 0 \implies f(a_i) = a_in,$ for all $i,$ sufficiently large. $\blacksquare$


Fix $k$ a positive integer.
Plug $a = k, b = a_i \implies k+a_in \mid k^2 + a_if(k) \implies (k+a_in) \mid (k^2+a_if(k) - k(k+a_in)),$ yielding $(k+a_in) \mid a_i(f(k)-kn)$ so $(k+a_in).q_i = a_i.|f(k)-kn|, q_i \in \mathbb{Z}_{\geq 0} \implies q_i = \frac{a_i.|f(k)-kn|}{k+a_in}$ call $t = |f(k)-kn|$ a constant. If $q_i > t \implies (k+a_in).t < a_i.t$ contradiction. We conclude $q_i$ is bounded. On the other hand if $i \ne j$ and $q_i = q_j \implies \frac{a_it}{k+a_in} = \frac{a_jt}{k+a_jn}$ $\implies a_itk + a_ia_jnt = a_jtk + a_ja_int \implies (a_i-a_j)kt = 0$ then $t$ would be $0.$ Since $q_i, q_j$ are bounded, both positive and we can choose $i, j \in \mathbb{N}$ such that $q_i = q_j, f(k)-kn = 0$ for all $k \in \mathbb{N},$ as $(a+kb).a = a^2 + akb \implies f(a) = an$ for all positive integers $n.$
This post has been edited 1 time. Last edited by Ilove_mathematics, Sep 27, 2020, 4:22 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
solver1104
510 posts
#18 • 3 Y
Y by centslordm, ImSh95, radian_51
Remark: Standard problem, seems pretty easy in difficulty unless I messed up. Also, I cite the so called Weak - Dirichlet theorem many times over this proof. Although no proof of Dirichlet Theorem that I know of is elementary, Weak Dirichlet can easily be proven by cyclotomic polynomials - see Evan Chen's Orders handout for more details.

random stuff

We claim that the answer is all functions $f(x) \equiv cx$ for any positive integer $c$. It's easy to see that all such functions work, because $a + bc | a^2 + abc = a(a+bc)$. Now we show that these are the only functions that work.

Consider the more general problem, replacing $2019$ with any constant $C$. Denote the given assertion$P(a,b)$.

Now we claim that $f(b) = bf(1)$ holds for infinitely many $b$. Indeed, $P(1,b)$ gives $1 + f(b) | 1 + bf(1)$, and now by Weak Dirichlet, there exists infinitely many $b$ such that $bf(1) + 1$ is prime, and since $1 + f(b) > 1$, we have $f(b) = bf(1)$, as desired.

Now we show that this actually implies $f(a) = af(1)$ for all $a$. Indeed, by Weak Dirichlet again, there exists infinitely many primes that are $1 \pmod{f(a) \cdot f(1)}$ for any $a$. Now take a prime of this form, $p$, and let $p$ be arbitrarily large. Note that $p$ is relatively prime to $f(a)$, and it is also of the form $cf(1) + 1$ for some $c$, hence by the first claim, $f(p) = pf(1)$. Then $P(p,a)$ gives $p + f(a) | p^2 + apf(1)$. Now $\gcd(p, p+f(a)) = \gcd(p,f(a)) = 1$ by the assumption that $p$ is $1 \pmod{f(a)}$, so the extra factor of $p$ on the $RHS$ can be taken out. Now we have $p + f(a) | p + af(1)$ for all $a$, and since $p$ is arbitrarily large, so that $p >>> f(a), af(1)$, so the two sides are actually equal, and 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.
rcorreaa
238 posts
#19 • 3 Y
Y by centslordm, ImSh95, radian_51
Pretty standard NT FE problem... :maybe:

From the problem, $1+f(n)|1+nf(1)$ for all $n \in \mathbb{N}$. From Dirichlet's Theorem, since $gcd(1,f(1))=1$, there are infinetly prime numbers in the AP $\{1+nf(1)\}_{n \geq 1}$.

Thus, since $1+f(n)>1, 1+f(n)=1+nf(1)$ when $1+nf(1)$ is prime $\implies f(n)=nf(1)$ in this case.

Hence, there exists a sequence $\{a_n\}_{n=1}^{\infty}$ such that $f(a_n)=a_nf(1)$ for all $n \in \mathbb{N}$. Then, from the problem,
$$a+a_nf(1)|a^2+a_nf(a) \implies a+a_nf(1)|a^2f(1)+a_nf(a)f(1),af(a)+f(a)f(1)a_n$$$$\implies a+a_nf(1)|a^2f(1)-af(a)$$for all $n \in \mathbb{N}$

Taking $n$ large enough, $a^2f(1)-af(a)$ must be $0$.

Therefore, $f(a)=af(1)$ for all $a \in \mathbb{N}$, which clearly works.

$\blacksquare$
Z K Y
G
H
=
a