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
Determine the minimum value
April   19
N a few seconds ago by Ilikeminecraft
Source: CGMO 2007 P3
Let $ n$ be an integer greater than $ 3$, and let $ a_1, a_2, \cdots, a_n$ be non-negative real numbers with $ a_1 + a_2 + \cdots + a_n = 2$. Determine the minimum value of \[ \frac{a_1}{a_2^2 + 1}+ \frac{a_2}{a^2_3 + 1}+ \cdots + \frac{a_n}{a^2_1 + 1}.\]
19 replies
April
Dec 28, 2008
Ilikeminecraft
a few seconds ago
Japan 1997 inequality
hxtung   77
N a minute ago by Ilikeminecraft
Source: Japan MO 1997, problem #2
Prove that

$ \frac{\left(b+c-a\right)^{2}}{\left(b+c\right)^{2}+a^{2}}+\frac{\left(c+a-b\right)^{2}}{\left(c+a\right)^{2}+b^{2}}+\frac{\left(a+b-c\right)^{2}}{\left(a+b\right)^{2}+c^{2}}\geq\frac35$

for any positive real numbers $ a$, $ b$, $ c$.
77 replies
hxtung
Jul 27, 2003
Ilikeminecraft
a minute ago
n-variable product of kth powers [Taiwan 2014 Quizzes]
v_Enhance   19
N a minute ago by Ilikeminecraft
Let $a_i > 0$ for $i=1,2,\dots,n$ and suppose $a_1 + a_2 + \dots + a_n = 1$. Prove that for any positive integer $k$,
\[ \left( a_1^k + \frac{1}{a_1^k} \right) \left( a_2^k + \frac{1}{a_2^k} \right) \dots \left( a_n^k + \frac{1}{a_n^k} \right) \ge \left( n^k + \frac{1}{n^k} \right)^n. \]
19 replies
v_Enhance
Jul 18, 2014
Ilikeminecraft
a minute ago
Actually, D could be any point on the plane
Sadigly   2
N 10 minutes ago by Ianis
An arbitary point $D$ is selected on arc $BC$ not containing $A$ on $(ABC)$. $P$ and $Q$ are the reflections of point $B$ and $C$ with respect to $AD$, respectively. Circumcircles of $ABQ$ and $ACP$ intersect at $E\neq A$. Prove that $A;D;E$ is colinear
2 replies
Sadigly
Apr 13, 2025
Ianis
10 minutes ago
No more topics!
Nice -- Find all polynomials f such that f(n) divides n!^k
v_Enhance   13
N Apr 12, 2025 by Ilikeminecraft
Source: Taiwan 2014 TST1, Problem 2
For a fixed integer $k$, determine all polynomials $f(x)$ with integer coefficients such that $f(n)$ divides $(n!)^k$ for every positive integer $n$.
13 replies
v_Enhance
Jul 18, 2014
Ilikeminecraft
Apr 12, 2025
Nice -- Find all polynomials f such that f(n) divides n!^k
G H J
Source: Taiwan 2014 TST1, Problem 2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6876 posts
#1 • 7 Y
Y by anantmudgal09, Davi-8191, HamstPan38825, megarnie, Adventure10, Mango247, cubres
For a fixed integer $k$, determine all polynomials $f(x)$ with integer coefficients such that $f(n)$ divides $(n!)^k$ 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.
fattypiggy123
615 posts
#2 • 5 Y
Y by Kezer, Atpar, Adventure10, nikdr, cubres
Since $f(n) | (n!)^k$ we see that all prime factors of $f(n)$ is $\leq  n $. It is well known that there are infinitely many primes $p$ such that there exist $m$ satisfying $f(m) \equiv 0 \pmod p$ if $f(x)$ is non-constant. For any such $p$, we can assume $1 \leq m \leq p$ but it follows that $m = p$. So for all such $p$ one has that $p | a_0$ where $a_0$ is the constant coefficient. Then $a_0 = 0$ and we can just consider $g(x) = \frac{f(x)}{x}$ which satisfies the same condition as $f(x)$. From this we get that $f(x) = cx^m$ for some integer $c$ and $m$ and it follows that $c = 1$ or $-1$ from checking $n = 1$ and that it sufficies to have $m \leq k$ by checking $n = p$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sicilianfan
944 posts
#3 • 3 Y
Y by Adventure10, Mango247, cubres
First note the trivial solution $f(x)=1$. Now suppose the polynomial is non-constant. Now we prove a lemma:

Lemma : For all primes $p$, we have $p \mid f(n) \implies p \mid n$.

Proof: We use strong induction on $n$. The base couple cases are trivial by exhausting the few possibilities. Now it suffices to check all $p<n$. Now take some $p<n, p \nmid n$. Then take $n \equiv n_0 \pmod{p}$ where $0<n_0<p$. After that it is clear that $f(n) \equiv f(n_0) \not \equiv 0 \pmod{p}$ so we are done.

