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
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
Integer Polynomial with P(a)=b, P(b)=c, and P(c)=a
Brut3Forc3   30
N a few seconds ago by megahertz13
Source: 1974 USAMO Problem 1
Let $ a,b,$ and $ c$ denote three distinct integers, and let $ P$ denote a polynomial having integer coefficients. Show that it is impossible that $ P(a) = b, P(b) = c,$ and $ P(c) = a$.
30 replies
+1 w
Brut3Forc3
Mar 13, 2010
megahertz13
a few seconds ago
Divisors Formed by Sums of Divisors
tobiSALT   2
N 7 minutes ago by lksb
Source: Cono Sur 2025 #2
We say that a pair of positive integers $(n, m)$ is a minuan pair if it satisfies the following two conditions:

1. The number of positive divisors of $n$ is even.
2. If $d_1, d_2, \dots, d_{2k}$ are all the positive divisors of $n$, ordered such that $1 = d_1 < d_2 < \dots < d_{2k} = n$, then the set of all positive divisors of $m$ is precisely
$$ \{1, d_1 + d_2, d_3 + d_4, d_5 + d_6, \dots, d_{2k-1} + d_{2k}\} $$
Find all minuan pairs $(n, m)$.
2 replies
tobiSALT
Today at 4:24 PM
lksb
7 minutes ago
Random NT property
MTA_2024   1
N 9 minutes ago by MTA_2024
Prove that any number equivalent to $1$ mod 3 can be written as the sum of one square and 2 cubes.
Note:This is obviously all in integers
1 reply
MTA_2024
Yesterday at 11:00 PM
MTA_2024
9 minutes ago
Cyclic Quadrilateral in a Square
tobiSALT   4
N 16 minutes ago by lksb
Source: Cono Sur 2025 #1
Given a square $ABCD$, let $P$ be a point on the segment $BC$ and let $G$ be the intersection point of $AP$ with the diagonal $DB$. The line perpendicular to the segment $AP$ through $G$ intersects the side $CD$ at point $E$. Let $K$ be a point on the segment $GE$ such that $AK = PE$. Let $Q$ be the intersection point of the diagonal $AC$ and the segment $KP$.
Prove that the points $E, K, Q,$ and $C$ are concyclic.
4 replies
tobiSALT
Today at 4:20 PM
lksb
16 minutes ago
power sum system of equations in 3 variables
Stear14   1
N 24 minutes ago by Stear14
Given that
$x^2+y^2+z^2=8\ ,$
$x^3+y^3+z^3=15\ ,$
$x^5+y^5+z^5=100\ .$

Find the value of $\ x+y+z\ .$
1 reply
Stear14
May 25, 2025
Stear14
24 minutes ago
Euler Line Madness
raxu   76
N an hour ago by zuat.e
Source: TSTST 2015 Problem 2
Let ABC be a scalene triangle. Let $K_a$, $L_a$ and $M_a$ be the respective intersections with BC of the internal angle bisector, external angle bisector, and the median from A. The circumcircle of $AK_aL_a$ intersects $AM_a$ a second time at point $X_a$ different from A. Define $X_b$ and $X_c$ analogously. Prove that the circumcenter of $X_aX_bX_c$ lies on the Euler line of ABC.
(The Euler line of ABC is the line passing through the circumcenter, centroid, and orthocenter of ABC.)

Proposed by Ivan Borsenco
76 replies
raxu
Jun 26, 2015
zuat.e
an hour ago
IMO 2006 Slovenia - PROBLEM 5
Valentin Vornicu   70
N an hour ago by bjump
Let $P(x)$ be a polynomial of degree $n > 1$ with integer coefficients and let $k$ be a positive integer. Consider the polynomial $Q(x) = P(P(\ldots P(P(x)) \ldots ))$, where $P$ occurs $k$ times. Prove that there are at most $n$ integers $t$ such that $Q(t) = t$.
70 replies
Valentin Vornicu
Jul 13, 2006
bjump
an hour ago
The angle bisectors are perpendicular/parallel
Entei   1
N 2 hours ago by RANDOM__USER
Source: Own
In $\triangle{ABC}$, let two altitudes $BE$ and $CF$ meet at the orthocenter $H$. Let the tangents of circle $(ABC)$ from $B$ and $C$ meet at a point $T$. $AT$ meets $EF$ at $X$. $M$ is the midpoint of $BC$. Prove that the angle bisector of $\angle{XHM}$ is perpendicular to the angle bisector of $\angle{BAC}.$

IMAGE
1 reply
Entei
3 hours ago
RANDOM__USER
2 hours ago
Product of injective/surjective functions
WakeUp   7
N 2 hours ago by lpieleanu
Source: Romanian TST 2001
a) Let $f,g:\mathbb{Z}\rightarrow\mathbb{Z}$ be one to one maps. Show that the function $h:\mathbb{Z}\rightarrow\mathbb{Z}$ defined by $h(x)=f(x)g(x)$, for all $x\in\mathbb{Z}$, cannot be a surjective function.

