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
Complex number
soruz   2
N 22 minutes ago by alexheinis
$i)$ Determine $z \in \mathbb{C} $ such that $2|z| \ge |z^n-3|, \forall n \in  \mathbb N^*.$
$ii)$ Determine $z \in \mathbb{C} $ such that $2|z| \ge |z^n+3|, \forall n \in  \mathbb N^*.$
2 replies
soruz
Nov 28, 2024
alexheinis
22 minutes ago
tangent circles
m4thbl3nd3r   0
40 minutes ago
Let $O,H,T$ be circumcenter, orthocenter and A-HM point of triangle $ABC$. Let $AH,AT$ intersect $(O)$ at $K,N$, respectively. Let $XYZ$ be the triangle formed by $TH,BC,KN$. Prove that $(XYZ)$ is tangent to $(O).$
0 replies
m4thbl3nd3r
40 minutes ago
0 replies
Brilliant Problem
M11100111001Y1R   9
N an hour ago by The5
Source: Iran TST 2025 Test 3 Problem 3
Find all sequences \( (a_n) \) of natural numbers such that for every pair of natural numbers \( r \) and \( s \), the following inequality holds:
\[
\frac{1}{2} < \frac{\gcd(a_r, a_s)}{\gcd(r, s)} < 2
\]
9 replies
M11100111001Y1R
May 27, 2025
The5
an hour ago
Draw sqrt(2024)
shanelin-sigma   1
N an hour ago by CrazyInMath
Source: 2024/12/24 TCFMSG Mock p10
On a big plane, two points with length $1$ are given. Prove that one can only use straightedge (which draws a straight line passing two drawn points) and compass (which draws a circle with a chosen radius equal to the distance of two drawn points and centered at a drawn points) to construct a line and two points on it with length $\sqrt{2024}$ in only $10$ steps (Namely, the total number of circles and straight lines drawn is at most $10$.)
1 reply
shanelin-sigma
Dec 24, 2024
CrazyInMath
an hour ago
No more topics!
Number of Polynomial Q such that P(x) | P(Q(x))
IndoMathXdZ   16
N Apr 20, 2025 by Ilikeminecraft
Source: IZHO 2021 P6
Let $P(x)$ be a nonconstant polynomial of degree $n$ with rational coefficients which can not be presented as a product of two nonconstant polynomials with rational coefficients. Prove that the number of polynomials $Q(x)$ of degree less than $n$ with rational coefficients such that $P(x)$ divides $P(Q(x))$
a) is finite
b) does not exceed $n$.
16 replies
IndoMathXdZ
Jan 9, 2021
Ilikeminecraft
Apr 20, 2025
Number of Polynomial Q such that P(x) | P(Q(x))
G H J
G H BBookmark kLocked kLocked NReply
Source: IZHO 2021 P6
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IndoMathXdZ
694 posts
#1 • 4 Y
Y by Rounak_iitr, Mango247, Mango247, Mango247
Let $P(x)$ be a nonconstant polynomial of degree $n$ with rational coefficients which can not be presented as a product of two nonconstant polynomials with rational coefficients. Prove that the number of polynomials $Q(x)$ of degree less than $n$ with rational coefficients such that $P(x)$ divides $P(Q(x))$
a) is finite
b) does not exceed $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Igore
2 posts
#2 • 9 Y
Y by MazeaLarius, Mathematicsislovely, Kobayashi, mijail, Assassino9931, hakN, Rounak_iitr, bin_sherlo, farhad.fritl
$P(x)$ is irreducible so if $P(x)$ and some $R(x)$ share a root then $P(x)|R(x)$. If $x_i$, $i=1,2,3...$ are roots of $P(x)$, then $Q(x_i)=x_j$. Suppose we have $Q_1(x_1)=Q_2(x_1)$. Then $P(x)|Q_1(x)-Q_2(x)$ so $Q_1(x)=Q_2(x)$. Now $Q(x_1)$ has at most $n$ different values so there are at most $n$ polynomials $Q(x)$.

