Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
May 1, 2025
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next 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 an enriching 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][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/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
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
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, 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
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
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
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
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

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

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

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

Precalculus
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
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
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

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
May 1, 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
IMO Shortlist 2011, Number Theory 3
orl   48
N a few seconds ago by Markas
Source: IMO Shortlist 2011, Number Theory 3
Let $n \geq 1$ be an odd integer. Determine all functions $f$ from the set of integers to itself, such that for all integers $x$ and $y$ the difference $f(x)-f(y)$ divides $x^n-y^n.$

Proposed by Mihai Baluna, Romania
48 replies
orl
Jul 11, 2012
Markas
a few seconds ago
IMO ShortList 2002, number theory problem 6
orl   31
N a minute ago by Markas
Source: IMO ShortList 2002, number theory problem 6
Find all pairs of positive integers $m,n\geq3$ for which there exist infinitely many positive integers $a$ such that \[ \frac{a^m+a-1}{a^n+a^2-1}  \] is itself an integer.

Laurentiu Panaitopol, Romania
31 replies
orl
Sep 28, 2004
Markas
a minute ago
Pair of multiples
Jalil_Huseynov   64
N 2 minutes ago by Markas
Source: APMO 2022 P1
Find all pairs $(a,b)$ of positive integers such that $a^3$ is multiple of $b^2$ and $b-1$ is multiple of $a-1$.
64 replies
Jalil_Huseynov
May 17, 2022
Markas
2 minutes ago
A=b
k2c901_1   88
N 3 minutes ago by Markas
Source: Taiwan 1st TST 2006, 1st day, problem 3
Let $a$, $b$ be positive integers such that $b^n+n$ is a multiple of $a^n+n$ for all positive integers $n$. Prove that $a=b$.

Proposed by Mohsen Jamali, Iran
88 replies
k2c901_1
Mar 29, 2006
Markas
3 minutes ago
IMO ShortList 1998, number theory problem 1
orl   56
N 4 minutes ago by Markas
Source: IMO ShortList 1998, number theory problem 1
Determine all pairs $(x,y)$ of positive integers such that $x^{2}y+x+y$ is divisible by $xy^{2}+y+7$.
56 replies
orl
Oct 22, 2004
Markas
4 minutes ago
Circumscribed quadrilateral and incenters
a_507_bc   6
N 4 minutes ago by s27_SaparbekovUmar
Source: BMO SL 2023 G1
Let $ABCD$ be a circumscribed quadrilateral and let $X$ be the intersection point of its diagonals $AC$ and $BD$. Let $I_1, I_2, I_3, I_4$ be the incenters of $\triangle DXC$, $\triangle BXC$, $\triangle AXB$, and $\triangle DXA$, respectively. The circumcircle of $\triangle CI_1I_2$ intersects the sides $CB$ and $CD$ at points $P$ and $Q$, respectively. The circumcircle of $\triangle AI_3I_4$ intersects the sides $AB$ and $AD$ at points $M$ and $N$, respectively. Prove that $AM+CQ=AN+CP$
6 replies
+1 w
a_507_bc
May 3, 2024
s27_SaparbekovUmar
4 minutes ago
cubefree divisibility
DottedCaculator   60
N 4 minutes ago by Markas
Source: 2021 ISL N1
Find all positive integers $n\geq1$ such that there exists a pair $(a,b)$ of positive integers, such that $a^2+b+3$ is not divisible by the cube of any prime, and $$n=\frac{ab+3b+8}{a^2+b+3}.$$
60 replies
1 viewing
DottedCaculator
Jul 12, 2022
Markas
4 minutes ago
variable point on the line BC
orl   27
N 6 minutes ago by Markas
Source: IMO Shortlist 2004 geometry problem G7
For a given triangle $ ABC$, let $ X$ be a variable point on the line $ BC$ such that $ C$ lies between $ B$ and $ X$ and the incircles of the triangles $ ABX$ and $ ACX$ intersect at two distinct points $ P$ and $ Q.$ Prove that the line $ PQ$ passes through a point independent of $ X$.
27 replies
orl
Jun 14, 2005
Markas
6 minutes ago
Triangle form by perpendicular bisector
psi241   51
N 7 minutes ago by Markas
Source: IMO Shortlist 2018 G5
Let $ABC$ be a triangle with circumcircle $\Omega$ and incentre $I$. A line $\ell$ intersects the lines $AI$, $BI$, and $CI$ at points $D$, $E$, and $F$, respectively, distinct from the points $A$, $B$, $C$, and $I$. The perpendicular bisectors $x$, $y$, and $z$ of the segments $AD$, $BE$, and $CF$, respectively determine a triangle $\Theta$. Show that the circumcircle of the triangle $\Theta$ is tangent to $\Omega$.
51 replies
+1 w
psi241
Jul 17, 2019
Markas
7 minutes ago
Interesting inequalities
sqing   2
N 7 minutes ago by Jg_D
Source: Own
Let $ a,b>0 $ and $ a+b\leq 1  $ . Prove that
$$\left(\frac{1}{a^3}-1\right)\left(\frac{1}{b^3}-1\right)-k\left(\frac{a}{b}+\frac{b}{a}\right) \geq 49-2k$$Where $24\geq k\in N^+.$
$$\left(\frac{1}{a^3}-1\right)\left(\frac{1}{b^3}-1\right) \geq 49$$$$\left(\frac{1}{a^3}-1\right)\left(\frac{1}{b^3}-1\right)-25\left(\frac{a}{b}+\frac{b}{a}\right) \geq -\frac{13}{12}$$$$\left(\frac{1}{a^3}-1\right)\left(\frac{1}{b^3}-1\right)-26\left(\frac{a}{b}+\frac{b}{a}\right) \geq -\frac{10}{3}$$$$\left(\frac{1}{a^3}-1\right)\left(\frac{1}{b^3}-1\right)-27\left(\frac{a}{b}+\frac{b}{a}\right) \geq -\frac{23}{4}$$
2 replies
sqing
Today at 10:25 AM
Jg_D
7 minutes ago
Centroid lies on the the circumcircle of the triangle PQR
WakeUp   16
N 8 minutes ago by Markas
Source: Romanian Master Of Mathematics 2012
Given a non-isosceles triangle $ABC$, let $D,E$, and $F$ denote the midpoints of the sides $BC,CA$, and $AB$ respectively. The circle $BCF$ and the line $BE$ meet again at $P$, and the circle $ABE$ and the line $AD$ meet again at $Q$. Finally, the lines $DP$ and $FQ$ meet at $R$. Prove that the centroid $G$ of the triangle $ABC$ lies on the circle $PQR$.

(United Kingdom) David Monk
16 replies
WakeUp
Mar 3, 2012
Markas
8 minutes ago
AO and KI meet on $\Gamma$
Kayak   30
N 9 minutes ago by Markas
Source: Indian TST 3 P2
Let $ABC$ be an acute-angled scalene triangle with circumcircle $\Gamma$ and circumcenter $O$. Suppose $AB < AC$. Let $H$ be the orthocenter and $I$ be the incenter of triangle $ABC$. Let $F$ be the midpoint of the arc $BC$ of the circumcircle of triangle $BHC$, containing $H$.

Let $X$ be a point on the arc $AB$ of $\Gamma$ not containing $C$, such that $\angle AXH = \angle AFH$. Let $K$ be the circumcenter of triangle $XIA$. Prove that the lines $AO$ and $KI$ meet on $\Gamma$.

Proposed by Anant Mudgal
30 replies
Kayak
Jul 17, 2019
Markas
9 minutes ago
Medium geometry with AH diameter circle
v_Enhance   95
N 10 minutes ago by Markas
Source: USA TSTST 2016 Problem 2, by Evan Chen
Let $ABC$ be a scalene triangle with orthocenter $H$ and circumcenter $O$. Denote by $M$, $N$ the midpoints of $\overline{AH}$, $\overline{BC}$. Suppose the circle $\gamma$ with diameter $\overline{AH}$ meets the circumcircle of $ABC$ at $G \neq A$, and meets line $AN$ at a point $Q \neq A$. The tangent to $\gamma$ at $G$ meets line $OM$ at $P$. Show that the circumcircles of $\triangle GNQ$ and $\triangle MBC$ intersect at a point $T$ on $\overline{PN}$.

Proposed by Evan Chen
95 replies
v_Enhance
Jun 28, 2016
Markas
10 minutes ago
Cute construction problem
Eeightqx   6
N 11 minutes ago by awesomeming327.
Source: 2024 GPO P1
Given a triangle's intouch triangle, incenter, incircle. Try to figure out the circumcenter of the triangle with a ruler only.
6 replies
Eeightqx
Feb 14, 2024
awesomeming327.
11 minutes ago
Monic Polynomial
IstekOlympiadTeam   22
N Apr 15, 2025 by zuat.e
Source: Romanian Masters 2017 D1 P2
Determine all positive integers $n$ satisfying the following condition: for every monic polynomial $P$ of degree at most $n$ with integer coefficients, there exists a positive integer $k\le n$ and $k+1$ distinct integers $x_1,x_2,\cdots ,x_{k+1}$ such that \[P(x_1)+P(x_2)+\cdots +P(x_k)=P(x_{k+1})\].

Note. A polynomial is monic if the coefficient of the highest power is one.
22 replies
IstekOlympiadTeam
Feb 25, 2017
zuat.e
Apr 15, 2025
Monic Polynomial
G H J
G H BBookmark kLocked kLocked NReply
Source: Romanian Masters 2017 D1 P2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IstekOlympiadTeam
542 posts
#1 • 10 Y
Y by anantmudgal09, rkm0959, adityaguharoy, MonsterS, Davi-8191, tenplusten, Rounak_iitr, Adventure10, Mango247, Deadline
Determine all positive integers $n$ satisfying the following condition: for every monic polynomial $P$ of degree at most $n$ with integer coefficients, there exists a positive integer $k\le n$ and $k+1$ distinct integers $x_1,x_2,\cdots ,x_{k+1}$ such that \[P(x_1)+P(x_2)+\cdots +P(x_k)=P(x_{k+1})\].

Note. A polynomial is monic if the coefficient of the highest power is one.
This post has been edited 1 time. Last edited by IstekOlympiadTeam, Feb 25, 2017, 5:45 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
DrMath
2130 posts
#2 • 2 Y
Y by WOOTer2017, Adventure10
Obviously, $n=1$ fails. However, to show that $\boxed{n=2}$ works, note that linear polynomials work; for quadratic polynomials, if $bX$ is the middle term, then $P(X)=P(-b-X)$, so quadratics work.

We now claim that $n\ge 3$ fail.

To show that $n\ge 5$ fail, let $m=\lceil\log_2 n\rceil$. Then take $P(X)=X^m\left(X^{2^{m-2}}+2^m-1\right)+1$ if $m$ is odd, and $P(X)=X^{m+1}\left(X^{2^{m-2}}+2^m-1\right)+1$ if $m$ is even (so that all terms of $P(X)$ have odd degree). It is easy to check that this has degree $\le n$ for $n\ge 5$. Moreover, note that $P(X)\equiv 1\pmod{2^m}$. Thus, if $P(x_1)+P(x_2)+...+P(x_k)=P(x_{k+1})$, then $k\equiv 1\pmod{2^m}$. But $1\le k\le n\le 2^m$, so $k=1$. Now it remains to show that $P(x)=P(y)$ cannot happen, but the derivative is positive everywhere, so we are done.

To show that $n=3$ fails, just take $P(X)=X(X^2+2)+1$. Then $P(X)\equiv 1\pmod{3}$, and thus if $P(x_1)+P(x_2)+...+P(x_k)=P(x_{k+1})$ then once again we get $k=1$. Since $P'(X)>0$ for all $X$, $P(x)=P(y)$ cannot happen, and we are done again.

To show $n=4$ fails, take $P(X)=X^2(X^2+7)-4X+1$. Then note $P(X)\equiv 1\pmod{4}$, and once again we get $k=1$. Suppose $P(x)=P(y)$ for some $x,y$. Then $x^4-y^4+7(x^2-y^2)=4(x-y)$, or $(x+y)(x^2+y^2+7)=4$. But $|x^2+y^2+7|\ge 7$, so $|x+y|\le \frac{4}{7}$. Since $x+y$ is an integer, $x+y=0$, which contradicts $(x+y)(x^2+y^2+7)=4$. Thus we are done for $n=4$ as well.
This post has been edited 2 times. Last edited by DrMath, Feb 25, 2017, 6:25 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6877 posts
#3 • 26 Y
Y by DanDumitrescu, huricane, anantmudgal09, artsolver, rkm0959, mad, MathPanda1, xdiegolazarox, tenplusten, uniquearnt, sholly, bumjoooon, Illuzion, Aryan-23, Wizard_32, v4913, Inconsistent, Kobayashi, rjiangbz, Ru83n05, Rounak_iitr, Adventure10, Mango247, Deadline, MS_asdfgzxcvb, EvansGressfield
The answer is $n = 2$ only.

First, we contend the result holds for $n = 2$. The result is immediate if $\deg P = 0$ (take $k=1$) or $\deg P = 1$ (take $k=2$). For $\deg P = 2$, we note the polynomials $P(x) = x^2+bx+c$ are never injective, and hence fail the constraint when $k = 1$.

Next we remark that the result is vacuously false for $n = 1$.

Finally, the main part: we show that each fixed $n \ge 3$ does not work. Select a prime $p > 2$ such that $p \le n \le 2p$ (by Bertrand postulate). Then, consider the polynomial
\[ P(x) = x^p + (2p-1)x + 1. \]We have $P(x) \equiv 1 \pmod p$ and $P(x) \equiv 1 \pmod 2$ for every $x \in \mathbb Z$, whence $P(x) \equiv 1 \pmod{2p}$. Thus if such $x_i$ exist we have
\[ \underbrace{1 + \dots + 1}_k \equiv 1 \pmod{2p} \]and so $2p \mid k-1$, but from $k \le n$ we conclude $k = 1$.

This means there must be integers $a \neq b$ such that $P(a) = P(b)$, whence \[ \frac{a^p - b^p}{a-b} = -(2p-1) \]which is impossible since the left-hand side is always positive (for $a \neq b$).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
randomusername
1059 posts
#4 • 3 Y
Y by smy2012, suli, Adventure10
Another approach based on an idea I heard from Kevin Ren: call $k(P)$ the minimal $k$ for which there exist distinct integers $x_1,x_2,\dots,x_k,x_{k+1}$ satisfying $P(x_1)+P(x_2)+\dots+P(x_k)=P(x_{k+1})$. The key idea is
Quote:
If $P(x)\equiv 1\pmod{M}$ $\forall x$, then $k(P)\equiv 1\pmod{M}$.

If $P$ is also injective, i.e. $k(P)\neq 1$, then $k(P)\ge M+1$ follows.

Taking for each $m\ge 3$ the polynomial
\[
P_m(x)=x\cdot (x^2+1)(x^2+2)\dots(x^2+m)+1
\]is increasing and always $1$ mod $m!$, so $k(P_m)\ge m!+1$. Since $\cup_{m\ge 3}[2m+1;m!]$ covers $[7;\infty)\cap \mathbb{Z}$, this proves that $n\ge 7$ does not satisfying the condition.

Using $P(x)=x(x+1)(x-1)+6x+1$ which is increasing and always $1$ mod $6$, we can kill $3\le n\le 6$, leaving only the trivial $n=1$, $n=2$, dealt with as above. $\blacksquare$
This post has been edited 1 time. Last edited by randomusername, Feb 25, 2017, 7:42 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rkm0959
1721 posts
#5 • 3 Y
Y by MathPanda1, Adventure10, Mango247
Problem 2.

Very nice problem. The key idea of my solution is that if we have $P(x)$ injective and $P(x) \equiv 1 \pmod{n}$ always, we are done. The $P(x)$ strictly increasing is the hardest part to handle.

Here's the sketch of my solution without the big calculations.

First of all, check that $n=1$ fails and $n=2$ works. We will show that $n=2$ is the only solution.

Denote $S_n = \{x| 0 \le x < n, \exists m \neq 0 \pmod{n}, m^2 \equiv x \pmod{n} \}$.
I claim that if $1+2|S_n| \le n$, then $n$ does not satisfy the condition. This will eliminate a lot of candidates.

Take the polynomial $P(x) = x \prod_{i \in S_n} (x^2 + n - i) +1$. It is easy to see that, by definition of $S_n$, that $P(x)$ is always $1$ in $\pmod{n}$. Say that $P(x_1) +P(x_2) + \cdots +P(x_k) = P(x_{k+1})$. Then, we have $k \equiv 1 \pmod{n}$, so $k=1$. Therefore, we have $P(x_1) = P(x_2)$. However, notice that $P'(x)>0$ always, since $P(x)$ only consists of terms with odd degree and positive coefficients (or just calculate the derivative by the rule of product, not so bad). Anyways, clearly this gives a contradiction by MVT or injective property.

So we now need to find numbers such that $1+2|S_n| \le n$. Denote $T_n = \{x| 0 \le x < n, \exists m \text{ s.t. } m^2 \equiv x \pmod{n} \}$. The difference is that $m \neq 0 \pmod{n}$ condition is gone. Clearly, $|T_n| \ge |S_n|$, with equality iff $n$ is not prime. Also, notice that we can use CRT with $|T|$ now. Anyways, brute force calculations (very boring tbh) gives us that $1+2|S_n| \le n$ holds for all numbers not in the form $2p$, where $p$ is a prime. Thankfully I checked this with a computer afterwards, it works :D

Now, we show that $2p$ does not satisfy the conditions as well.

Take $l=2p-1$, and set $P(x) = x \prod_{i \in S_l} (x^2 + kl - i) + 1$. We will determine $k$ later, between $1$ and $2$. It is easy to see that $P(x) \equiv 1 \pmod{l}$. Similarly, we have $k \equiv 1 \pmod{l}$, so $k=1$ or $k=l+1=2p$. If $k=1$, we have $P'(x) > 0$, which gives us a contradiction. Notice that we can select $k$ so that $P(x)$ is always odd. Just take $i$ as the first element of $S_l$, and set $k$ so that $kl-i+1$ is even. This can be done because $l$ is odd. Anyways, after selecting $k$ accordingly, we now see that $0 \equiv P(x_1) + \cdots + P(x_{2p}) \equiv  P(x_{2p+1}) \equiv 1 \pmod{2}$, contradiction.

So we are done with our only answer $2$. After writing this here, I just realized that I made a typo describing $P(x)$ on the actual contest. FML. KMS.

Wow darn I overcomplicated a problem again didn't I :(
This post has been edited 1 time. Last edited by rkm0959, Feb 26, 2017, 2:23 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
suli
1498 posts
#6 • 10 Y
Y by Ankoganit, rkm0959, TacH, ThE-dArK-lOrD, anantmudgal09, tenplusten, khina, Adventure10, Mango247, nguyenloc1712
The polynomial
$$P(x) = x ((x-1)(x-2)(x-3) \dots (x-(N-1)) + N!) + 1$$where $N = 2 \lfloor \frac{n-1}{2} \rfloor + 1$ is injective on the integers and hence is a counterexample for $n \ge 3$ since $N! > n$ and $P(x) \equiv 1 \pmod {N!}$.
This post has been edited 2 times. Last edited by suli, Feb 26, 2017, 9:11 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathPanda1
1135 posts
#7 • 1 Y
Y by Adventure10
I solved this problem knowing that this would be a number theory problem. However, I am not sure I would solve this problem without this hint. Is there any motivation for wanting to use number theory in this problem (e.g. prove $P(x) \equiv 1 \pmod{n}$)? Thanks!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
smy2012
688 posts
#8 • 2 Y
Y by MathPanda1, Adventure10
I constructed polynomials $P$ is injective and $\equiv1\pmod{n}$ but only for odd $n>2$. For even $n$ there's still a long way to go. :(
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
smy2012
688 posts
#9 • 2 Y
Y by MathPanda1, Adventure10
It's a lot easier if the construction is $ \equiv 1\pmod{n!}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
smy2012
688 posts
#10 • 2 Y
Y by MathPanda1, Adventure10
Ah... After figuring out why $P(x)=x((x-1)(x-2)...(x-n)+n!)+1$ is injective, I solved it for even $n$. :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
randomusername
1059 posts
#11 • 3 Y
Y by anantmudgal09, Adventure10, Mango247
Can anyone prove or disprove the following?

Conjecture. For any monic integer polynomial $P$, define $k(P)$ to be the minimal $k$ for which there exist pairwise distinct integers $x_1,x_2,\dots,x_{k+1}$ such that
\[
P(x_1)+P(x_2)+\dots+P(x_k)=P(x_{k+1}).
\]Then $k(P)$ exists.

Conjecture'. The same, but $x_1,x_2,\dots,x_{k+1}$ need not be distinct, and $k>1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
test20
988 posts
#12 • 2 Y
Y by IAmTheHazard, Adventure10
randomusername wrote:
Conjecture. For any monic integer polynomial $P$, define $k(P)$ to be the minimal $k$ for which there exist (not necessarily distinct) integers $x_1,x_2,\dots,x_{k+1}$ such that
\[
P(x_1)+P(x_2)+\dots+P(x_k)=P(x_{k+1}).
\]Then $k(P)$ exists.
This version is easy to prove.

First suppose that the constant term $a_0$ of $P$ is non-zero.
Then $P(ma_0)$ is a multiple of $P(0)=a_0$, for every integer $m$.
Since $P$ is monic, $P(ma_0)$ is positive for $m$ sufficiently large.
Hence there exist integers $m,r>0$ with $P(ma_0)=r\cdot P(0)= P(0)+P(0)+\cdots+P(0)$.

Next suppose that the constant term $a_0$ of $P$ is zero.
Let $t$ be an integer with $q:=P(t)>0$.
Then $P(mq)$ is a multiple of $q$.
Since $P$ is monic, $P(mq)$ is positive for $m$ sufficiently large.
Hence there exist integers $m,r>0$ with $P(mq)=r\cdot P(t)= P(t)+P(t)+\cdots+P(t)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shjeong0947
9 posts
#13
Y by
my solution in the test

$n=1$ fails, and $n=2$ works, because $P(x)=x^2 +ax+b $ is symmetric with $x=- \frac{a}{2}$
if $n \ge 3 $ , it doesn't work.
proof) first, when n is odd number, Let $P(x)=x(x-1)(x-2) \cdots (x-n+1)+ n!Ax+1$, when $A$ is integer.
then, $P(x) \equiv 1 (mod n!)$
So $k \equiv P(x_1)+P(x_2)+ \cdots P(x_k) \equiv P(x_{k+1}) \equiv 1 (mod n! )$
$\therefore k=1$
when $A$ is bigger then the maximum value of $-(x(x-1)(x-2) \cdots (x-n+1))'$ ( it exists because n is odd number)
then, $P(x)$ is increasing function, and $P(x_1)=P(x_2)$ can't satisfy
$\therefore n\ge 3 $ odd number fails
when n is even number which $n\ge 4$, $P(x)=x(x-1)(x-2) \cdots (x-n+2)+ (n-1)!Ax+1$ works the same