b) Let $f:\mathbb{Z}\rightarrow\mathbb{Z}$ be a surjective function. Show that there exist surjective functions $g,h:\mathbb{Z}\rightarrow\mathbb{Z}$ such that $f(x)=g(x)h(x)$, for all $x\in\mathbb{Z}$.
7 replies
WakeUp
Jan 16, 2011
lpieleanu
2 hours ago
Multiple of power of two.
dgrozev   4
N 2 hours ago by Assassino9931
Source: Bulgarian TST, 2020, p2
Given two odd natural numbers $ a,b$ prove that for each $ n\in\mathbb{N}$ there exists $ m\in\mathbb{N}$ such that either $ a^mb^2-1$ or $ b^ma^2-1$ is multiple of $ 2^n.$
4 replies
dgrozev
Aug 4, 2020
Assassino9931
2 hours ago
Parallelity and equal angles given, wanted an angle equality
BarisKoyuncu   6
N 2 hours ago by expsaggaf
Source: 2022 Turkey JBMO TST P4
Given a convex quadrilateral $ABCD$ such that $m(\widehat{ABC})=m(\widehat{BCD})$. The lines $AD$ and $BC$ intersect at a point $P$ and the line passing through $P$ which is parallel to $AB$, intersects $BD$ at $T$. Prove that
$$m(\widehat{ACB})=m(\widehat{PCT})$$
6 replies
BarisKoyuncu
Mar 15, 2022
expsaggaf
2 hours ago
2020 IGO Intermediate P3
turko.arias   13
N 2 hours ago by fe.
Source: 7th Iranian Geometry Olympiad (Intermediate) P3
In acute-angled triangle $ABC$ ($AC > AB$), point $H$ is the orthocenter and point $M$ is the midpoint of the segment $BC$. The median $AM$ intersects the circumcircle of triangle $ABC$ at $X$. The line $CH$ intersects the perpendicular bisector of $BC$ at $E$ and the circumcircle of the triangle $ABC$ again at $F$. Point $J$ lies on circle $\omega$, passing through $X, E,$ and $F$, such that $BCHJ$ is a trapezoid ($CB \parallel HJ$). Prove that $JB$ and $EM$ meet on $\omega$.


Proposed by Alireza Dadgarnia
13 replies
turko.arias
Nov 4, 2020
fe.
2 hours ago
Functional equation involving decimal-place count
saulgodman   0
2 hours ago
Source: Own

Let
\[
S = \left\{\, x \in \mathbb{Q} : x \text{ has a finite decimal expansion} \,\right\}.
\]For each \( x \in S \), define
\[
d(x) = \text{the number of digits after the decimal point in the (reduced) decimal form of } x.
\]Find all functions \( f\colon S \to \mathbb{Z} \) such that, whenever both \( x+y \in S \) and \( x y \in S \),
\[
f(x) + f(y) = f(x+y) + d(x y).
\]
0 replies
saulgodman
2 hours ago
0 replies
Did you talk to Noga Alon?
pohoatza   36
N 2 hours ago by ezpotd
Source: IMO Shortlist 2006, Combinatorics 3, AIMO 2007, TST 6, P2
Let $ S$ be a finite set of points in the plane such that no three of them are on a line. For each convex polygon $ P$ whose vertices are in $ S$, let $ a(P)$ be the number of vertices of $ P$, and let $ b(P)$ be the number of points of $ S$ which are outside $ P$. A line segment, a point, and the empty set are considered as convex polygons of $ 2$, $ 1$, and $ 0$ vertices respectively. Prove that for every real number $ x$ \[\sum_{P}{x^{a(P)}(1 - x)^{b(P)}} = 1,\] where the sum is taken over all convex polygons with vertices in $ S$.

Alternative formulation:

Let $ M$ be a finite point set in the plane and no three points are collinear. A subset $ A$ of $ M$ will be called round if its elements is the set of vertices of a convex $ A -$gon $ V(A).$ For each round subset let $ r(A)$ be the number of points from $ M$ which are exterior from the convex $ A -$gon $ V(A).$ Subsets with $ 0,1$ and 2 elements are always round, its corresponding polygons are the empty set, a point or a segment, respectively (for which all other points that are not vertices of the polygon are exterior). For each round subset $ A$ of $ M$ construct the polynomial
\[ P_A(x) = x^{|A|}(1 - x)^{r(A)}.
\]
Show that the sum of polynomials for all round subsets is exactly the polynomial $ P(x) = 1.$

