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
Incircle
PDHT   1
N 3 minutes ago by luutrongphuc
Source: Nguyen Minh Ha
Given a triangle \(ABC\) that is not isosceles at \(A\), let \((I)\) be its incircle, which is tangent to \(BC, CA, AB\) at \(D, E, F\), respectively. The lines \(DE\) and \(DF\) intersect the line passing through \(A\) and parallel to \(BC\) at \(M\) and \(N\), respectively. The lines passing through \(M, N\) and perpendicular to \(MN\) intersect \(IF\) and \(IE\) at \(Q\) and \(P\), respectively.

Prove that \(D, P, Q\) are collinear and that \(PF, QE, DI\) are concurrent.
1 reply
PDHT
Yesterday at 6:14 PM
luutrongphuc
3 minutes ago
IMO ShortList 2001, number theory problem 4
orl   43
N 6 minutes ago by Zany9998
Source: IMO ShortList 2001, number theory problem 4
Let $p \geq 5$ be a prime number. Prove that there exists an integer $a$ with $1 \leq a \leq p-2$ such that neither $a^{p-1}-1$ nor $(a+1)^{p-1}-1$ is divisible by $p^2$.
43 replies
orl
Sep 30, 2004
Zany9998
6 minutes ago
Number theory - Iran
soroush.MG   32
N 12 minutes ago by Nobitasolvesproblems1979
Source: Iran MO 2017 - 2nd Round - P1
a) Prove that there doesn't exist sequence $a_1,a_2,a_3,... \in \mathbb{N}$ such that: $\forall i<j: gcd(a_i+j,a_j+i)=1$

b) Let $p$ be an odd prime number. Prove that there exist sequence $a_1,a_2,a_3,... \in \mathbb{N}$ such that: $\forall i<j: p \not | gcd(a_i+j,a_j+i)$
32 replies
soroush.MG
Apr 20, 2017
Nobitasolvesproblems1979
12 minutes ago
Inspired by my own results
sqing   2
N 37 minutes ago by cazanova19921
Source: Own
Let $ a,b,c\geq \frac{1}{2}  . $ Prove that
$$ (a+1)(b+2)(c +1)-15 abc\leq \frac{15}{4}$$$$ (a+1)(b+3)(c +1)-21abc\leq \frac{21}{4}$$$$(a+2)(b+1)(c +2)-25a b c \leq \frac{25}{4}$$$$ (a+2)(b+3)(c +2)-35a b c \leq  \frac{35}{2}$$$$    (a+3)(b+1)(c +3)-49a b c \leq  \frac{49}{4}$$$$ (a+3)(b+2)(c +3)-49a b c \leq \frac{49}{2}$$
2 replies
sqing
2 hours ago
cazanova19921
37 minutes ago
No more topics!
IMO Shortlist 2009 - Problem N3
April   62
N Mar 19, 2025 by asdf334
Let $f$ be a non-constant function from the set of positive integers into the set of positive integer, such that $a-b$ divides $f(a)-f(b)$ for all distinct positive integers $a$, $b$. Prove that there exist infinitely many primes $p$ such that $p$ divides $f(c)$ for some positive integer $c$.

Proposed by Juhan Aru, Estonia
62 replies
April
Jul 5, 2010
asdf334
Mar 19, 2025
IMO Shortlist 2009 - Problem N3
G H J
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
April
1270 posts
#1 • 8 Y
Y by Davi-8191, tenplusten, A_Math_Lover, yayitsme, HWenslawski, megarnie, StarLex1, Adventure10
Let $f$ be a non-constant function from the set of positive integers into the set of positive integer, such that $a-b$ divides $f(a)-f(b)$ for all distinct positive integers $a$, $b$. Prove that there exist infinitely many primes $p$ such that $p$ divides $f(c)$ for some positive integer $c$.