$\therefore n=2 $ only satisfy
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jj_ca888
2726 posts
#14
Y by
I shall just show $n \geq 3$ is bad. The idea is to control $P(x)$ modulo $C$ for some fixed constant $C$. Consider polynomials of the form\[P(x) = (x^p - x + 1) + pQ(x)\]where $Q(x)$ is an integer polynomial and $p > 2$ is prime - clearly $P \equiv 1 \pmod p$ for all $x$. Thus, in order for there to exist $k$ and $x_1, \ldots , x_{k+1}$, it must follow that $p \mid k-1$. In fact, for each $n$, we may let $p$ be the largest prime $< n$, and $Q(x) = 2$. In that case, $2 \mid p-1$ too and thus $2p \mid k-1$ and by assumption of maximal $P$ combined with Bertrand's Postulate, $2p \geq n$ hence $k = 1$.

In this case, we need $x_1 \neq x_2$ for which $P(x_1) = P(x_2)$. But the polynomial $P(x) = x^p + (2p-1)x + 1$ is clearly injective - impossible. Hence, for $n \geq 3$, we have found a general counterexample, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ali3085
214 posts
#15 • 3 Y
Y by Math-48, Muaaz.SY, moom
so beautiful for my $200$th post :surf:
lemma : for each $x \neq \{4,6\}$ there exists an odd $n $ such that $n \ge x > \phi(n)$
proof:
if $n$ is odd then $x=n$ works
if it's even so at least one of $\{n+1,n+3,n+5\} $ is divisible by $3$ let it $x$
$\phi(x) \le \frac{2}{3}.x \le x-5 \le n $
now for $n <15$ we can check it manually
$\square$
for $n=2$ it's easy. now for $n \ge 3$
now for any $n \neq \{4,6\}$ choose such $m \ge n > \phi(m)$ is the lemma and consider
$P(x)=x^{phi(m)+1}+(m-1)x+1$
this is injective and clearly works (since $P \equiv 1 \bmod m$)
now for $n=4$ let $P(X)=x^3+5x+1$ (consider it $\bmod 6$)
for $n=6$ let $P(x)=X^5+9x+1$ (consider it $\bmod 10$)
and we win :D
This post has been edited 3 times. Last edited by Ali3085, Mar 7, 2021, 4:46 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
i3435
1350 posts
#16
Y by
I did a nongeo :)