Proposed by Federico Ardila, Colombia
36 replies
pohoatza
Jun 28, 2007
ezpotd
2 hours ago
APMO 2012 #3
syk0526   30
N Apr 23, 2025 by EVKV
Source: APMO 2012 #3
Determine all the pairs $ (p , n )$ of a prime number $ p$ and a positive integer $ n$ for which $ \frac{ n^p + 1 }{p^n + 1} $ is an integer.
30 replies
syk0526
Apr 2, 2012
EVKV
Apr 23, 2025
APMO 2012 #3
G H J
Source: APMO 2012 #3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
syk0526
202 posts
#1 • 5 Y
Y by Davi-8191, chessgocube, SADAT, Adventure10, Mango247
Determine all the pairs $ (p , n )$ of a prime number $ p$ and a positive integer $ n$ for which $ \frac{ n^p + 1 }{p^n + 1} $ is an integer.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dinoboy
2903 posts
#2 • 4 Y
Y by Binomial-theorem, chessgocube, Adventure10, Mango247
Ah APMO problems have been posted! :D A bit easy for APMO though :(

First remark that if $p < n$, then $p^n > n^p$ so $p^n + 1 > n^p + 1$ and the problem obviously doesn't hold. Hence $p \ge n$.
Consider a prime power $z^k|(p+1)$. Unless $n \equiv -1 \pmod{z^k}$ we have $\text{ord}_{z^k}(n) = 2p$. But that's obviously false as $2p > z^k$, hence $n \equiv -1 \pmod{z^k}$ or all prime powers which divides $(p+1)$. But this implies $n \equiv -1 \pmod{p+1}$, and hence as $p \ge n$ the only solutions are when $n=p$ which obviously work. Hence all solutions are $(p,p)$ for $p$ a prime number.

EDIT : Oops my inequality fails when $p=2$, so $(2,4)$ is also a solution. Here is a proof $a^b > b^a$ when $a > 2$ and $a < b$ to make sure I don't mess up more.
It suffices to show $a^{b/a} > b$. When $a > e \approx 2.718$ we know $a^z > za$ for $z > 1$ so the result follows. To prove this, consider the function $f(x) = a^x - ax$. $f'(x) = \ln a a^x - a$. Remark that $f'(x) \ge 0$ for $x \ge 0$ and the result follows as $f(1) = 0$.

Now for $p=2$, $2^n > n^2$ for $n > 4$ so it follows the only solutions are $(p,p)$ and $(2,4)$.
This post has been edited 1 time. Last edited by dinoboy, Apr 2, 2012, 4:39 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mlm95
245 posts
#3 • 6 Y
Y by perfect_square, ---Fermat---, ZHEKSHEN, chessgocube, Adventure10, Mango247
I'm not agree with you $p=2$ and $n=4$ is an answer notice that $2^{4}=4^{2}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
WakeUp
1347 posts
#4 • 8 Y
Y by dizzy, Binomial-theorem, AdiletR, Orkhan-Ashraf_2002, Vietjung, chessgocube, Adventure10, Mango247
My solution is slightly different from that of dinoboy's:

If $p=2$ then $n=2$ and by the inequality $2^n>n^2$ for $n>4$, we get that $n=2$ or $n=4$ work.

Otherwise $p\ge 3$ so $p$ is odd, meaning $n$ must be also odd since $2|n^p+1$. Hence $p^n+1$ can be factorised as $(p+1)(p^{n-1}-p^{n-2}+\ldots +p^2-p+1)$. Thus $p+1|n^p+1$. Let $q$ be a prime factor of $p+1$. Suppose $q$ is odd. Now $q|n^p+1$ so $n^{p}=-1\pmod{q}$. Since $q$ is odd, this means $\text{ord}_q(n)\in\{2,2p\}$.

If $\text{ord}_q(n)=2$ then $n^2=1\pmod{q}$. If $n=1\pmod{q}$ then $1=n^p=(-1)^p=-1\pmod{q}$ but $q\nmid 2$, so this is impossible. Hence $n=-1\pmod{q}$ and so $q|n+1$.

If $\text{ord}_q(n)=2p$ then $2p|q-1$ (note that $n^{q-1}=1\pmod{q}$ by FLT) but also $q|p+1$. These divisibilities imply that either $q=1$ or $2p\le p$, both of which are of course contradictory.

So if $q\not= 2$ then $q|n+1$. If $q=2$ then clearly $q|n+1$ as $n$ is odd.

Now suppose for some prime divisor $r$ of $p+1$, we have that $v_r(p+1)>v_r(n+1)$ (we denote the number $k$ such that $a^k||b$ as $v_a(b)$). Therefore since $p+1|n^p+1=(n+1)(n^{p-1}-n^{p-2}+\ldots +n^2-n+1)$, we have that $r|n^{p-1}-n^{p-2}+\ldots +n^2-n+1$. But $n=-1\pmod{r}$ and $p$ is odd, implying that $0=n^{p-1}-n^{p-2}+\ldots +n^2-n+1=1+1+\ldots +1+1+1=p\pmod{r}$. Therefore $r|p$, impossible in view of the fact that $r|p+1$. Hence $v_r(p+1)\le v_r(n+1)$ for all prime divisors $r$ of $p+1$. Therefore $p+1|n+1\implies p\le n$. As dinoboy has already noted, we have must $p\ge n$, so overall $p=n$ giving all solutions to be $(p,p)$ for all primes $p$ and $(2,4)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yunxiu
571 posts
#5 • 12 Y
Y by Vietjung, golema11, puntre, ZHEKSHEN, chessgocube, Mathlover_1, Adventure10, Mango247, and 4 other users
An other solution:
If $p = 2$, then ${n^2} + 1 \geqslant {2^n} + 1$, so we have $n \leqslant 4$, it is easy to see $n = 2,4$.
Now we suppose $p$ is an odd prime, so $n$ is odd, because ${n^p} + 1 \geqslant {p^n} + 1 > 3$, so $n \geqslant 3$.
Because $f(x) = {x^{1/x}}$ is decrease for $x \geqslant e$, from ${n^{1/n}} \geqslant {p^{1/p}}$ we have $n \leqslant p$.
Because $p + 1\left| {{p^n} + 1} \right.$, ${n^p} + 1 \equiv 0 \equiv {p^p} + 1(\bmod p + 1)$, so ${n^p} \equiv {p^p}(\bmod p + 1)$. By $Euler$ theorem ${n^{\varphi (p + 1)}} \equiv 1 \equiv {p^{\varphi (p + 1)}}(\bmod p + 1)$, so ${n^{(p,\varphi (p + 1))}} \equiv {p^{(p,\varphi (p + 1))}}(\bmod p + 1)$, hence $n \equiv p(\bmod p + 1)$, because $1 \leqslant n \leqslant p$, we have $n = p$.
Above all, $(p,n) = (p,p),(2,4)$ are the all solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AwesomeToad
4535 posts
#6 • 3 Y
Y by Ibraheem, Adventure10, Mango247
Why does $ {n^{(p,\varphi (p+1))}}\equiv{p^{(p,\varphi (p+1))}}(\bmod p+1) $ imply $n\equiv p \mod p+1$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yunxiu
571 posts
#7 • 4 Y
Y by AwesomeToad, ZHEKSHEN, Adventure10, Mango247
AwesomeToad wrote:
Why does $ {n^{(p,\varphi (p+1))}}\equiv{p^{(p,\varphi (p+1))}}(\bmod p+1) $ imply $n\equiv p \mod p+1$?

Because $p$ is a odd prime, $p + 1$ is even, so every prime factor of $\varphi (p + 1)$ is less then $\frac{{p + 1}}{2} < p$, hence $\left( {p,\varphi (p + 1)} \right) = 1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sicilianfan
944 posts
#8 • 2 Y
Y by Adventure10, Mango247
Can someone tell me if this solution is valid or not? I'm not really to sure about it so I would appreciate any input. Thanks in advance. (Also, I wasn't sure whether to make a new thread or to revive this old one, so I apologize if I have done the wrong thing)

my solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Konigsberg
2239 posts
#9 • 2 Y
Y by Adventure10, Mango247
@sicilianfan: Your solution is correct. Nice argument regarding how much each quantity increases! And also the fact that $n \cong -1 (mod p+1)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sicilianfan
944 posts
#10 • 2 Y
Y by Adventure10, Mango247
Thanks for the feedback, but there actually was a problem with my solution (of which I was informed a while ago): I assumed that just because $\text{ord}_{p+1}(n)=2$ that $n \equiv -1 \pmod{p+1}$ which is in fact only true if $p+1$ has a primitive root (this is what I overlooked), which is certainly not a valid assumption. It can be fixed by taking mod $q$ where $q$ is a prime that divides $p+1$ instead, and patching from there.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
liberator
95 posts
#11 • 7 Y
Y by Ferid.---., jlammy, rightways, Adventure10, Mango247, farhad.fritl, and 1 other user
If $p=2$, then $n^2 + 1 \geq 2^n + 1 \implies n \leq 4$. Easily, we can see $(p,n) = (2,2); (2,4)$ are the only solution in this case.

Suppose now that $p \geq 3$ is an odd prime. Since $n^p + 1 \geq p^n + 1$, we have $n \geq 3$. Now $n^p \geq p^n \implies n^{\frac{1}{n}} \geq p^{\frac{1}{p}} \implies n \leq p$ since $f(x) = x^{\frac{1}{x}}$ is a decreasing function for $x \geq e$.

$(p+1) \mid p^n + 1 \implies (p+1) \mid n^p + 1$. Hence $n^p \equiv -1 \pmod {p+1}$, so it follows that $\text{ord}_{p+1}(n) = 2$ or $2p$. The second option is absurd, since $2p > p+1 > \phi (p+1)$, so $\text{ord}_{p+1} (n) = 2$: i.e. $n^2 \equiv 1 \pmod {p+1}$. Now $-1 \equiv n^p \equiv n^{p-1}\cdot n \equiv n \pmod {p+1}$, so $p=n$.

Thus our only solutions are $\boxed{(p,n) = (p,p); (2,4)}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
vi1lat
189 posts
#12 • 2 Y
Y by Adventure10, Mango247
What is the mean $ord$??
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
JackXD
151 posts
#13 • 2 Y
Y by Adventure10, Mango247
Let $p$ be an odd prime.

Then $p^n+1|n^p+1 \implies p^{\frac{1}{p}} \le n^{\frac{1}{n}} \implies n \le p$ because $f(x)=x^{\frac{1}{x}}$ is decreasing function for $x \ge e$.
It is easy to see that $n$ must be odd.Let $r$ be the order of $n$ modulo $p+1$.Then $p^n+1|n^p+1 \implies p+1|n^{2p}-1 \implies r|2p$.Clearly $r \le p$ and $r$ cannot be $p$.Also $r=1 \implies p+1|n^p-1 \implies p+1|2 $ which is absurd.So $r=2$ and $p+1|n+1$ which means $p \le n$.This along with the first line's inequality yeilds $n=p$.

For $p=2$ we have $2^n+1|n^2+1 \implies 2^n \le n^2 \implies n \le 4$.Checking we get solutions $n=2,4$.

Thus the solutions are $(p,n) \equiv (2,4),(p,p)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
K.titu
321 posts
#14 • 2 Y
Y by Adventure10, Mango247
Hi dear mathlinkers
I have a question
What made you to think about $p+1$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
uraharakisuke_hsgs
365 posts
#16 • 2 Y
Y by Adventure10, Mango247
Fisrt , if $p > 2$ then $n$ is odd . Let $q$ is a prime number of $p+1$ . Then , $q | n^p+1 \implies q | n^{2p}-1$ , and $q| n^{q-1}-1$ , and because $q < p$ then $ q | n^2 - 1$ , which implies $q | n+1$
And we have $v_q(p^n+1) = v_q (p+1) < v_q(n^p+1) = v_q(n+1) \implies p+1 | n+1 \implies p \leq n $
But we have $n^p > p^n \implies plog(n) \geq nlog(p) \implies \frac{log (n)}{n} \geq \frac{log (p) }{p} $
Let $f(x) = \frac{log x }{x}$ , then $f'(x) = \frac{1 - log x }{x^2}$ , then , for $x > 10$ , $f$ is decreasing . So , for $n , p > 10$ we have $ n \leq p$
Then $ n = p$
For the cases $n$ or $p < 10$ we can check that $(n,p) = (4,2)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ubermensch
820 posts
#17 • 1 Y
Y by Adventure10
Obviously we need $n^p \equiv -1 \pmod{p^n+1} => n^{2p}=1 \pmod{p^n+1}$.
Thus $O_{p^n +1}(n) \mid 2p$, but it doesn’t divide $p$- thus it must equal $2$ or $2p$.
First let’s deal with the easier case, where order is $2$. Here we can clearly see that as $n^2-1 \geq p^n+1$, which is obviously false.
Now, what’s left is the case where $O_{p^n+1}(n)=2p$.
In this case, we must again split into cases- before that, let’s consider some prime $q$ such that $v_q(p+1)=\alpha>0$- here notice that as $n \equiv 1\pmod{2}$ for odd primes, $q^{\alpha} \mid p^{n}+1$.
Clearly, we need $O_{q^\alpha}(n)= 2$ or $2p$, by similar logic- if $2p$, we get an immediate contradiction as $2p>p+1$.
Now let’s look at the case when $O_{q^{\alpha}}(n)=2$.
Now, as $(n+1)(n-1)= 0\pmod{q^{\alpha}}=> q^{\alpha} \mid n+1$ (almost forgot to consider $q=2$ separately, but in the end it doesn’t matter as $n$ is odd) for all such $q^{\alpha} \mid p+1$. Hence, in a rather elegant manner, we get $p+1 \mid n+1$, which of course kills the problem as $p \geq n => (p,p)$ is only solution for odd primes.

