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
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
Parallelograms and concyclicity
Lukaluce   29
N 10 minutes ago by ItsBesi
Source: EGMO 2025 P4
Let $ABC$ be an acute triangle with incentre $I$ and $AB \neq AC$. Let lines $BI$ and $CI$ intersect the circumcircle of $ABC$ at $P \neq B$ and $Q \neq C$, respectively. Consider points $R$ and $S$ such that $AQRB$ and $ACSP$ are parallelograms (with $AQ \parallel RB, AB \parallel QR, AC \parallel SP$, and $AP \parallel CS$). Let $T$ be the point of intersection of lines $RB$ and $SC$. Prove that points $R, S, T$, and $I$ are concyclic.
29 replies
Lukaluce
Apr 14, 2025
ItsBesi
10 minutes ago
Inequality with a,b,c,d
GeoMorocco   5
N 13 minutes ago by GeoMorocco
Source: Moroccan Training 2025
Let $ a,b,c,d$ positive real numbers such that $ a+b+c+d=3+\frac{1}{abcd}$ . Prove that :
$$ a^2+b^2+c^2+d^2+5abcd \geq 9 $$
5 replies
GeoMorocco
Apr 9, 2025
GeoMorocco
13 minutes ago
number theory
Levieee   4
N 14 minutes ago by Safal
Idk where it went wrong, marks was deducted for this solution
$\textbf{Question}$
Show that for a fixed pair of distinct positive integers \( a \) and \( b \), there cannot exist infinitely many \( n \in \mathbb{Z} \) such that
\[
\sqrt{n + a} + \sqrt{n + b} \in \mathbb{Z}.
\]
$\textbf{Solution}$

Let
\[
x = \sqrt{n + a} + \sqrt{n + b} \in \mathbb{N}.
\]
Then,
\[
x^2 = (\sqrt{n + a} + \sqrt{n + b})^2 = (n + a) + (n + b) + 2\sqrt{(n + a)(n + b)}.
\]So:
\[
x^2 = 2n + a + b + 2\sqrt{(n + a)(n + b)}.
\]
Therefore,
\[
\sqrt{(n + a)(n + b)} \in \mathbb{N}.
\]
Let
\[
(n + a)(n + b) = k^2.
\]Assume \( n + a \neq n + b \). Then we have:
\[
n + a \mid k \quad \text{and} \quad k \mid n + b,
\]or it could also be that \( k \mid n + a \quad \text{and} \quad n + b \mid k \).

Without loss of generality, we take the first case:
\[
(n + a)k_1 = k \quad \text{and} \quad kk_2 = n + b.
\]
Thus,
\[
k_1 k_2 = \frac{n + b}{n + a}.
\]
Since \( k_1 k_2 \in \mathbb{N} \), we have:
\[
k_1 k_2 = 1 + \frac{b - a}{n + a}.
\]
For infinitely many \( n \), \( \frac{b - a}{n + a} \) must be an integer, which is not possible.

Therefore, there cannot be infinitely many such \( n \).
4 replies
Levieee
2 hours ago
Safal
14 minutes ago
Sequence and prime factors
USJL   7
N 41 minutes ago by MathLuis
Source: 2025 Taiwan TST Round 2 Independent Study 1-N
Let $a_0,a_1,\ldots$ be a sequence of positive integers with $a_0=1$, $a_1=2$ and
\[a_n = a_{n-1}^{a_{n-1}a_{n-2}}-1\]for all $n\geq 2$. Show that if $p$ is a prime less than $2^k$ for some positive integer $k$, then there exists $n\leq k+1$ such that $p\mid a_n$.
7 replies
USJL
Mar 26, 2025
MathLuis
41 minutes ago
powers sums and triangular numbers
gaussious   4
N an hour ago by kiyoras_2001
prove 1^k+2^k+3^k + \cdots + n^k \text{is divisible by } \frac{n(n+1)}{2} \text{when} k \text{is odd}
4 replies
gaussious
Yesterday at 1:00 PM
kiyoras_2001
an hour ago
complex bashing in angles??
megahertz13   2
N an hour ago by ali123456
Source: 2013 PUMAC FA2
Let $\gamma$ and $I$ be the incircle and incenter of triangle $ABC$. Let $D$, $E$, $F$ be the tangency points of $\gamma$ to $\overline{BC}$, $\overline{CA}$, $\overline{AB}$ and let $D'$ be the reflection of $D$ about $I$. Assume $EF$ intersects the tangents to $\gamma$ at $D$ and $D'$ at points $P$ and $Q$. Show that $\angle DAD' + \angle PIQ = 180^\circ$.
2 replies
megahertz13
Nov 5, 2024
ali123456
an hour ago
f(x+y+f(y)) = f(x) + f(ay)
the_universe6626   5
N 2 hours ago by deduck
Source: Janson MO 4 P5
For a given integer $a$, find all functions $f:\mathbb{Z}\rightarrow\mathbb{Z}$ such that
\[f(x+y+f(y))=f(x)+f(ay)\]holds for all $x,y\in\mathbb{Z}$.