Can someone see if this is correct?
This post has been edited 1 time. Last edited by Igore, Jan 9, 2021, 1:38 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
p_square
442 posts
#3 • 4 Y
Y by MazeaLarius, Atpar, Mathematicsislovely, Assassino9931
@Above, seems correct

The following solution is identical; posting it for storage.
We prove part b) directly, implying part a)
Let $\alpha$ be a root of $P$. Observe that $Q(\alpha)$ is a root of $P$. In particular, there are $n$ choices for $Q(\alpha)$. We claim that there is at most one such polynomial $Q$ for each choice.
Assume FTSOC that $Q_1(\alpha) = Q_2(\alpha)$. Observe that $\gcd(Q_1 - Q_2, P)$ is nonconstant and has degree $< n$. This contradicts the irreducibility of $P$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IndoMathXdZ
694 posts
#4 • 2 Y
Y by mathingbingo, Rounak_iitr
My favorite problem throughout the test. :-D

Pretty much similar to above.
For $n = 1$, note that $Q(x)$ must be constant by the condition of the problem. Take $a$ to be the root of polynomial $P$, then $Q(x) = a$ is the only solution, which may or may not satisfy the condition dependant on whether $a \in \mathbb{Q}$ or not, and therefore there are at most one solution.
Now, assume $n > 1$, then $P$ has no rational roots.
WLOG $P \in \mathbb{Z}[x]$ is irreducible.
Since $P(x) \mid P(Q(x))$, if $a$ is a root of $P$ then $Q(a)$ is also a root of $P$.
Let $\{ x_1, x_2, \dots, x_n \}$ be the set of complex roots of $P$. Thus $Q(x_i) = x_j$ for all $1 \le i,j \le n$.
Now, suppose there exists two polynomials $Q_1, Q_2 \in \mathbb{Q}[x]$ such that $Q_1(x_i) = Q_2(x_i)$. Therefore, $x - x_i \mid Q_1(x) - Q_2(x) \Rightarrow P(x) \mid Q_1(x) - Q_2(x)$ as $Q_1(x) - Q_2(x) \in \mathbb{Q}[x]$. Since $P$ is irreducible, then this forces $Q_1 = Q_2$. Therefore, there are at most one polynomial for each values of $Q(x_1)$, finishing the problem.


Some failed attempts and fakesolve
This post has been edited 4 times. Last edited by IndoMathXdZ, Jan 11, 2021, 7:25 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
JapanMO2020
126 posts
#5 • 1 Y
Y by Rounak_iitr
IndoMathXdZ wrote:
Let $P(x)$ be a nonconstant polynomial of degree $n$ with rational coefficients which can not be presented as a product of two nonconstant polynomials with rational coefficients. Prove that the number of polynomials $Q(x)$ of degree less than $n$ with rational coefficients such that $P(x)$ divides $P(Q(x))$
a) is finite
b) does not exceed $n$.

My Solution.