Now, you could manually check for $p=2$ and that’ll give you and extra solution $(2,4)$, hence concluding the problem with the solution set $(p,p),(2,4)$ for all primes $p$.

I felt this was actually quite a nice problem and a great fit for P3 (okay maybe a bit on the easier side, I suppose, but I’m not a very good judge), simply because if you don’t notice a few key points(at least if you solve it the way I did), the problem becomes hellish to solve- that makes me wonder, who proposed this?
This post has been edited 3 times. Last edited by ubermensch, Jul 27, 2019, 8:58 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mira74
1010 posts
#18 • 12 Y
Y by tworigami, anish9876, GameMaster402, CantonMathGuy, giacomorizzo, kevinmathz, Kagebaka, Toinfinity, p_square, niyu, khina, IAmTheHazard
Made with some people.
Assume $p=2$, and deal with $p>2$ later.
Leaving $n \leq 4$, we have $n^2+1 < 2^n+1$, and there are no integers in $(0,1)$.
Looking at $n \leq 4$, we see $n=2 ,4$ work.
See that for $p$ odd, $p^n+1$ is even, so $n^p+1$ is even
Then, $n$ must be odd as well
Assume $n \neq p$, since we can see that $n=p$ works.
Realize that $p+1 \mid p^n+1$ from $n$ odd, so $p+1 \mid n^p+1$
Note that since any prime $q \mid p+1$ is $<p$
Abusing order, this implies $q \mid n^p+1 \Rightarrow q \mid n+1$.
Thus, $p+1 \mid n+1$, so $n>p$.
Inequalities kill the rest of the problem: we claim $n^p+1>p^n+1$.
Observe that $f(x)=\ln(\sqrt[x]{x})$ has $f'(x)=\frac{1-\ln(x)}{x^2}$, it decreases for $x>e$, so $\sqrt[n]{n} \leq \sqrt[p]{p}$, implying result.
Now, we are left with the final answer of $(2,4)$ and $(p,p)$.
YUH $\blacksquare$
This post has been edited 3 times. Last edited by mira74, Apr 6, 2020, 1:41 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pad
1671 posts
#19
Y by
Assume $p$ is odd; we will deal with $p=2$ later. Then $p^n+1$ is even, so $n^p+1$ is even, so $n$ is odd. Suppose $q\mid p+1$ for a prime $q$. Then
\[ q\mid p+1 \implies q\mid p^n+1 \implies q\mid n^p+1\implies n^p\equiv -1 \pmod{q}, \ n^{2p} \equiv 1 \pmod{q}. \]Let the order of $n \pmod{q}$ be $x$. Then $x\nmid p, x\mid 2p$, so $x=2,2p$. We also have $x\mid q-1$; hence if $x=2p$ then $2p \mid q-1$, so $q \ge 2p$, contradicting $q \mid p+1$ by size. Hence $x=2$. So $n^2 \equiv 1\pmod{q}$, which means $q\mid (n-1)(n+1)$. We claim we actually have $q\mid n+1$.
  • If $q\mid n+1$, we have proved the claim.
  • If $q\mid n-1$, then $q\mid n^p-1$. But $q\mid p+1 \mid p^n+1 \mid n^p+1$, so we also have $q\mid 2$. So $q=2$. But since $n$ is odd, $2\mid n+1$, so this proves our claim.
Therefore, $q\mid p+1 \implies q\mid n+1$. Now, we use LTE. Note that $q\mid p+1, n+1$, so $q\nmid p,n$. We have
\begin{align*}
\nu_q(n^p+1) &= \nu_q(n+1) + \nu_q(p) = \nu_q(n+1)  \\
\nu_q(p^n+1) &= \nu_q(p+1) + \nu_q(n) = \nu_q(p+1).
\end{align*}But $p^n+1\mid n^p+1$, so therefore $\nu_q(n+1) \ge \nu_q(p+1)$. Since $q$ was defined to be any prime divisor of $p+1$, we conclude that $p+1\mid n+1$.

In particular, $p\le n$. Now, we use size. Since $p^n+1\mid n^p+1$, we know $p^n \le n^p$. So $n \ln p \le p \ln n$, i.e. $\tfrac{n}{\ln n} \le \tfrac{p}{\ln p}$. Let $f(x) = \tfrac{x}{\ln x}$. It is not hard to show that $f(x)$ is increasing for $x\ge 3$. But $x$ increased from $p$ to $n$, while $f(x)$ decreased from $p$ to $n$. Therefore, either $p<3$ or $n=p$. If $p<3$, then $p=2$, and only $(p,n)=(2,2),(2,4)$ works here. Finally, the solutions are $(p,n)=(p,p),(2,4)$.

Remarks
This post has been edited 3 times. Last edited by pad, May 23, 2020, 1:23 AM
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
#20 • 1 Y
Y by centslordm
The answer is $(2,4)$ and $(p,p)$, where $p$ is prime, only. These can be easily checked. For $p=2$, we can find that the only solutions are $n=2,4$, since anything larger results in $p^n+1>n^p+1$. Henceforth assume $p \geq 3$