I claim the answer is $n=2$. $n=1$ doesn't work by $P(x)=x$, $n=2$ doesn't work because every monic quadratic has $2$ $x$ values with the same output, and every monic linear function fails for $n\neq 1$.

For $n\ge 3$, let $p$ be the largest prime below $n$. Let $P$ be the product all of the primes below $n$, and let $P_1$ be a sufficently large multiple of $P$. Then let $P(x)=x(x+1)(x+2)\cdots(x+p-1)+P_1x+1$. $P(x)$ is $1\mod P$, and $P\ge n-1$ by, among other things, Bertrand's. Or that if $P< n-1$, then $P+1$ is less than $n$ and $P+1$ isn't divisible by any primes less than $n$, contradiction. Thus $k>1$ doesn't work, and we only need to show that no two integer input values produce the same output value. But since $P'(x)$ is an even function and $P_1$ is sufficiently large, $P'(x)>0$ for all $x$, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5001 posts
#18
Y by
The answer is $n=2$ only.
Obviously $n=1$ fails and $n=2$ works, since if the coefficient of $x$ is $a$, then $P(x)=P(-a-x)$. Now we prove that $n \geq 3$ fail.
By Bertrand's postulate we can pick some odd $p \leq n \leq 2p$. Then let
$$P(x)=x^p+(2p-1)x+1,$$so $P(x) \equiv 1 \pmod{p}$ for all $x$ by Fermat's Little Theorem. Further, $P(x) \equiv 1 \pmod{2}$ for all $x$ as well, so by CRT, $P(x) \equiv 1 \pmod{2p}$. Thus if we select $k$, the LHS of the equation is congruent to $k \pmod{2p}$, while the RHS is congruent to $1 \pmod{2p}$. For size reasons, this means $k=1$, so we just have to show that $P$ is injective over $\mathbb{Z}$. In fact, $P$ is injective over $\mathbb{R}$, since $P'(x)=px^{p-1}+(2p-1)>0$ for all real $x$, so we're done. $\blacksquare$