Proposed by Juhan Aru, Estonia
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zhero
2043 posts
#2 • 10 Y
Y by anantmudgal09, utkarshgupta, Arshia.esl, SerdarBozdag, HWenslawski, strong_boy, Adventure10, Mango247, and 2 other users
Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
daniel73
253 posts
#3 • 8 Y
Y by A_Math_Lover, BaishuakRayimbek, wasikgcrushedbi, Adventure10, Mango247, and 3 other users
Alternative solution:

Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Learner94
634 posts
#4 • 3 Y
Y by Adventure10, Mango247, and 1 other user
I think this can be done in a simpler way
Let $p_1,p_2, \cdots, p_r$ be the only primes dividing $f(c)$, for all natural number $c$.

Let $f(S) = \prod_{i=1}^{r}(p_i)^{\alpha_i}$, where $\alpha_i \ge 0$

Now we will show that the sequence of natural numbers $\left \langle T_n \right \rangle _{n \ge 1 } $ such that $f(T_n + S) = f(S)$ is unbounded from above.

Indeed if for all $n \ge 1$ we let $T_n = \prod_{i=1}^{r}(p_i)^{\beta_i}$, such that $\beta_i > \alpha_i$ we
have $ (T_n + S) - S \mid f(T_n + S) - f(S)$ and its easy to see that $f(T_n + S) $ and $f(S)$ has same canonical factorization., hence are equal.

and take any natural number $N$, so we have $T_n + S - N \mid f(S) - f(N)$, if $T_n + S - N \le f(S) - f(N)$ or we have $T_n \le f(S) - f(N) + N - S$ for all $ n \ge 1$, which is a contradiction, since the sequence is unbounded from above. So we must have $f(S) = f(N)$, so the function is constant, which proves the statement of the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
filetmignon821
292 posts
#5 • 2 Y
Y by Adventure10, Mango247
Much easier way:
Let f(0)=c
We have p|f(p)-c for all p, so f(p)=kp+c for some integer k. Now assume by contradiction that there are finitely many primes that divide f(a) for some positive integer a. Let their product be P. We have $f(P^ac)=kP^ac+c=c(kP^a+1) \forall a \in \mathbb{N}$. Obviously, $kP^a+1$ is not divisible by any of the primes in our product, so k must be 0. Thus, $f(P^ac)=f(0) \forall a \in \mathbb{N}$. This means that $P^ac-x|f(0)-f(x) \forall a,x \in \mathbb{N}$. However, if we fix x, we can choose an a such that $P^ac-x>|f(0)-f(x)|$, so $f(x)=f(0) \forall x \in \mathbb{N}$. However, this means that f is constant, a contradiction. Thus, the problem statement is true.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zhero
2043 posts
#6 • 1 Y
Y by Adventure10
Quote:
so k must be 0.
Why?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
filetmignon821
292 posts
#7 • 2 Y
Y by Adventure10, Mango247
Zhero wrote:
Quote:
so k must be 0.
Why?

Because if k is not 0, $f(P^ac)=c(kP^a+1)$ is divisible by some prime not included in our product P. Unless c=0, but this is ok because if c=0 then p|f(p) for all p.

EDIT: Ultimately, this solution is identical to that of the same condition with polynomials, except we need to do a little extra for this problem, because the polynomial version would be finished after the step where $f(P^ac)=c(kP^a+1)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zhero
2043 posts
#8 • 3 Y
Y by TheThor, Adventure10, Mango247
Okay, I see. Thank you for clearing that up.

However, the problem specifies that the domain and range of $f$ is the set of positive integers, so you're not actually allowed to plug in 0.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
filetmignon821
292 posts
#9 • 2 Y
Y by Adventure10, Mango247
Zhero wrote:
Okay, I see. Thank you for clearing that up.

However, the problem specifies that the domain and range of $f$ is the set of positive integers, so you're not actually allowed to plug in 0.