We know that $P$ is an irreducible polynomial, so if $\mathrm{gcd}(P, R)$ is non-constant then $P \lvert R$. We see that if $\mathbb{F}$ is the set of roots of $P$, then $Q : \mathbb{F} \rightarrow \mathbb{F}$. If $\mathbb{QF}$ is the set of all such polynomials $Q$, then $Q_i, Q_j \in \mathbb{QF}$ such that $Q_i \rightarrow Q_j = \sigma (Q_i)$ has one fixed point, then $P \lvert Q_i - Q_j$ which means that $Q_i = Q_j$, so there can exist at most $n$ polynomials $Q$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexiaslexia
110 posts
#6 • 6 Y
Y by Math_olympics, amar_04, mijail, David-Vieta, guptaamitu1, Rounak_iitr
When P2, P3 and P5 is hard, P6 gets a smoke screen.
Let $Q_1,Q_2,\ldots,Q_{n+1}$ satisfies the equation. Factoring out $Q_i(x)-Q_j(x)$ does wonders!
$\color{green} \rule{25cm}{2pt}$
$\color{green} \textbf{1 Claim and Done.}$ If there is a $k+1-$variabled polynomial with degree $\leq n-k$ so that
\[ P \mid S_k(Q_{i_1},Q_{i_2},\ldots,Q_{i_{k+1}}) \: \forall i_a \ne i_b, 1 \leq a,b \leq k+1 \cdots (1) \]then there exists a polynomial $S_{k+1}$ with degree $\leq n-k-1$ so that the same assertion holds for $k+2$ $Q-$polynomials.
$\color{green} \textbf{Proof.}$ Substracting two equations in similar form to $(1)$,
\[ P \mid S_k(Q_c,Q_{i_2},\ldots,Q_{i_{k+1}}) - S_k(Q_d,Q_{i_2},\ldots,Q_{i_{k+1}}) \]We see this as a polynomial in one-variable (the first one); explicitly, let $S_k(x_1,\ldots,x_{k+1}) = S^{(k)}_{x_2,\ldots,x_{k+1}}(x_1)$. So, the above expression is equal to
\[ S^{(k)}_{x_2,\ldots,x_{k+1}}(Q_c) - S^{(k)}_{x_2,\ldots,x_{k+1}}(Q_d) = (Q_c-Q_d) \cdot S_{k+1}(Q_c,Q_d,\ldots,Q_{i_{k+1}}) \]for some $S_{k+1}$. As we know that $\gcd{P,Q_c-Q_d} = 1$, then we know that
\[ P \mid S_{k+1}(Q_c,Q_d,\ldots,Q_{i_{k+1}}) \]Note that this $S_{k+1}$ is equal for every $k+2-$tuple of polynomials $Q_{c},Q_d,\ldots,Q_{i_{k+1}}$, as the initial polynomial $S_k$ is equal for all initial tuples. $\blacksquare$ $\blacksquare$
$\color{red} \rule{25cm}{2pt}$
$\color{red} \textbf{1 Line Finish.}$ First, we let $S_0 = P$. Applying the Lemma $n-1$ times we will reach the polynomial $S_{n-1}$ with degree at most $n-(n-1) = 1$, so that
\[ P \mid k_1 \cdot Q_1+k_2 \cdot Q_2+\ldots+k_n \cdot Q_n+C \]However, repeating this for $(Q_{n+1},Q_2,\ldots,Q_n)$ yields
\[ P \mid k_1 \cdot Q_{n+1}+k_2 \cdot Q_2+\ldots+k_n \cdot Q_n+C \]Substracting those two equations, we get
\[ P \mid k_1 \cdot (Q_1-Q_{n+1}) \]which is impossible. $\blacksquare$ $\blacksquare$ $\blacksquare$
Short motivational remarks for Short Solution.
Attachments:
2INA11-11-13.pdf (388kb)
This post has been edited 1 time. Last edited by alexiaslexia, Jan 15, 2021, 2:26 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math90
1482 posts
#7 • 1 Y
Y by guptaamitu1
WLOG $P\left(x\right)$ is monic of degree $n$. Assume there exist distinct polynomials $Q_1\left(x\right),\dots,Q_{n+1}\left(x\right)\in\mathbb{Q}\left[x\right]$ such that $P\left(x\right)$ divides $P\left(Q_i\left(x\right)\right)$ for each $i$.
Consider the $\left(n+1\right)\times\left(n+1\right)$ matrices
\[A=\begin{bmatrix}
1 & Q_1 & Q_1^2 & \ldots & Q_1^{n-1} & P\left(Q_1\right) \\
1 & Q_2 & Q_2^2 & \ldots & Q_2^{n-1} & P\left(Q_2\right) \\
1 & Q_3 & Q_3^2 & \ldots & Q_3^{n-1} & P\left(Q_3\right) \\
\vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
1 & Q_{n+1} & Q_{n+1}^2 & \ldots & Q_{n+1}^{n-1} & P\left(Q_{n+1}\right) 
\end{bmatrix}\]and
\[B=\begin{bmatrix}
1 & Q_1 & Q_1^2 & \ldots & Q_1^{n-1} & Q_1^n \\
1 & Q_2 & Q_2^2 & \ldots & Q_2^{n-1} & Q_2^n \\
1 & Q_3 & Q_3^2 & \ldots & Q_3^{n-1} & Q_3^n \\
\vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
1 & Q_{n+1} & Q_{n+1}^2 & \ldots & Q_{n+1}^{n-1} & Q_{n+1}^n
\end{bmatrix}\]Since $P\left(x\right)$ is monic we have $\det\left(A\right)=\det\left(B\right)$ by column operations. Moreover $P\left(x\right)\mid\det\left(A\right)$ by the determinant formula and since $P\left(x\right)$ divides $P\left(Q_i\left(x\right)\right)$ for each $i$. Hence by Vandermonde's identity,
\[P\left(x\right)\mid\det\left(A\right)=\det\left(B\right)=\prod_{i<j}\left(Q_j\left(x\right)-Q_i\left(x\right)\right)\]Since $P\left(x\right)$ is irreducible we must have $P\left(x\right)\mid Q_j\left(x\right)-Q_i\left(x\right)$ for some $i<j$. Since $\deg\left(Q_j-Q_i\right)<n$ we must have $Q_i=Q_j$, contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Lioghte24
38 posts
#8 • 3 Y
Y by Rounak_iitr, Mango247, Mango247
So basically the same solution as above like #2, but anyway, posting it for storage... :)
First it is known that if polynomial $P$ in $\mathbb{Q}[x]$ is irreducible and other polynomial $F$ has the same root as $P$, then $P\mid F$.
Also irreducible polynomials don't have double roots which can be checked also using above lemma.
So if polynomial $P(x)\mid P(Q(x))$ then we get that $P(Q(x))=P(x)F(x)$ for some $F$ then by plugging roots $\omega_{i}$ in this equality we get that $P(Q(\omega_{i}))=0$ so $Q(\omega_{i}); 1\le i\le n$ is in set of roots of $P$. Now we prove $b)$ so also directly proving $a)$.
Suppose we have more than $n$ distinct polynomials $Q_{1},...,Q_{t}$ such that they satisfy the condition, by pigeonhole principle we must have that for some $i$ and $j$ we have $Q_{i}(\omega_1)=Q_{j}(\omega_1)$, but by making a new polynomial $Q_{i}(x)-Q_{j}(x)$ we get that it is divisible by $P$ but it's degree is smaller so impossible unless $Q_{i}(x)-Q_{j}(x)$ is zero polynomial but then they are identical, contrary to hypothesis, done!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5005 posts
#9
Y by
Suppose the roots of $P$ are $r_1,\ldots,r_k$ (counted without multiplicity), so $k \leq n$. Since $P$ is irreducible over $\mathbb{Q}[x]$, every $r_i$ must be an algebraic number of degree $n$.
If $P(x) \mid P(Q(x))$, then for all $1 \leq i \leq k$, there must exist some $1 \leq j \leq k$ such that $Q(r_i)=r_j$, since otherwise we would have $P(r_i)=0$ and $P(Q(r_i))\neq 0$. I claim that $Q$ is uniquely determined by $Q(r_1)$. Indeed, suppose that we had two different polynomials $Q_1,Q_2$ of degree at most $n-1$ such that $Q_1(r_1)=Q_2(r_1)$. Then $Q_1-Q_2$ also has degree at most $n-1$ and has $r_1$ as a root. But this contradicts the fact that $r_1$ is degree $n$, hence $Q$ is unique. To finish, note that there are $k$ possibilities for $Q(r_1)$, hence there are at most $n$ choices for $Q$, as desired. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5610 posts
#10
Y by
Let $P$ have distinct roots $r_1, r_2, \ldots, r_m$ for some positive integer $m\le n$. We see that there exists $j$ satisfying $Q(r_i) = r_j$ for each $1\le i\le m$.