Note that it is well-known that if $a>e>2$ and $b>a$, then $a^b>b^a$. Since we need $n^p+1 \geq p^n+1$ and $p \geq 3$, it follows that $b \leq a$. Now, since $p \geq 3$, $p^n+1$ is even and hence $n^p+1$ is even too, so $n$ is odd. As such, any prime $q \mid p+1$ must divide $p^n+1$. Let $Q=q^e \mid p+1$, where $q$ is a prime, $Q \neq 2$ and $e=v_q(p+1)$. Then we need $n^p \equiv -1 \pmod{Q}$. This is enough to imply that $\operatorname{ord}_Q(n) \mid 2p$. However, we also cannot have $\operatorname{ord}_Q(n) \mid p$, else $n^p \equiv 1 \pmod{Q}$. This narrows down the options to $\operatorname{ord}_Q(n)\in \{2,2p\}$. However, the latter is impossible for size reasons as $Q \leq p+1$, so $\operatorname{ord}_Q(n) \leq Q-1\leq p \leq 2p$. Hence we conclude that $\operatorname{ord}_Q(n)=2$ for all prime powers $Q \neq 2$ dividing $p+1$, implying $n \equiv -1 \pmod{Q}$. This also works if $Q=2$, in which case $n \equiv 1 \equiv -1 \pmod{Q}$. Hence by CRT, we have $n \equiv -1 \pmod{p+1}$. But we also have $b \leq a$, so $n=p$. Thus no other solutions exist. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sprites
478 posts
#22
Y by
syk0526 wrote:
Determine all the pairs $ (p , n )$ of a prime number $ p$ and a positive integer $ n$ for which $ \frac{ n^p + 1 }{p^n + 1} $ is an integer.


Assume that $n \neq p$ since when $n=p$ we obtain $(n,p)=(p,p)$ which works.
Henceforth assume that $p \ge n$ and $p \ge 2$ i.e when $p=2$ we obtain $(n,p)=(2,4)$ which works.
Clearly $n$ is odd let $\tilde{p}$ be a prime dividing $p+1$
Notice that $$\nu_{\tilde{p}}(p^n+1)=\nu_{\tilde{p}} (p+1)+\nu_{\tilde{p}} (n)$$i.e $$\tilde{p}|n^p+1 \implies ord_{\tilde{p}}(n)=\{1,2,2p\}$$The first and last cases are impossible hence $n^2+1 \equiv 0 \pmod {\tilde{p}}$ implying
$p+1 \equiv 1 \pmod 4 \implies 4|p$,contradiction so $(n,p)=(4,2),(p,p)$
This post has been edited 1 time. Last edited by Sprites, Oct 26, 2021, 6:00 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lazizbek42
548 posts
#23
Y by
Lemma:if $a$ and $b$ positive integer numbers and $a \leq b \implies b^a \leq a^b$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mijail
121 posts
#24
Y by
Funny problem! :D

Suppose that $p \neq 2$ because if we have $p=2$ then $n^2+1 \ge 2^n +1 \implies n \leq 4$ so we have the solutions: $(p,n): (2,2); (2,4)$

Claim: $p+1 \mid n+1$
Proof: First we have that $p^n+1$ is even so $n$ is odd then $p+1 \mid p^n+1\mid n^p+1$ so $p+1 \mid n^{2p} -1 \implies p+1 \mid n^{(2p,\phi(p+1))}-1$ but $\phi(p+1) \leq p-1$ so $(\phi(p+1),p)=1 \implies (2p,\phi(p+1)) \mid 2 \implies p+1 \mid n^2 -1 \implies p+1 \mid n+1$. (Because $p$ is odd) $\square$

Let $n=pu$ .Then we have that $p^n +1 \leq n^p +1 \implies p^pu \leq (pu)^p \implies p^{u-1} \leq u$ but if $u \ge 2$ we have that: $$\lfloor u \rfloor +1 > u \ge p^{u-1} \ge 3^{u-1}
 \ge 3^{\lfloor u \rfloor-1} \implies  \lfloor u \rfloor +1 \ > 3^{\lfloor u \rfloor-1} $$This is false if $u \ge 2$ so we have $n <2p$ and $p+1 \mid n+1$ so $p=n$. This concludes the problem. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Jalil_Huseynov
439 posts
#25
Y by
I really enjoyed from this problem.
If $p=2$, we easily get $n=2$ or $n=4$. If $n=1$, we get there is no solution. If $n=2$ we get $p=2$. Now assume $p,n>2$. Since $p^n\leq n^p$ and $p,n>e$, we get $p\geq n$. $n=p$ is obviously solution. Now assume $p>n$. Since $p$ is odd, we get $n$ is odd also. So $p+1\mid n^p+1$. Consider odd prime divisor $q$ of $p+1$. Since $p>q-1$, we get $\gcd(2p,q-1)=2$. Since $n^{q-1}\equiv n^{2p}\equiv 1 \pmod{q}$, and $\gcd(2p,q-1)=2$, we get $n^2\equiv 1 \pmod{q}$. So $n^p+1\equiv (n^2)^{\frac{p-1}{2}} \cdot n+1\equiv n+1\equiv 0 \pmod{q}$. So $q\mid n+1$. Also we have $v_q({p^n+1})=v_q({p+1})+v_q({n})=v_q({p+1})\leq v_q({n^p+1})=v_q({n+1})+v_q({p})=v_q({n+1})$. So if $q$ is odd prime divisor of $p+1$ , then $v_q({p+1})\leq v_q({n+1})$. Now let's deal with $v_2$. Since $v_2({p+1})\leq v_2({n^p+1})=v_2({n+1})$, we get $v_2({p+1})\leq v_2({n+1})$. So $v_r({p+1})\leq v_r({n+1})$ for all prime number $r$. So we get $p\leq n$, which is contradiciton. So all solutions are $\boxed{n=p}$, $\boxed{p=2,n=4}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZNatox
67 posts
#26
Y by
If $p=2$, we get $n=2,4$.
Now suppose $p>2$, then $n$ is odd, and we can't have $n=1$, thus: $n \le p$.
$p+1 \mid p^n+1 \mid n^p+1 \mid n^{2p}-1$ which implies $O_{p+1}(n) \mid 2p$. If $O_{p+1}(n)$ is odd we get $O_{p+1}(n) \mid p$ clearly impossible. Thus: $O_{p+1}(n) \in \{2,2p\}$. Can we have: $O_{p+1}(n)=2p$? No, the reason being: $\phi(p+1)\le (p+1)<2p$. Thus: $O_{p+1}(n)=2$ which gives us that: $p+1 \mid (n-1)(n+1)$ or $\frac{p+1}{2^{v_2(p+1)}} \mid (n-1) × \frac{n+1}{2^{v_2(p+1)}}$, but $\frac{p+1}{2^{v_2(p+1)}}$ is odd, and therefore coprime with $n-1$, and by LTE $\frac{n+1}{2^{v_2(p+1)}}$ is an integer, thus $p+1 \mid n+1$, which gives us $p=n$.
This post has been edited 6 times. Last edited by ZNatox, Jan 5, 2023, 6:46 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
X.Allaberdiyev
105 posts
#28
Y by
Interesting. Suppose that $n$ and $p$ are not equal and $p>2$:
We know that $n^p$>$p^n$, since $n,p>e$ ($n=2$ case is impossible because $n$ must be odd according to mod 2 and $n=1$ is easy) we have $p>n$ (It is well known that for $a,b>e$, if $a^b>b^a$, then $b>a$). We have $2 \mid p^n+1\mid n^p+1$, then $n$ is odd, then $p+1 \mid p^n+1 \mid n^p+1$ . Let $\operatorname{ord}_{p+1}(n)=k$, since $n^{2p} \equiv 1 \pmod{p+1}$, we know that $k \mid 2p$, we know that $k<2p$, and $k$ is not equal to $p$ (because $n^p \equiv -1 \pmod{p+1}$), which means that $k \mid 2$, then $n^p+1 \equiv n+1 \pmod{p+1}$, since $p+1 \mid n^p+1$, we have $n \equiv p \pmod{p+1}$, which is contradicting $p>n$, then $p$ must be equal to $n$ for $p,n>3$. For $p=2$ we have $2^n+1>n^2+1$ for $n>4$, you can check the cases $n=1,2,3,4$, which gives the solutions $(2,4)$ and $(2,2)$. Then answers are $(p,p)$ and $(2,4)$ where $p$ is an any prime number.
This post has been edited 4 times. Last edited by X.Allaberdiyev, Aug 17, 2023, 4:43 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Inconsistent
1455 posts
#29
Y by
I claim the answers are $n = p$ for all $p$ and $n = 4, p = 2$.