This means that all nonconstant polynomials satisfying the conditions have a constant term of zero. This means that $n \mid f(n)$. Dividing through by $n$ we receive a new function satisfying the same requirements as $f(n)$, implying that our only solutions are of the form $f(n)= \pm n^j$ for some non-negative $j \le k$. $\Box$

Darn I didn't reload the page in so long that I got massively sniped
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#4 • 3 Y
Y by Adventure10, Mango247, cubres
...........
This post has been edited 3 times. Last edited by anantmudgal09, Jun 24, 2019, 8:03 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Garfield
243 posts
#5 • 2 Y
Y by Adventure10, cubres
Solution
This post has been edited 1 time. Last edited by Garfield, Oct 29, 2016, 8:16 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
droid347
2679 posts
#7 • 3 Y
Y by Adventure10, Mango247, cubres
I claim the only solutions are $f(x)=\pm x^a$ for $a=0,1,\ldots, k$. To see that these work, note that $n|n!$ for all positive integer $n$ :P.

If $f$ is constant it must be $\pm 1$, so assume otherwise. I claim only prime factors of $n$ may divide $f(n)$. Note that $a\equiv b\pmod{c}\implies f(a)\equiv f(b)\pmod{c}$ for integer polynomials, so let $d$ be equivalent to $n$ modulo some prime $p$ such that $1\leq d<p$ and thus $f(n)\equiv f(d)\pmod{p}$. But $f(d)|(d!)^{k}$ so it is not divisible by $p$, so $f(n)$ is not divisible by any prime $p$ that does not divide $n$ and the claim is proven.

Now, $f(p)=\pm p^l$ for some $0\leq l\leq k$, but as $f$ is nonconstant, we have $l\geq 1$ for infinitely many primes $p$. As $p$ obviously divides all the nonconstant terms of $f(p)$, we then know that the constant term of $f$ is divisible by infinitely many primes, and thus $f$'s constant term is zero. But then we can factor an $n$ out of $f(n)$ and our arguments still hold, so by induction we get that $f$ is $f(x)=\pm x^a$ 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.
SPHS1234
466 posts
#8 • 1 Y
Y by cubres
We infer that $p|f(n) \implies p\leq n$.This means that $(p,f(1))=(p,f(2))=\cdots (p,f(p-1))=1$.Then let $\mathbb{S}_p$ be the set of prime divisors of $f$.If $p \in \mathbb{S}_p$ then $p|f(p) \implies p|f(0)\implies f(0)=0$.Write $f(n)=n^t.P(n)$.Using similar arguments , we will get that $P(0)=0$.Thus , we can reduce the degree and ultimately get $$f(n)=a.n^t$$Since $f(1)|1$ , we have that $a= \pm1$.Also $\pm p^t|p^k \implies t\leq k$
This post has been edited 1 time. Last edited by SPHS1234, Dec 23, 2021, 2:54 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathLuis
1501 posts
#9 • 1 Y
Y by cubres
Spamming poly-NT is sooo cool.
Solution: The set of solutions is $f(n)=c \cdot n^l$ where $c \in \{-1,1 \}$ and $l \in \{0,1,2,...,k \}$
Proof: If $f$ was constant then it would be $1$ or $-1$ by plugging $n=1$. So now assume that its not constant, hence by Schur we have that we can set a larger enough prime $p$ such that for some $n$ we have $p \mid f(n)$ and now we can set that $n \le p$ and $n \in \mathbb Z^+$ to get $p \mid (n!)^k$ which would mean that $p=n$ hence $p \mid f(p)$ but aince we said we can let $p$ as larger as we want we have that $p \mid a_0$ hence $a_0=0$ which means that the replace $n \cdot g(n)=f(n)$ makes sense, now from here its very easy that we can repeat the same process until we get $n^k \cdot h(n)=f(n)$ in which here $h$ has to be $1$ or $-1$ hence we are done :blush:

Edit: First solution i post from my new Laptop :D
This post has been edited 2 times. Last edited by MathLuis, Jan 27, 2022, 11:33 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihategeo_1969
206 posts
#12 • 1 Y
Y by cubres
Short Answer **Trivial by Schur's Lol :P **

Long Answer We claim the only solutions are $\boxed{f(n) \equiv \pm n^d}$ (where $0 \leq d \leq k$). Obviously they work. Now we will prove the converse. Assume $f$ is nonconstant (otherwise only solution is $f \equiv 1$ obviously). Define \[f(X):=a_dX^d + \dots + a_0\]Now see that by Schur's Theorem there exists infinitely many primes $p$ such that $p \mid f(n)$ for some $n$. Consider the minimal such $n$.