(Proposed by navi_09220114)
5 replies
the_universe6626
Feb 21, 2025
deduck
2 hours ago
a, b subset
MithsApprentice   19
N 2 hours ago by Maximilian113
Source: USAMO 1996
Determine (with proof) whether there is a subset $X$ of the integers with the following property: for any integer $n$ there is exactly one solution of $a + 2b = n$ with $a,b \in X$.
19 replies
MithsApprentice
Oct 22, 2005
Maximilian113
2 hours ago
Hard Polynomial
ZeltaQN2008   1
N 2 hours ago by kiyoras_2001
Source: IDK
Let ?(?) be a polynomial with integer coefficients. Suppose there exist infinitely many integer pairs (?,?) such that
?(?) + ?(?) = 0. Prove that the graph of ?(?) is symmetric about a point (i.e., it has a center of symmetry).






1 reply
ZeltaQN2008
Apr 16, 2025
kiyoras_2001
2 hours ago
Arrangement of integers in a row with gcd
egxa   1
N 2 hours ago by Rohit-2006
Source: All Russian 2025 10.5 and 11.5
Let \( n \) be a natural number. The numbers \( 1, 2, \ldots, n \) are written in a row in some order. For each pair of adjacent numbers, their greatest common divisor (GCD) is calculated and written on a sheet. What is the maximum possible number of distinct values among the \( n - 1 \) GCDs obtained?
1 reply
egxa
4 hours ago
Rohit-2006
2 hours ago
Grasshoppers facing in four directions
Stuttgarden   2
N 3 hours ago by biomathematics
Source: Spain MO 2025 P5
Let $S$ be a finite set of cells in a square grid. On each cell of $S$ we place a grasshopper. Each grasshopper can face up, down, left or right. A grasshopper arrangement is Asturian if, when each grasshopper moves one cell forward in the direction in which it faces, each cell of $S$ still contains one grasshopper.
[list]
[*] Prove that, for every set $S$, the number of Asturian arrangements is a perfect square.
[*] Compute the number of Asturian arrangements if $S$ is the following set:
2 replies
Stuttgarden
Mar 31, 2025
biomathematics
3 hours ago
Number Theory
Fasih   0
3 hours ago
Find all integer solutions of the equation $x^{3} + 2 ^{\text{y}}   = p^{2}$ for all x, y $\ge$ 0, where $p$ is the prime number.

author @Fasih
0 replies
Fasih
3 hours ago
0 replies
Polynomial functional equation
Fishheadtailbody   1
N 3 hours ago by Sadigly
Source: MACMO
P(x) is a polynomial with real coefficients such that
P(x)^2 - 1 = 4 P(x^2 - 4x + 1).
Find P(x).

Click to reveal hidden text
1 reply
Fishheadtailbody
3 hours ago
Sadigly
3 hours ago
Bijection on the set of integers
talkon   19
N 3 hours ago by AN1729
Source: InfinityDots MO 2 Problem 2
Determine all bijections $f:\mathbb Z\to\mathbb Z$ satisfying
$$f^{f(m+n)}(mn) = f(m)f(n)$$for all integers $m,n$.