Remark (slight generalization): Because I apparently can't read, I believe that the phrase "degree at most $n$" can be replaced with "degree exactly $n$" and the problem still holds. By taking $p$ as before, the polynomial
$$P(x)=x^n+(2p-1)x^{n-p+1}+1$$works for $n$ odd for the same reason as before. For $n$ even, I believe (haven't checked) that
$$P(x)=x^n+(2p-1)x^{n-p+1}+x^p-x+1$$works. Again $P(x) \equiv 1 \pmod{2p}$, but showing injectivity is much harder. Derivative stuff shows that $P$ is injective over $\mathbb{R}_{\geq 0}$, and should be injective over $\mathbb{Z^-}$ (not by derivatives but by comparing $P(-x)$ and $P(-x-k)$ for $x,k>0$). Again by plugging in $-x-k$ and $x$, as well as $-x$ and $x-k$ (both for $x,k>0$), and doing stupid bounding (like showing that we can set $k=1$), we can show that $P$ is indeed injective.

Remark (motivation): Also because I can't read, I forgot about monic (actually I read it at first and then dropped it when doing the problem). The idea of controlling $P$ modulo something to be $1$ sort of comes from here. For example, something like $P(x)=100000000x^3+1$ forces $k=1$ just as well, so we adapt this to monic polynomials once we reread the problem by controlling outputs of $P$ using FLT. The other thing that we need (literally necessary) is injectivity by considering $k=1$, which it turns out isn't that hard to get. In particular, if monic is dropped again something like $P(x)=1000000(x^8+2x)+1$ works for $n=8$ and everything else by simple bounding, implying that we can kinda throw terms together and bound as well.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5606 posts
#19 • 1 Y
Y by OronSH
Solved with OronSH.

The answer is $\boxed{n = 2}$. To see this works, note that if $P$ is constant, then $k = 1$ holds, and if $P$ has degree $1$, then $k = 2$ holds. If $P$ has degree $2$, then let $P(x) = x^2 + bx + c$. Since $P(x) = P(-b-x)$, we see that $k = 1$ holds if $x_1 + x_2 = b$, which proves that polynomials of degree $2$ work.

A counterexample for $n = 1$ is $P(x) = x$, so assume $n \ge 3$.

Claim: For any odd positive integer $m \ge 3$, there exists a real number $r$ such that the polynomial $Q_C(x)= (x-1)(x-2) \cdots (x-m) +Cx + 1$ is injective over the real numbers for any real number $C>r$.
Proof: It suffices to show that the polynomial $Q_C'(x)$ has no real roots, which would imply there don't exist reals $a,b$ with $Q_C(a) = Q_C(b)$. Note that $Q_C'(x) - C$ is an even degree polynomial with positive leading coefficient, so it has a minimum $c$. Choosing $ r > |c|$ gives that\[Q_C'(x) > c + C > c + r > c + |c| > 0\]for real numbers $x$, as desired. $\square$