Oops sorry. But i think we can make a similar argument using f(1)=c and $f(P^ac+1)=c(kP^a+1)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathocean97
606 posts
#10 • 4 Y
Y by nguyenhaan2209, XbenX, Adventure10, Mango247
Alternative solution:

So assume the only primes dividing some $f(n)$ are $p_1, p_2, \cdots, p_k$, and let $\gcd(f(1), f(2), f(3), \cdots) = p_1^{e_1}p_2^{e_2}p_3^{e_3}\cdots p_k^{e_k}$. (It is possible for some $e_i = 0$).
Note that $p_i^{e_i+1} \vert f(x+p_i^{e_i+1}) - f(x)$. Because the $\gcd = p_1^{e_1}p_2^{e_2}p_3^{e_3}\cdots p_k^{e_k}$, we can find a $x_i$ so that $p_1^{e_i+1} \not\vert f(x_i)$ for any $1 \le i \le k$. Now consider the set of congruences $x \equiv x_i \pmod{p_i^{e_i+1}}$ for $1 \le i \le k$. By the Chinese Remainder Theorem, this gives an arithmetic progression of solutions for $x$. Call the set of elements in this progression $S$.

Then for all $x \in S$ we can write $f(x) = p_1^{e_1}p_2^{e_2}p_3^{e_3}\cdots p_k^{e_k} \cdot q$. By our construction of $x$, $p_i \not\vert q$ for all $i$. But the since the only primes dividing some $f(n)$ are the $p_i$, we get that $q = 1$. So all elements $x \in S$, $f(x) = p_1^{e_1}p_2^{e_2}p_3^{e_3}\cdots p_k^{e_k}$. Since $f$ is nonconstant, we can take a $y$ so that $f(y) \not= p_1^{e_1}p_2^{e_2}p_3^{e_3}\cdots p_k^{e_k}$, and then $x-y \vert f(x) - f(y) \implies x-y \vert p_1^{e_1}p_2^{e_2}p_3^{e_3}\cdots p_k^{e_k}-f(y)$ when $x \in S$. But $x-y$ can get arbitrarily large, contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathdebam
361 posts
#11 • 1 Y
Y by Adventure10
to filetmiqnon821 the function maps from positive integers to itself............................how can u take 0.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
JuanOrtiz
366 posts
#12 • 2 Y
Y by Adventure10, Mango247
Suppose the problem is false. Then there exists a $k \in \mathbb{N}$ such that there exists distinct primes $p_1$, ..., $p_k$ such that there exists functions $g_i : \mathbb{N} \mapsto \mathbb{N}_0$ such that $f(a)=\prod_{i=1}^k p_i^{g_i(a)}$, $\forall a \in \mathbb{N}$.

Now, take $b = M \left( \prod_{i=1}^k p_i^{g_i(a)+1} \right) + a$, for any $M \in \mathbb{N}$. Then we have

$X = \left( \prod_{i=1}^k p_i^{g_i(a)+1} \right)$ $|$ $b-a$ $|$ $f(b)-f(a) = \prod_{i=1}^k p_i^{g_i(b)} - \prod_{i=1}^k p_i^{g_i(a)}$.

Notice that $v_{p_i}(X) = g_i(a)+1$ for all $i \le k$, and therefore $v_{p_i}(f(b)-f(a)) \ge g_i(a)+1 = v_{p_i}(f(a))+1$. So we must have $v_{p_i}(f(a))=v_{p_i}(f(b))$ for all $i \le k$. But since no other prime divides $f(x)$ (for all $x$), then we have $f(a)=f(b)$ for any $M$.

Notice that we can choose $M$ as big as we want, and they all generate different $b$'s. Therefore, since $f$ is not constant, we can take $c$ such that $f(c) \neq f(a)$. For any $M$ we must have $b-c | f(b)-f(c) = f(a)-f(c)$ and so $|b-c| \le f(a)-f(c)$ and so $b \le f(a)-f(c)+c$. But if we choose a $M$ that is very very gigantic, this will be impossible.