Note: $f^0(n)=n$, and for any positive integer $k$, $f^k(n)$ means $f$ applied $k$ times to $n$, and $f^{-k}(n)$ means $f^{-1}$ applied $k$ times to $n$.

Proposed by talkon
19 replies
talkon
Apr 9, 2018
AN1729
3 hours ago
Integer Coefficient Polynomial with order
MNJ2357   9
N Apr 5, 2025 by v_Enhance
Source: 2019 Korea Winter Program Practice Test 1 Problem 3
Find all polynomials $P(x)$ with integer coefficients such that for all positive number $n$ and prime $p$ satisfying $p\nmid nP(n)$, we have $ord_p(n)\ge ord_p(P(n))$.
9 replies
MNJ2357
Jan 12, 2019
v_Enhance
Apr 5, 2025
Integer Coefficient Polynomial with order
G H J
G H BBookmark kLocked kLocked NReply
Source: 2019 Korea Winter Program Practice Test 1 Problem 3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MNJ2357
644 posts
#1 • 2 Y
Y by Superguy, Adventure10
Find all polynomials $P(x)$ with integer coefficients such that for all positive number $n$ and prime $p$ satisfying $p\nmid nP(n)$, we have $ord_p(n)\ge ord_p(P(n))$.
This post has been edited 1 time. Last edited by MNJ2357, Jan 12, 2019, 10:17 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
stroller
894 posts
#2 • 2 Y
Y by Adventure10, Mango247
Wrong, thanks to post below for pointing out :stretcher:
This post has been edited 3 times. Last edited by stroller, Jan 16, 2019, 2:00 AM
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
#3 • 2 Y
Y by stroller, Adventure10
stroller wrote:

The given condition translates to $p | n- \omega_k \implies p | P(n)^k -1 $

Shouldn't this be $p \mid P(n)^m - 1$ for some $m \leq k$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
stroller
894 posts
#4 • 1 Y
Y by Adventure10
fattypiggy123 wrote:
stroller wrote:

The given condition translates to $p | n- \omega_k \implies p | P(n)^k -1 $

Shouldn't this be $p \mid P(n)^m - 1$ for some $m \leq k$?

Sorry my mistake; I misread the problem as $\text{ord}_p(P(n))|\text{ord}_p(n)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
stroller
894 posts
#5 • 2 Y
Y by Adventure10, Mango247
My fix for the error pointed out in post #3.

What I was most concerned about being incorrect
This post has been edited 1 time. Last edited by stroller, Jan 16, 2019, 1:55 AM
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
#6 • 4 Y
Y by Kayak, stroller, Adventure10, Mango247
Yes your solution has a few points of contention, for instance $\omega_k$ starts off life as an element of $\mathbb{F}_p$ but somehow becomes an actual complex root of unity halfway through. All of this can be fixed/made rigorous by some algebraic number theory. I will post more on it when I am free.
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
#7 • 7 Y
Y by Loppukilpailija, stroller, MNJ2357, Gaussian_cyber, Superguy, Adventure10, Mango247
The main idea to stroller's solution is to attempt to lift the local conditions, $P(u_p) \equiv v_p \pmod p$ where $u_p,v_p$ are integers satisfying $u_p^k , v_p^m \equiv 1 \pmod p$, into a global condition $p \mid P(x) - y$ for some numbers $x,y$ to deduce that $P(x) - y = 0$ since it cannot have infinitely many distinct prime factors. For instance if $k = m = 1$, then we can simply choose $x = y = 1$. The problem comes when $k$ and $m$ are larger than $2$ and one cannot find any integer $x$ such that $x^k \equiv 1 \pmod p$ for infinitely many primes $p$ where $x \not = 1$. As indicated in stroller's solution, we should bring in the complex primitive roots of unity $\omega_k$ and $\omega_m$. For simplicity, I will just assume $m = k$.