First, it is well known that $a^b > b^a$ when $a < b$ and both $a, b \geq 3$ (the result follows form taking a log of both sides and a derivative to show strict monotonicity).

In the case when $p = 2$, by bounding we have $n \leq 4$ and here only $n = 4$ works. In the case $n = 1$, the value is less than $1$, and in the case $n = 2$, there is death by parity for $p \geq 3$. Otherwise, we have $n \geq 3$ and thus $n \leq p$. Obviously $n = p$ works.

Now notice that since $p^n + 1$ is even, we must have $n$ odd, so it follows $n^p \equiv -1 \pmod{p + 1}$. In particular, since $p+1$ is composite and thus $p \nmid \phi(p+1)$, it follows that there is a unique solution to $n^p \equiv -1 \pmod{p+1}$ up to $p + 1$. Since $n = p$ suffices, this must be the only solution, so we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4191 posts
#30
Y by
The answer is $n=p$ and $p=2,n=4$ only.

For $p=2$, we have $2^n+1\mid n^2+1$, which only has $n=2$ and $n=4$ as a solution since $2^n>n^2$ for all $n\geq 5$. $n=1$ gives $p+1\mid 2$ which clearly does not work, and $n=2$ gives $p^2+1\mid 2^p+1$ which can only work for $p=2$ since $2^p+1$ is odd.

Thus, assume $n,p\geq 3$ from now on. This means that for $n^p$ and $p^n$, the one with the higher exponent is larger, which means that we must have $n\leq p$.

If $n$ is even, we must have $p=2$ since the numerator is odd, but we have already shown that the only solution for $p=2$ is $n=2$ and $n=4$. From now on, assume $n$ odd, so $p+1\mid p^n+1$. Thus, $$p+1\mid n^p+1$$$$n^p\equiv -1\pmod{p+1}$$$$n^{2p}\equiv 1\pmod{p+1}.$$Thus the order of $n$ mod $p+1$ must divide $2p$ but not $p$, which means it is either $2$ or $2p$. However, it cannot be $2p$ since that is larger than the modulus of $p+1$, hence the order is $2$ so $n\equiv -1\pmod{p+1}$. Since $n\leq p$, the only solution is $n=p$ in this case.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kuzeyaloglu
16 posts
#31
Y by
Only $n = p, (2,4)$ satisfy the condition.
For $p=2, p=3$ we can just check until the denominator gets bigger than the numerator.
So we can assume $p$ is odd and if $n > p \iff p^n > n^p $ so $n \le p$ It is clear that if we
let $\frac{n^p + 1}{p^n + 1} = k$ for some positive integer we have for $p > 2$ $k=1$ if and only if $n = p$ so we can assume $n < p $
$$n^p + 1 - k = p^nk \Rightarrow n \equiv k-1 \pmod p \Rightarrow n = k-1 $$$$(k-1)^p + 1 - k = p^nk \Rightarrow p = k-1 $$so $n = p $ and there are no solutions for $k > 1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathfun07
39 posts
#32
Y by
Solution pairs $(n,p)$, are $(p,p)$ for all primes, and $(4,2)$. Check $p=2$ manually, and by size, assume that $n<p$, as $n=p$ obviously works. Now assume for sake of contradiction some other $n$ works for an odd prime $p$.

By orders, if a prime $q \mid n^p + 1$, either $q \equiv 1 \pmod p$ or $q\mid n+1$. By parity, $n=p-1$ dies so consider $n<p-1$: this means $n+1 < p$. By LTE, any prime dividing $n+1$ cannot divide $\frac{n^p+1}{n+1}$, but $n^p+1 \equiv n+1 \pmod p$, which means the primes dividing $n^p+1$ that aren't $1 \pmod p$, are exclusively those dividing $n+1$: their product is thus less than $p$. However, as $2 \mid p^n+1$, then there exists some primes that aren't $1 \pmod p$ that have product greater than $1$ which is a contradiction.