Claim: For each value of $Q(r_1)$, there is at most one possible polynomial $Q$.
Proof: Suppose there were two distinct polynomials $p$ and $q$ of degree less than $n$ in $\mathbb{Q}[x]$, where $P(x)$ divides $P(p(x))$ and $P(q(x))$, and $p(r_1) = q(r_1)$. WLOG $p(r_1) = r_2$. Then we see that $r_2$ is a root of $p(x) - q(x)$, so $P(x)\mid p(x) - q(x)$. Since $p(x)$ and $q(x)$ have degree less than $n$, $p(x) - q(x)$ must be the zero polynomial, which is absurd because $p$ and $q$ are different. $\square$

The result follows because there are at most $m\le n$ possible values for $Q(r_1)$.
This post has been edited 1 time. Last edited by megarnie, Aug 8, 2023, 1:02 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
YaoAOPS
1551 posts
#11 • 1 Y
Y by Rounak_iitr
Chinese Antiproblems :flushed:.

Claim: If $z$ is a root of $P$, then $Q(z)$ must also be a root.
Proof. Follows as $P(Q(z)) = 0$. $\blacksquare$

Claim: There are at most $n$ possible $Q$.
Proof. FTSOC suppose that $n + 1$ such $Q$ existed. Then by pigeonhole, for a fixed root $z$ there exist polynomials $Q_1, Q_2$ such that $Q_1(z) - Q_2(z) = 0$. It then follows that $Q_1 - Q_2$ has degree less than $n$ but has $z$ as a root, contradiction since $P$ is irreducible and thus minimal. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8881 posts
#12 • 1 Y
Y by Rounak_iitr
Let $R$ be the set of roots of $P$. Then notice that the condition implies that for any $\alpha \in R$, then $Q(\alpha) \in R$ too.