Now there is a natural place (but not the only one!) to do arithmetic with $\omega_k$. The field $\mathbb{Q}(\omega_k)$ is a number field and so its ring of integers is a Dedekind domain. When working beyond $\mathbb{Z}$, it is known that we cannot hope for unique factorization of integers to continue to hold. What one can achieve however is unique factorization into ideals, which is a property that Dedekind domains possess (and can also be taken as its defining property) and so makes Dedekind domains a nice place to do arithmetic in. In the case of $\mathbb{Q}(\omega_k)$, its ring of integers is simply $\mathbb{Z}[\omega_k]$, which is just sums of $\omega_k^i$ with $\mathbb{Z}$-coefficients.

For a prime $p$, let $\mathbb{F}_q$ be the smallest field extension of $\mathbb{F}_p$ where you have a primitive $k^{th}$ root of unity. This always exists if say $p \nmid k$. Then just like how in the usual integers $\mathbb{Z}$, we have the "reduction mod p" maps from $\mathbb{Z}$ to $\mathbb{F}_p$, there will exist reduction maps from $\mathbb{Z}[\omega_k]$ to $\mathbb{F}_q$ for each such $q$ where $\omega_k$ is sent to one of the primitive $k^{th}$ roots of unity in $\mathbb{F}_q$. When $p \nmid k$, the ideal $(p)$ in $\mathbb{Z}[\omega_k]$ factors as a product of distinct prime ideals $\mathfrak{p}_1 \cdots \mathfrak{p}_g$. These reduction maps then arise from reducing modulo $\mathfrak{p}_i$ instead of just mod $p$.

For example, if we work over the Gaussain integers $\mathbb{Z}[i]$ instead then we are looking at field extensions $\mathbb{F}_q$ where $x^2 = -1$ has a solution. For $p = 3$, there are no solutions within $\mathbb{F}_3$ itself and so we have to extend to $\mathbb{F}_9$, the field with $9$ elements. Correspondingly, the element/ideal $(3)$ is prime in $\mathbb{Z}[i]$ and so the map $\mathbb{Z}[i] \to \mathbb{F}_9$ arises from $a + bi \mapsto a \pmod 3 + b \pmod 3 i$. You can check that there are then $9$ elements just like $\mathbb{F}_9$. Howeverfor $p = 5$, within $\mathbb{F}_5$ there is already a solution to $x^2 = -1$ and so $\mathbb{F}_q = \mathbb{F}_5$. Our map $\mathbb{Z}[i] \to \mathbb{F}_5$ can't be just reducing mod $5$ then as that will give us $25$ elements instead. Instead one should factor $(5) = (2+i)(2-i)$ and then reduce mod $(2+i)$ or $(2-i)$. Since $x^2 + 1 = 0$ has two solutions in $\mathbb{F}_5$, there are two possible elements one can map $i$ to and each mod corresponds to one of them.

As a result, we can lift the local conditions to get for each $p \equiv 1 \pmod k$, there is one prime ideal factor $\mathfrak{p}$ of the ideal $(p)$ that divides $P(\omega_k) - \omega_k^m$ which implies that it must be $0$ by unique factorization of ideals.
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
#8 • 3 Y
Y by stroller, Gaussian_cyber, Adventure10
Here is alternative way to make stroller's solution rigorous, using elementary method. We will prove that $P(\omega_k)^{k!}=1$.

The key idea is to transfer from $\mathbb{Q}(\omega_k)$ to $\mathbb{Z}_p$ properly. However, the difficulty is $\omega_k$ is defined through roots of polynomials, which means we don't know the order of root. We will circumvent this issue by using symmetric polynomials instead.

Fix a positive integer $n$ and let $m=\varphi(n)$. Let $\omega_1, \omega_2, ...,\omega_m$ be primitive $n$-th root unity. By Newton's theorem on polynomial on symmetric polynomial, polynomial
$$Q(X) = (X-P(\omega_1))(X-P(\omega_2))...(X-P(\omega_m))$$has integer coefficients.

Fix a prime $p\equiv 1\pmod n$ and working on $\mathbb{F}_p[X]$. Let $a_1,a_2,...,a_m$ be all residues $\pmod p$ having order $n$. We claim that
Claim 1 : Let
$$Q^*(X) = (X-P(a_1))(X-P(a_2))...(X-P(a_m))$$then $Q^*(X) - Q(X)$ has all coefficients divisible by $p$.