So 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.
junioragd
314 posts
#13 • 2 Y
Y by Adventure10, Mango247
Very easy for $N3$,but still very nice.Let f(1)=p1^a1*p2^a2*...pn^an.Now,if we pick a number of form $S*k+1$ where $k$ is an arbirtary positive integer and $S=f(1)*p1*p2...*pn$,then $f(S*k+1)$ is equal to $f(1)$,so we have infinity many integers $c$ such that $f(c)=f(1)$,so we can pick an integer $n$ such that $f(n)$ isn't equal $f(1)$(function isn't constant),so we have
$n$-very big $c$ divides $f(n)-f(1)$,but this is a contradiction cause we can pick an arbirtary large $c$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
va2010
1276 posts
#14 • 2 Y
Y by Pluto1708, Adventure10
We adapt the proof of Schur's theorem from Problems from the book. Again, let $g(x) = f(x+1)$, so the domain of $g$ is nonnegative integers. Now if $g(0) = 0$ the question is trivial, because $f(p)$ is a multiple of $p$ for all primes $p$. Now consider the function \[ h(x) = \frac{g(xg(0))}{g(0)} \]. Now this is integer valued, because \[ \frac{g(xg(0)) - g(0)}{xg(0)} \] is an integer, implying this result.

Now observe that it is sufficient to show that $h$ has infinitely many prime divisors. But this is easy. Assume that the largest prime divisor dividing any element of $f$ is $P$, and now observe that $h(xP!) - h(0) \equiv 0 \pmod{P!}$, so $h(xP!) \equiv 1 \pmod{P!}$. Hence, $h(xP!) = 1$ for all integers $x$, but then $h(xP!) - h(2) > xP! - 2$, which is false for significantly large $x$, so 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.
Aiscrim
408 posts
#15 • 3 Y
Y by Crimson., Adventure10, Mango247
Lemma: For a fixed $c$ we can only have finitely many $x\in \mathbb{N}$ s.t. $f(x)=c$.
Proof: Going by contradiction, let $M$ be the (infinite) set of positive integers with $f(x)=c$. As $f$ is nonconstant, there exists a positive integer $n$ s.t. $f(n)\ne c$. For any $x\in M$ we have that $x-n$ divides $c-f(n)$. As $x-n$ is unbounded, we get that $f(n)=c$, contradiction.

Lemma: Given a positive integer $n$ such that $f(n)\ne 1$, we can find a positive integer $m$ such that $f(n)|f(m)$ and $f(m)$ has at least one prime divisor which cannot be found in $f(n)$.
Proof: Let $f(n)=p_1^{\alpha_1}p_2^{\alpha_2}...p_k^{\alpha_k}$ and denote $a=p_1^{\alpha_1+1}p_2^{\alpha_2+1}...p_k^{\alpha_k+1}$. Then $a|f(n+a)-f(n)$ and $a|f(n+ta)-f(n+(t-1)a)$, hence (by summing) $a|f(n+ta)-f(n)$ for all positive integers $n$. By the previous lemma, $f(n+ta)$ cannot be equal to $f(n)$ for all values of $t$. Let $k$ be a positive integer such that $f(n+ka)\ne f(a)$. As $a|f(n+ka)-f(n)$, we infer that $f(n)|a|f(n+ka)-f(n)$, hence $f(n+ka)=f(n)r$ with $r\ne 1$. We get $p_1...p_k|r-1$, so $r$ has a prime divisor which is not among $p_1,...,p_k$, i.e. $f(n+ka)$ has all the prime divisors of $f(n)$ and at least one more.

As $f$ is nonconstant, we have a positive integer $n$ such that $f(n)\ne 1$. Starting with $n$ and applying the second lemma repeatedly, we find positive integers $m$ such that the number of prime divisors of $f(m)$ is as big as we want, whence the conclusion.
Z K Y
G
H
=
a