Fix an $\alpha \in R$. If there are more than $n$ possible $Q$, say $Q_1, Q_2, \dots, Q_n$, then there exists $Q_1(\alpha) = Q_2(\alpha)$, hence the minimal polynomial of $\alpha$ is $\deg(Q_1-Q_2) < \deg P$, contradiction.
This post has been edited 2 times. Last edited by HamstPan38825, Oct 13, 2023, 3:20 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Rounak_iitr
457 posts
#15
Y by
Here's The official solution.
$\color{red}\textbf{Claim:-}$ It is known that an irreducible polynomial $P(x)$ of degree n with rational coeffcients has $n$
different complex roots which we denote by $\alpha_1,\alpha_2,..,\alpha_n$
$\color{blue}\textbf{Proof:-}$ $(a)$ If $P(x)$ divides $P(Q(x)),$ then $Q(\alpha k)$ is also a root of $P(x)$ for each$ k \le n$. It follows that the values of $Q(x)$ at $\alpha_1,\alpha_2,....\alpha_n$ form a sequence $\alpha_{i1},\alpha_{i2},.......,\alpha_{in}$, where all terms are roots of $P(x)$ not necessarily different. The number of such sequences is $n$ , and for each sequence there exists at most one polynomial
$Q(x)$ such that $Q(\alpha _k) = \alpha_{ik}$ (since two polynomials of degree less than $n$ with equal values at $n$ points must coincide).