Now for any fixed odd positive integer $m$, let\[ P(x) = (x-1)(x-2) \cdots (x-m) + N \cdot m!  \cdot x + 1\]and $N$ large enough such that $P$ is injective over the real numbers.

Claim: For any integer $x$, $m! \mid (x-1)(x-2) \cdots (x-m)$.
Proof: Note that $\frac{(x-1)(x-2) \cdots (x-m)}{m!} = \binom{x-1}{m}$, which is clearly an integer. $\square$

Therefore, $P(x) \equiv 1\pmod{m!}$ for any integer $x$. Now we claim that $P(x)$ is a valid counterexample for both $n=m$ and $n = m + 1$ ($m \ge 3$ of course).

There does not exist distinct $x_1, x_2$ with $P(x_1) = P(x_2)$, so $k = 1$ is impossible. For any $1< k \le m + 1$, we have $P(x_1) + P(x_2) + \cdots + P(x_k) \equiv k\pmod{m!}$, and $P(x_{k+1}) \equiv 1\pmod{m!}$, so $m!\mid k - 1$. This is clearly impossible since $0 < k - 1 \le m < m!$, so $P$ doesn't work for $n = m$ or $n = m + 1$.

Hence $n = m, n = m + 1$ fail for any odd integer $m\ge3$, so all $n\ge 3$ fail.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
InterLoop
280 posts
#20
Y by
solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8863 posts
#21
Y by
The answer is $n=2$ only.