Proof : Let $e_1, e_2,...,e_m$ be Elementary symmetric polynomials of $m$ variables. Then in $\mathbb{F}_p[X]$,
$$(X-a_1)(X-a_2)...(X-a_m) = \varPhi_n(X) = (X-\omega_1)(X-\omega_2)...(X-\omega_m)$$Thus comparing coefficients give $e_i(a_1,a_2,...,a_m) \equiv e_i(\omega_1,\omega_2,...,\omega_m) \pmod{p}$ for any $i=1,2,...,m$. (Recall that both numbers are integer!). Therefore, by Newton's theorem on symmetric polynomial,
$$e_i(P(a_1),P(a_2),...,P(a_m)) \equiv e_i(P(\omega_1),P(\omega_2),...,P(\omega_m)) \pmod p$$implying the result.
Claim 2 : $Q^*(X)$ divides $X^{n!}-1$ (in $\mathbb{F}_p[X]$).

Proof : Since $\mathrm{ord}_p(a_1) = n$, we have $\mathrm{ord}_p(P(a_1))\leqslant n$ or $P(a_1)^{n!}\equiv 1\pmod p$. Hence each root of $Q^*(X)$ is root of $X^{n!}-1$, done.
Now we are ready to shift the local conditions into global conditions. Since $Q(X)$ must congruent to $Q*(X)$ in $\mathbb{F}_p[X]$, polynomial $Q(X)$ must congruent to some divisor of $X^{n!}-1$ in $\mathbb{F}_p[X]$.

By Pigeonhole's principle there exists infinitely many prime $q\equiv 1\pmod n$ which $Q(X)$ is congruent to same divisor $R(X)$ of $X^{n!}-1$ in $\mathbb{F}_q[X]$. This force all coefficients of $Q(X)-R(X)$ to be divisible by infinitely many prime $q$. Hence $Q(X) = R(X)\mid X^{n!}-1$, implying $P(\omega_i)^{n!} = 1$ as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pieater314159
202 posts
#9 • 2 Y
Y by Adventure10, Mango247
Here's another elementary solution:

Fix $n$, and let $p$ vary across all primes equivalent to $1\bmod n$. Now, for all $x$ for which $x^n\equiv 1\bmod p$, we have

$$P(x)^{n!}\in\{0,1\}\bmod p\implies P(x)^{n!+1}-P(x).$$
(we get $1$ if we can apply our condition and otherwise we get $0$). Let $Q(x)=P(x)^{n!+1}-P(x)$, and write

$$Q(x)=R(x)+S(x)(x^n-1)$$
where $\deg(R)<n$ (we do this in $\mathbb{Z}[x]$). Now, for all $p\equiv 1\bmod n$, we have that $Q(x)\equiv 0\bmod p$ if $x^n=\equiv 1\bmod p$, which means that $R(x)\equiv 0\bmod p$. As $R$ has $n$ roots in $\mathbb{F}_p$ and it is of degree $\leq n-1$, we have that $R$ must be equivalent to the zero polynomial $\bmod p$, and thus all of the coefficients of $R$ are divisible by $p$. Now, as this holds for infinitely many $p$, we see that $R(x)$ is identically $0$, or that

$$x^n-1\big|P(x)^{n!+1}-P(x).$$
This implies that, if $x=\zeta_n$ is a primitive $n$th root of unity,

$$P(\zeta_n)=0\mathrm{\ or\ }P(\zeta_n)^{n!}=1\implies |P(\zeta_n)|=1.$$
One of these two criteria must hold for infinitely many $n$. If it is the first, then $P$ has infinitely many roots and is identically $0$. If it is the second, then, letting $d$ be the degree of $P$,