Then we get $p \geq n$ or else $p \mid f(n-p)$ contradicting minimality. But also $p \mid f(n) \mid {\left(n! \right)}^k \implies p \leq n$, and hence $p=n$ and we get \[p \mid f(p) \iff p \mid f(0) \text{ for infinitely many primes $p$ } \iff f(0)=0 \iff a_0=0\]and hence now we can define \[g(X):=\frac{f(X)}{X}\]and repeat the process untill we get $f(X)=a_dX^d$.

And then by the relations $f(1) \mid 1$ and $f(2) \mid 2^k$, we get the above solutions, as desired.
This post has been edited 3 times. Last edited by ihategeo_1969, Apr 30, 2024, 7:27 PM
Reason: box the answer
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hectorleo123
342 posts
#13 • 1 Y
Y by cubres
v_Enhance wrote:
For a fixed integer $k$, determine all polynomials $f(x)$ with integer coefficients such that $f(n)$ divides $(n!)^k$ for every positive integer $n$.
$\color{blue}\boxed{\textbf{Proof:}}$
$\color{blue}\rule{24cm}{0.3pt}$
If $k=0 \Rightarrow f(n)|1,\forall n\in\mathbb{Z}^+ \Rightarrow f(x)=\pm 1$
Let $p$ be a prime factor of $f(n)$, with $n\in\mathbb{Z}^+$ fixed $\Rightarrow p|f(n)|(n!)^k \Rightarrow p\leq n$
Let $a\in \mathbb{Z}^+_0/ n-ap> 0$($a$ is the maximum that satisfies)
$\Rightarrow p|ap=n-(n-ap)|f(n)-f(n-ap)\Rightarrow p|f(n-ap)|(n-ap)!^k \Rightarrow p\leq n-ap \Rightarrow p=n-ap\text{(by definition of a)} \Rightarrow p|n$
Then $p|f(n)\Rightarrow p|n!,\forall p \text{ prime}$
$\Rightarrow f(p)=\pm 1 \text{ or } p|f(p)|p!^k,\forall p\text{ prime}\Rightarrow f(p)\in\{\pm 1, \pm p, \pm p^2, \ldots, \pm p^k\},\forall p\text{ prime}$
Some occur infinite times $\Rightarrow f(x)=\pm x^i, i\in\{0,1,\ldots, k\} \text{ is a solution}$
Combining both cases:
$$f(x)=\pm x^i, i\in\{0,1,\ldots, k\} \text{ is a solution}_\blacksquare$$$\color{blue}\rule{24cm}{0.3pt}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anshu_Singh_Anahu
69 posts
#14 • 1 Y
Y by cubres
Trivial by schur's theorem but cute
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1729 posts
#15 • 1 Y
Y by cubres
We claim $f(x)=x^i,-x^i$ for $0\le i\le k$.

The claim is that the prime factors of $f(n)$ are a subset of the prime factors of $n$ (without multiplicity).

We prove this by strong induction. It is clearly true for $n=1,2$. For $n>2$ then all prime factors of $f(n)$ are $\le n$, and for each $p<n$ we have $p=n-(n-p)\mid f(n)-f(n-p)$, so $p\mid f(n)\implies p\mid f(n-p)\implies p\mid n-p\implies p\mid n$ as desired.

In particular this implies that $f(p)$ is a positive or negative power of $p$ with nonnegative exponent $\le k$ for all $p$. Thus there exist some $0\le i\le k,c\in\{-1,1\}$ for which $f(p)=cp^i$ for infinitely many $p$. Both sides are polynomial in $p$, so since they are equal infinitely many times they are the same polynomial, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathandski
750 posts
#16 • 1 Y
Y by OronSH
Buh almost forgot $\pm$
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
457 posts
#17
Y by
The answer is $f\equiv \pm x^{e}$ where $e\leq k.$
Claim: $\operatorname{rad}(f(n))\mid \operatorname{rad}(n)$
Proof: Suppose $p\mid f(n).$ It follows that $p\mid f(n\pmod p).$ If $p\nmid n,$ then $0 < n\pmod p < p,$ which is a contradiction since $p \mid f(n\pmod p) \mid (n\pmod p)!^k$ where the last value has no factor of $p.$
Claim: If $n\nmid f(n),$ then $f\equiv 1, -1\pmod p$
Proof: Note that $n - 0 \mid f(n) - f(0).$ Thus, $n\nmid f(0).$ Assume $p\nmid f(0).$ It follows that $p\nmid f(p^\ell),$ which forces $f(p^\ell) = \pm 1.$ There are infinitely many $p$ such that either $f(p^\ell) = \pm 1,$ and then subtracting/adding 1 implies our result.

Now, note there are infinitely many primes $p$ such that $f\equiv cp^e$ for some $0\leq e \leq k, c\in\{1, -1\}.$ This implies the result.
Z K Y
N Quick Reply
G
H
=
a