Construction: For monic linear polynomials, $P \equiv x-c$, just take $(x_1, x_2, x_3) = (0, 2c, c)$. For quadratic polynomials $x^2+bx+c$, take $(x_1, x_2) = (k, b-k)$ for any integer $k$.

Bound: The $n=1$ case is straightforward because linear polynomials are monotonic. For $n \geq 3$ and $n \neq 4$, let $n = p_1^{k_1} p_2^{k_2} \cdots p_\ell^{k_\ell}$ be the prime factorization of $n$. Then, if $n$ is odd, consider
\[R(x) = \left(x^{p_1^{k_1}-p_1^{k_1-1}+k_1} + \left(p_1^{k_1} - 1\right)x^{k_1}\right)\left(x^{p_2^{k_2}-p_1^{k_2-1}+k_2} + \left(p_2^{k_2}-1\right)x^{k_2}\right) \cdots \left(x^{p_\ell^{k^\ell}-p_\ell^{k_\ell-1}+k_\ell} + \left(p_\ell^{k_\ell}-1\right) x^{k_\ell}\right).\]Otherwise, let $n = 2^k \cdot p_1^{k_1} \cdots  p_\ell^{k_\ell}$, and append a factor of $x^{2^{k-1}+k} +\left(2^k-1\right)x^k$ to $R(x)$. Now, if $\deg R$ is currently even, we append a factor of $x+1$ to $R$.