I read the other solutions and noticed that I could have just considered $p+1$ instead.
This post has been edited 2 times. Last edited by mathfun07, Mar 26, 2024, 11:04 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
401 posts
#33 • 3 Y
Y by ubermensch, L13832, Nobitasolvesproblems1979
For $p = 2$: We have $2^n > n^2$ for $n \geq 5$, which means we have to check $n = 1, 2, 3, 4$ which gives $(4, 2)$ as a solution, and $(2, 2)$.

From now on, assume $p$ odd. Clearly, $p^n + 1$ is even, which means $n$ has to be odd. Consider a prime $q$ such that $q \mid p + 1$. Since $p + 1 \mid p^n + 1$, $q \mid n^p + 1 \implies n^p \equiv -1 \mod{q} \implies n^{2p} \equiv 1\mod{q}$. So, $\text{ord}_q(n) \mid 2p$, and it can't be $1$ or $p$ since $\text{ord}_q(n) \nmid p$, and it can't be $2p$, since $2p > p + 1 > q - 1$. So, $\text{ord}_q(n) = 2$, and $n \equiv -1 \mod{q}$.

By LTE, we have $v_q(p^n + 1) = v_q(p + 1) + v_q(n)$, and since $q \mid n + 1$, $q \nmid n$, and $v_q(p^n + 1) = v_q(p + 1)$. We have $v_q(n^p + 1) = v_q(n + 1)$, so $v_q(n + 1) \geq v_q(p + 1) \implies p + 1 \mid n + 1$, so $p \leq n$. For $n > p$, however, $p^n > n^p$, a contradiction, which means $n = p$ is the only solution here, and we're done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EVKV
71 posts
#34 • 1 Y
Y by Nobitasolvesproblems1979
CASE 1: n=pk+r where $k \geq 4$ and $0 \leq r $< $p$

Claim 1.1 : $p^n$ > $n^p$

Proof 1.1 : This is equivalent to proving $p^{\frac{n}{p}}$ > $n$ => $p^{k}$ > $pk+r$
=> $p^{k}$ > $p(k+1)$ => $p^{k-1}$ > $(k+1)$ which is clearly true for all primes as $k \geq 4$

CASE 2: n=p+r where $0 \leq r $< $p$ $p \neq 2$

Claim 2.1 : Only n=p satisfies this

Proof 2.1 : $p+1 | (p+r)^{p} +1$ so, $(p+r)^{2p} \equiv 1$ mod $p+1$
Now the order of $p+r $mod $p+1$ $\in$ {$2,2p$}
however 2p>p+1 ,thus order is 2
So,$ p+r \equiv -1 $mod $p+1 $ $ p+r \equiv -1 + r \equiv -1$mod $p+1 $
$ r \equiv 0 $mod $p+1 $ thus r=0

Thus n=p

CASE 3: n=p-r where $0 \leq r $< $p$ $p \neq  2$

Claim 3.1 : Only n=p satisfies this

Proof 3.1 : $p+1 | (p-r)^{p} +1$ so, $(p-r)^{2p} \equiv 1$ mod $p+1$
Now the order of $p-r $mod $p+1$ $\in$ {$2,2p$}
however 2p>p+1 ,thus order is 2
So,$ p-r \equiv -1 $mod $p+1 $ $ p-r \equiv -1 + r \equiv -1$mod $p+1 $
$ -r \equiv 0 $mod $p+1 $ thus r=0

Thus n=p

CASE 4: n=2p+r where $0 \leq r $< $p$ $p \neq 2$

Claim 4.1 : This has no solution

Proof 4.1 : $p+1 | (2p+r)^{p} +1$ so, $(2p+r)^{2p} \equiv 1$ mod $p+1$
Now the order of $2p+r $mod $p+1$ $\in$ {$2,2p$}
however 2p>p+1 ,thus order is 2
So,$ 2p+r \equiv -1 $mod $p+1 $ $ 2p+r \equiv -2 + r \equiv -1$mod $p+1 $
$ r \equiv 1 $mod $p+1 $ thus r=1

Claim 4.1.1 : $p^{2p+1}$ > $(2p+1)^p$

Proof 4.1.1 : This is equivalent to proving $p^{\frac{2p+1}{p}}$ > $2p+1$
=> $p^{2}$ > $2p+1$ which is clearly true for all primes as $p \geq 3$

Thus No solution

CASE 5: n=3p+r where $0 \leq r $< $p$ $p\neq2$

Claim 5.1 : This has no solution

Proof 5.1 : $p+1 | (3p+r)^{p} +1$ so, $(3p+r)^{2p} \equiv 1$ mod $p+1$
Now the order of $3p+r $mod $p+1$ $\in$ {$2,2p$}
however 2p>p+1 ,thus order is 2
So,$ 3p+r \equiv -1 $mod $p+1 $ $ 3p+r \equiv -3 + r \equiv -1$mod $p+1 $
$ r \equiv 2 $mod $p+1 $ thus r=2

Claim 5.1.1 : $p^{3p+2}$ > $(3p+2)^p$

Proof 5.1.1 : This is equivalent to proving $p^{\frac{3p+2}{p}}$ > $3p+2$
=> $p^{3}$ > $3p+2$ which is clearly true for all primes as $p \geq 3$

Thus No solution

CASE 6: p=2 n=2k+r

Claim 6.1 : (n,p)=(2,2) , (4,2) satisfy it

Proof 6.1 : By Case 1 $k \leq 3$ which then bashing with both r=1,0 we get only 2,2 and 4,2 satisfy the problem

Done


Remark: Grt problem on bounding and simple orders

I rate it 10 mohs

Solved: 17/4/25
This post has been edited 3 times. Last edited by EVKV, Apr 23, 2025, 6:35 PM
Z K Y
N Quick Reply
G
H
=
a