$$P(z)z^dP\left(\frac{1}{z}\right)=z^d$$
holds for infinitely many $z$; as this is a polynomial equation these must be identical as polynomials. We claim the only solutions to this are of the form $\pm x^d$. Assume we have a counterexample $P$ with minimal degree. As $P(x)/x$ would be a counterexample if $P(0)$ were equal to $0$, we conclude that $P(0)\neq 0$. However, as $z\to\infty$ ($z$ real), the left side is of order $P(0)z^d(cz^d)$ ($c$ is the leading coefficient) while the right side is $z^d$, allowing us to conclude (as $cP(0)\neq 0$), that $d=0$ and $P$ is constant, which implies that if $P\equiv c$ we have $c^2=1$, which is exactly our solution set. Now, if $P(x)=x^d$ we have a valid solution and if $P(x)=-x^d$ we have a contradiction at $n=1$ and $p=3$, so the only solutions are $P(x)=0$ and $P(x)=x^d$, finishing the proof.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6872 posts
#10 • 1 Y
Y by ihategeo_1969
Solution from Twitch Solves ISL:

The answer is $P(n) = n^{d}$ only for $d \ge 0$, which clearly works.
For the other direction, we assume $P$ is nonconstant, and let $\ell$ be a large prime, say $\ell > 100 (\deg P + 100)^2$.

Claim: For this prime $\ell$, we have a divisibility of ${\mathbb Z}[X]$-polynomials \[ \Phi(X) \coloneqq X^{\ell-1} + X^{\ell-2} + \dots + 1 \mid P(X)^\ell - 1. \]Proof. Because $\Phi$ is irreducible and has large degree, it is coprime to both $P(n)$ and $P(n) \pm1$. Then there exists a constant $C$ such that \[ \gcd(\Phi(n), P(n)(P(n)^2-1)) \le C \]for all $n$, by Bezout.
Consider large primes $p > C$ such that
  • $p \not\equiv 1 \pmod q$ for any prime $3 \le q < \ell$,
  • $p \equiv 1 \pmod \ell$.
There are infinitely many such primes by Dirichlet. For each such $p$, we can find $n$ such that $p \mid \Phi(n)$, simply by taking $g$ to be a primitive modulo $p$, and choosing $n = g^{\frac{p-1}{\ell}}$.
For that $n$ we have $p \mid n^\ell-1$, so the order of $n$ is at most $\ell$. Consequently, $p$ divides \[ P(n) \cdot (P(n)-1) \cdot (P(n)^2-1) \cdot \dots \cdot (P(n)^{\ell}-1). \]Now $p$ has to divide these factors. It doesn't divide $P(n)$ as $p > C$. And if it divided $P(n)^k-1$ for some $k < \ell$, then the order of $P(n)$ modulo $p$ would be a divisor of $k$. But it should also divide $\ell-1$, and because of constraints on $p$ this would be force the order to be at most $2$. From $p > C$, that's impossible too. Hence $p$ divides $P(n)^\ell-1$, the last factor.
In other words, we have shown there are arbitrarily large primes such that $p$ divides $\Phi(n)$ and $P(n)^\ell-1$ for some $\ell$. Hence (via the same Bezout argument) it follows $\Phi(X)$ is not coprime to $P(X)^\ell-1$ and hence divides it. $\blacksquare$
Now let $\zeta$ be a primitive $\ell$th root of unity. Then $P(\zeta)$ is an $\ell$th root of unity as well, so \[ P(\zeta) - \zeta^d = 0. \]for some integer $r$, say $0 \le d \le \ell-1$. However, $\Phi(X) \coloneqq X^{\ell-1} + X^{\ell-2} + \dots + 1$ is the minimal polynomial of $\zeta$, and $\deg P \ll \ell$. Reading the coefficients of our nonconstant $P$, this could only happen if $P(X) = X^d$ exactly, as desired.

Remark: The last step of the argument really uses the fact we have $P(X)^\ell-1$. It would not work if we instead had $P(X)^k-1$ for some $k < \ell$, because then the $\operatorname{lcm}(k,\ell)$th cyclotomic polynomial may not be so well-behaved. That's why in the proof of the claim we had to some modular condition on $p$ (with $p \not\equiv 1 \pmod q$ for all $q$) to rule out the possibility that $p$ divided any of the other factors. If one tries the argument at first with just generic large $p$ dividing an element in the range of $\Phi$, one would instead get $\Phi(X) \mid P(X)^k-1$ for some $k$ depending on $\ell$, leading to the issue above.
Z K Y
N Quick Reply
G
H
=
a