We first prove that $\deg P \leq n$. Reindex so that $p_1 = 2$. This follows because of the inequality $p_i^{k_i-1} \geq k_i$ for all positive integers $k_i \geq 1$, with equality when $k_i = 1$ and $k_i = 2$ when $p_i = 2$. So then
\[\deg P - 1 \leq p_1^{k_1} + p_2^{k_2} + \cdots + p_\ell^{k_\ell} \leq p_1^{k_1} p_2^{k_2} \cdots p_\ell^{k_\ell} = n\]because each power is at least $2$. In particular, equality holds if and only if $n = p$ is a prime or $n = 4$. In those cases, we do not append a factor of $x+1$ to $R$, so the inequality still holds.

Claim: For any positive integer $m$ and prime $p_i \mid n$, $m^{p_i^{k_i} - p_i^{k_i-1} + k_i}+\left(p_i^{k_i}-1\right)m^{k_i}$ is a multiple of $p_i^{k_i}$.

Proof: Take everything modulo $p_i^{k_i}$. If $p_i \mid m$, then $p_i^{k_i} \mid m^{k_i}$, so the result follows. Otherwise,
\[\nu_p\left(m^{p_i^{k_i} - p_i^{k_i-1}} - 1\right) = \nu_p\left(m^{p-1} - 1\right) + \nu_p\left(p^{k_i-1}\right) \geq k_i\]by LTE; thus $p_i^{k_i}$ still divides the expression. $\blacksquare$

Thus it follows that $P(m) \equiv 1 \pmod n$ for any positive integer $m$. But then for any $2 \leq k \leq n$, the LHS will be congruent to $k \neq 1$ mod $n$, while the RHS will be congruent to $1$, contradiction.

If $k = 1$, then by construction, $R(x)$ is monotonically increasing (because $p_i^{k_i} - p_i^{k_i-1}$ is even for all $p_i$), so $P(x)$ is monotonically increasing. Thus there do not exist $x_1, x_2$ with $P(x_1) = P(x_2)$, and this completes the proof of the $n \neq 4$ case.