$(b)$ Thus the number of possible polynomials $Q(x)$ does not exceed $n$ For each polynomial $Q(x)$ satisfying the condition, $Q(\alpha_1)$ equals one of the roots $\alpha_i$. However, there is at most one polynomial $Q(x)$ of degree less than $n$ with rational coefficients such that $Q(\alpha_1) = \alpha_i$, Indeed, if
$Q_1(\alpha_1) = Q_2(\alpha_1) = \alpha_i,$ then $\alpha_1$ is a root of the polynomial $Q_1(x)-Q_2(x)$ with rational coefficients and degree
less than $n.$ If this polynomial is not identically zero, its greatest common divisor with $P(x)$ is a nonconstant
divisor of $P(x)$ with rational coefficients and degree less than $n,$ a contradiction.
Thus the number of possible polynomials $Q(x)$ does not exceed $n.$
This post has been edited 1 time. Last edited by Rounak_iitr, Jan 15, 2024, 1:03 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Physicsknight
640 posts
#17 • 2 Y
Y by GeoKing, MS_asdfgzxcvb
Let $\alpha$ be a root of $P$ and let $K=Q(\alpha) =\frac{ Q[x]}{(P)}.$ Since $P$ is irreducible it's the minimal polynomial of $\alpha$, and thus $P$ divides a polynomial $R$ iff $R(\alpha)=0. $ It follows that $P\mid P(Q)$ iff $Q(\alpha)$ is one of the roots of $P$ in $K$.

In particular let $T\in Q(x) $ be an arbitrary polynomial and let $Q(x) = P(x)T(x)+x$. Then $P(Q(\alpha)) = P(P(\alpha)T(\alpha)+\alpha) = P(\alpha) = 0$.

More generally, let $\{ \alpha_i \}_{i=1}^k$ be the roots of $P$ in $K$ so $k\leq n$ and this is the "at most n" in the question. For each $i$ there is a unique polynomial $R_i \in Q[x]$ of degree less than $n$ so that $\alpha_i = R_i(\alpha)$ (in the example above $R(x)=x$). Then $P | P(Q)$ iff there is $i$ so that $Q(\alpha) = \alpha_i$ iff $Q(\alpha)-R_i(\alpha) = 0$ iff $P | Q-R_i$.

We conclude that $P | P(Q)$ iff there are $T\in Q[x]$ and $i$ so that $Q = PT+R_i$.

Since the degree of $R_i$ is strictly less than $n$ and the degree of $PT$ is a multiple of $n$ (the degree of $P$) we see that the degree of $Q$ can be at most $n$ only if $T=0$. Thus the only choices for $Q$ are the $R_i$ themselves, and the number of solutions is exactly the number of roots of $P$ in $K.$
$\blacksquare$

Note- Here we should prove that there are at most $n$ polynomials $Q$ with rational coefficients and degree less than $n$ so that the composition $P\circ Q$ is divisible by $P$ in the ring of polynomials with rational coefficients $.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1748 posts
#18 • 2 Y
Y by MS_asdfgzxcvb, megarnie
Let $r$ be a root of $P$. If $Q_1,Q_2$ are distinct and valid and satisfy $Q_1(r)=Q_2(r)$ then $Q_1-Q_2$ has root $r$ and degree $<n$, but $P$ is the minimal polynomial of $r$, impossible. Now $P(x)\mid P(Q(x))$ implies $Q(r)$ is one of $n$ roots of $P$, so at most $n$ valid $Q$ exist, one for each root.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1930 posts
#19 • 1 Y
Y by OronSH
Let $\alpha_1,\alpha_2,\dots,\alpha_n$ be the roots of $P(x)$. Then $\alpha_1$ is a root of $P(Q(x))$, so $Q(\alpha_1)=\alpha_k$ for some $k$. For each $k$, there exists at most one such polynomial (since the difference between two of them would need to be a multiple of $P$), done. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
685 posts
#20
Y by
Note that we clearly require all of the roots of $P$ to be complex. Let $z_1, z_2, \dots, z_n$ be the $n$ roots. For every $i,$ we require $Q(z_i) = z_j$ for some $j.$ Now, suppose there existed more than $n - 1$ such polynomials. By PHP, there must exist $Q_1, Q_2$ that work and $Q_1(z_1) = Q_2(z_1).$ If we subtract, then $Q_1(X) - Q_2(X)$ is a rational polynomial with root $z_1.$ However, $P$ is the minimal polynomial of $z_1,$ as $P$ is irreducible. Thus, $P\mid Q_1 - Q_2,$ implying $Q_1 = Q_2$ due to degree. This finishes.
Z K Y
N Quick Reply
G
H
=
a