Now we deal with the $n=4$ case. In this case, take $P(x) = x^4+15x^2-24x+1$, such that $P(m) \equiv 1 \pmod 4$ for all positive integers $m$. It follows by previous arguments that we must have $k = 1$. Say $P(a) = P(b)$. Then we have \[(a-b)\left((a+b)\left(a^2+b^2+15\right) - 24\right) = 0.\]We can check that there are no pairs of integers $(a, b)$ such that $(a+b)(a^2+b^2+15) = 24$ by a finite case check. This finishes the proof.

Remark: The problem dies once one realizes it is actually number theory.

Remark: The $k=1$ case gave me incredible grief while solving this problem, as the length of the solution indicates. It's avoidable by using the ``slightly less precise" Bertrand construction, which I actually thought of doing. But spamming terms is fun and makes me look cool :cool:
This post has been edited 1 time. Last edited by HamstPan38825, Jan 12, 2025, 4:29 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Iveela
116 posts
#22
Y by
Answer: $n = 2$.

Clearly $n = 1$ doesn't work. If $n > 2$, we pick $P(x) = x^{\varphi(n) + 1} + (n - 1)x + 1$. Suppose that there exist such $x_1, \dots, x_{k + 1}$. Note that $P(x)$ is always equal to $1$ modulo $n$. Therefore
\[k \equiv P(x_1) + \dots + P(x_k) = P(x_{k + 1}) \equiv 1 \pmod{n}.\]Since $k \leq n$ this implies $k = 1$ or $P(x_1) = P(x_{k + 1})$. For the sake of convenience write $P(x) = P(y)$. Notice that
\[\frac{P(x) - P(y)}{x - y} = \frac{x^{\varphi(n) + 1} - y^{\varphi(n) + 1}}{x - y} + n - 1 \geq n - 1 > 0\]which implies $x = y$, a contradiction.

To see that $n = 2$ works, note that linear polynomials work. For quadratics $P(x) = x^2 + ax + b$ we can simply pick distinct integers $x, y, z$ such that $x - y = 1$, $x + y + a = P(z)$. In particular, we have
\[P(z) = (x-y)(x + y + a) = x^2 - y^2 + ax - ay = P(x) - P(y) \implies P(x) = P(y) + P(z)\]as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
zuat.e
56 posts
#23
Y by
We claim only $n=2$ works, which clearly does for $k=1$ if you consider $P(x)=x^2+ax+b$, so $P(\frac{-a}{2}+h)=h^2+b-\frac{a^2}{4}=P(\frac{-a}{2}-h)$ and choosing $h=\{\frac{a}{2}\}+1$ makes both $\frac{-a}{2}+h$ and $\frac{-a}{2}-h$ integers. If $deg P(x)=1$, it is clear

It is easy to check $n=1$ doesn't satisfy because all lineal functions and injective and for $n\geq 3$, consider the polynomial $n=x(x-1)(x-2)\dots (x-(n-1))+nx+1\equiv 1 \pmod{n}$, hence it suffices to check that it's injective. Now, suppose $n\geq 3$:

If $0\leq x\leq n-1$, $P(x)=nx+1$, so $P(a)\neq P(b)$ when $0\leq a<b\leq n-1$.

Furthermore, if $x\geq n$, $P$ is monotonically increasing and $P(n)>P(n-1)$.

Finally, if $x\leq -1$, $P$ is monotonically decreasing if $n$ is odd (and $P(-1)<0$) or $P$ is monotonically increasing if it is even (and $P(-1)>P(n-1)$ when $n\geq 4$ and $P(-2)>P(2)$ if $n=3$ and it is easy to check that $P(-1)=4$ is only achieved with $x=-1$), therefore we just need to check $P(a)=P(b)$ if $a<0, b\geq n$ (and $n$ even):

$P(a+1)-P(-a)=na(a-1)(a-2)\dots (a-(n-2))>(2a+1)n$, for $a\geq n\geq 3$ and for $h>1$, $P(a+h)-P(-a)=(a+h)(a+h-1)\dots (a+h-(n-1))-a(a-1)\dots(a-(n-1))-n(2a+h)>(a+h)(a-1)\dots (a-(n-2)-a(a-1)\dots (a-(n-1))-n(2a+h)=(n+h-1)a(a-1)(a-2)\dots (a-(n-2))-n(2a+h)\geq0$, for $a(a-1)\geq2a$ and $(h-1)a(a-1)\geq hn\longleftrightarrow hn(n-2)>n(n-1)$, as desired.
This post has been edited 1 time. Last edited by zuat.e, Apr 15, 2025, 4:40 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
zuat.e
56 posts
#24
Y by
Iveela wrote:
If $n > 2$, we pick $P(x) = x^{\varphi(n) + 1} + (n - 1)x + 1$. Note that $P(x)$ is always equal to $1$ modulo $n$.

The congruence $x^{\phi(n)+1}\equiv x$ happens iff $gcd(x,n)=1$, otherwise it may not be true (e.g $n=8, x=2$ yields $x^{5}\equiv 0\pmod{8}$).
Z K Y
N Quick Reply
G
H
=
a