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

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Apr 13 - Aug 10
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Sunday, Apr 13 - Aug 10
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Monday, Apr 7 - Jul 28
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Wednesday, Apr 16 - Jul 2
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Thursday, Apr 17 - Jul 3
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Wednesday, Apr 23 - Oct 1
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Intermediate: Grades 8-12

Intermediate Algebra
Monday, Apr 21 - Oct 13
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

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

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Wednesday, Apr 16 - Jul 2
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Friday, Apr 11 - Jun 27
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Apr 2, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

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


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


More specifically:

For new threads:


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

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


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

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


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


For answers to already existing threads:


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

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



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


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

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
Primes that divide a³-3a+1
rodamaral   28
N 10 minutes ago by Ilikeminecraft
Source: Question 6 - Brazilian Mathematical Olympiad 2017
6. Let $a$ be a positive integer and $p$ a prime divisor of $a^3-3a+1$, with $p \neq 3$. Prove that $p$ is of the form $9k+1$ or $9k-1$, where $k$ is integer.
28 replies
rodamaral
Dec 7, 2017
Ilikeminecraft
10 minutes ago
Sum-free multiplicative group mod p can be arbitrarily large
v_Enhance   25
N 15 minutes ago by Ilikeminecraft
Source: USA January TST for the 55th IMO 2014
For a prime $p$, a subset $S$ of residues modulo $p$ is called a sum-free multiplicative subgroup of $\mathbb F_p$ if
$\bullet$ there is a nonzero residue $\alpha$ modulo $p$ such that $S = \left\{ 1, \alpha^1, \alpha^2, \dots \right\}$ (all considered mod $p$), and
$\bullet$ there are no $a,b,c \in S$ (not necessarily distinct) such that $a+b \equiv c \pmod p$.
Prove that for every integer $N$, there is a prime $p$ and a sum-free multiplicative subgroup $S$ of $\mathbb F_p$ such that $\left\lvert S \right\rvert \ge N$.

Proposed by Noga Alon and Jean Bourgain
25 replies
v_Enhance
Apr 28, 2014
Ilikeminecraft
15 minutes ago
Number Theory
TUAN2k8   2
N 27 minutes ago by TUAN2k8
Prove that there are infinitely many of positive integers m such that $m+1 | 3^m+1$
2 replies
TUAN2k8
Today at 3:25 PM
TUAN2k8
27 minutes ago
Existence of a circle tangent to four lines
egxa   2
N 27 minutes ago by mathlearner-sd
Source: All Russian 2025 10.2
Inside triangle \(ABC\), point \(P\) is marked. Point \(Q\) is on segment \(AB\), and point \(R\) is on segment \(AC\) such that the circumcircles of triangles \(BPQ\) and \(CPR\) are tangent to line \(AP\). Lines are drawn through points \(B\) and \(C\) passing through the center of the circumcircle of triangle \(BPC\), and through points \(Q\) and \(R\) passing through the center of the circumcircle of triangle \(PQR\). Prove that there exists a circle tangent to all four drawn lines.
2 replies
egxa
Today at 9:51 AM
mathlearner-sd
27 minutes ago
IMO ShortList 2008, Number Theory problem 4
April   20
N 40 minutes ago by megarnie
Source: IMO ShortList 2008, Number Theory problem 4
Let $ n$ be a positive integer. Show that the numbers
\[ \binom{2^n - 1}{0},\; \binom{2^n - 1}{1},\; \binom{2^n - 1}{2},\; \ldots,\; \binom{2^n - 1}{2^{n - 1} - 1}\]
are congruent modulo $ 2^n$ to $ 1$, $ 3$, $ 5$, $ \ldots$, $ 2^n - 1$ in some order.

Proposed by Duskan Dukic, Serbia
20 replies
April
Jul 9, 2009
megarnie
40 minutes ago
powers sums and triangular numbers
gaussious   5
N an hour ago by Lil_flip38
prove 1^k+2^k+3^k + \cdots + n^k \text{is divisible by } \frac{n(n+1)}{2} \text{when} k \text{is odd}
5 replies
gaussious
Yesterday at 1:00 PM
Lil_flip38
an hour ago
Parallelograms and concyclicity
Lukaluce   29
N 2 hours ago by ItsBesi
Source: EGMO 2025 P4
Let $ABC$ be an acute triangle with incentre $I$ and $AB \neq AC$. Let lines $BI$ and $CI$ intersect the circumcircle of $ABC$ at $P \neq B$ and $Q \neq C$, respectively. Consider points $R$ and $S$ such that $AQRB$ and $ACSP$ are parallelograms (with $AQ \parallel RB, AB \parallel QR, AC \parallel SP$, and $AP \parallel CS$). Let $T$ be the point of intersection of lines $RB$ and $SC$. Prove that points $R, S, T$, and $I$ are concyclic.
29 replies
Lukaluce
Apr 14, 2025
ItsBesi
2 hours ago
Inequality with a,b,c,d
GeoMorocco   5
N 2 hours ago by GeoMorocco
Source: Moroccan Training 2025
Let $ a,b,c,d$ positive real numbers such that $ a+b+c+d=3+\frac{1}{abcd}$ . Prove that :
$$ a^2+b^2+c^2+d^2+5abcd \geq 9 $$
5 replies
GeoMorocco
Apr 9, 2025
GeoMorocco
2 hours ago
number theory
Levieee   4
N 2 hours ago by Safal
Idk where it went wrong, marks was deducted for this solution
$\textbf{Question}$
Show that for a fixed pair of distinct positive integers \( a \) and \( b \), there cannot exist infinitely many \( n \in \mathbb{Z} \) such that
\[
\sqrt{n + a} + \sqrt{n + b} \in \mathbb{Z}.
\]
$\textbf{Solution}$

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

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

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

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






1 reply
ZeltaQN2008
Apr 16, 2025
kiyoras_2001
4 hours ago
IMO ShortList 1999, number theory problem 1
orl   61
N Apr 6, 2025 by cursed_tangent1434
Source: IMO ShortList 1999, number theory problem 1
Find all the pairs of positive integers $(x,p)$ such that p is a prime, $x \leq 2p$ and $x^{p-1}$ is a divisor of $ (p-1)^{x}+1$.
61 replies
orl
Nov 13, 2004
cursed_tangent1434
Apr 6, 2025
IMO ShortList 1999, number theory problem 1
G H J
Source: IMO ShortList 1999, number theory problem 1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Shreyasharma
677 posts
#50 • 1 Y
Y by cubres
Long solution with unnecessary claims (probably), though very quick and easy to find.

We can see $x = 1$ works for all primes $p$ so disregard this case from now on.

Note that we want,
\begin{align*}
(p-1)^x \equiv - 1 \pmod{x^{p-1}}
\end{align*}Consider the smallest prime $q \mid x$. Then we have,
\begin{align*}
(p-1)^{2x} \equiv 1 \pmod{q}
\end{align*}Then $\text{ord}_{q}(p-1) \mid \gcd(2x, q - 1) = 2$. Assume that $\text{ord}_{q}(p-1) = 1$. Then we find that $p \equiv 2 \pmod{q}$. However then we require that $(p-1)^x + 1 \equiv 2 \equiv 0 \pmod{q}$ implying $q = 2$. Then plugging back in we wish to find solutions to $x \mid 2$ so $x = 2$ works.

Now in our second case we must have $\text{ord}_{q}(p-1)  = 2$. Then we have,
\begin{align*}
p^2 - 2p &\equiv 0 \pmod{q}\\
\iff p(p - 2) &\equiv 0 \pmod{q}
\end{align*}Then as we have alread considered $p \equiv 2$, we need $p \equiv 0 \pmod{q}$. However as $p$ is prime we need $p = q$ and hence $p$ is the smallest prime divisor of $x$. Now note LTE we have $\nu_p((p-1)^x + 1) = 1 + \nu_p(x)$. Also we easily find that $\nu_p(x^{p-1}) = \nu_p(x) \cdot (p-1)$. Then we obviously need,
\begin{align*}
1 + \nu_p(x) &\geq  (p-1) \cdot \nu_p(x) \\
\iff 1 &\geq (p-2) \cdot \nu_p(x)
\end{align*}Which holds if and only if $\nu_p(x) = 0$, $p = 2$ or $p = 3$ and $\nu_3(x) \leq 1$. If $\nu_p(x) = 0$, then $x = 1$ as $p$ is the smallest prime divisor of $x$. Then if $p = 2$ we must have $x \mid 2$ which holds if and only if $x = 2$. Finally if $p = 3$ and $\nu_3(x) = 1$ we have $x^2 \mid 2^x + 1$. However from 90IMO3 and orders argument gives that this has solutions only when $x = 3$.

Then our final solution set is $\boxed{\{(1, p), (2, 2), (3, 3)\}}$.
This post has been edited 1 time. Last edited by Shreyasharma, Dec 28, 2023, 4:37 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Cali.Math
128 posts
#51 • 1 Y
Y by cubres
We uploaded our solution https://calimath.org/pdf/IMO1999-4.pdf on youtube https://youtu.be/DtVQP4OXVCw.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lelouchvigeo
179 posts
#52 • 1 Y
Y by cubres
If $x = 1$, then all $p$ work.
For $p=2$, then $x$ is $1$ or $2$. Assume now $p\ge 3$.
Let $x>1$, then let the samllest prime factor of x be q.
We have $(p-1)^{2x} \equiv 1 \pmod{q}$. This implies $ q-1 \mid 2x$. This forces $q=2.$
Now since $v_2(2x^{p-1}) > v_2(p-1)^x +1) $, the only case to be checked now is $x=p$
$p^{p-1} \mid (p-1)^p + 1 \implies p-1 \le \nu_p((p-1)^p + 1)   $ $ \implies p-1 \le 2 \implies p\le3$
Now checking for $p=3$. We get a solution as $(3,3)$
Therefore the solutions are $\boxed{(1, p), (2, 2), (3, 3)}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AlanLG
241 posts
#53 • 1 Y
Y by cubres
:coolspeak:
Solution without the bound of $x$
If $p=2$, then $x=2$, so for now assume $p\geq 3$
If $x=1$ all $p$ primes work, so also assume $x\geq 2$

Let $q$ be the smallest prime dividing $x$ then $(p-1)^{2x}\equiv 1\pmod q$ and as $(p-1)^{q-1}\equiv 1\pmod q$ then $\operatorname{Ord}_q(p-1)\mid 2\gcd\left(x,\frac{p-1}{2}\right)=2$ so $(p-1)^2\equiv 1\pmod q$ so $p=q$ or $p\equiv 2\pmod q$, the latter gives $(p-1)^x+1\equiv 2\pmod q$ impossible. If $p=q$ then, by Lifting the Exponent $$\nu_p((p-1)^x+1)=\nu_p(p)+v_p(x)\geq (p-1)\nu_p(x)$$so $1\geq (p-2)v_p(x)\geq (p-2)\cdot 1$ so $p=3$
which gives to find all integers $x$ such that $x^2\mid 2^x+1$ which by IMO 1990/3 only $x=3$ works so the solutions are $\boxed{(x,p)=(1,p),(2,2), (3,3)}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
joshualiu315
2513 posts
#54 • 1 Y
Y by cubres
I was given no condition bounding $x$:


The solution set is $(x,p) \in \{(1,p), (2,2), (3,3)\}$.

Note that if $x=1$, all $p$ work. Also, if $p=2$, we must have $x \mid 2$, which gives the unique solution $(x,p)=(2,2)$. Assume $x>1$ and $p>2$ for the remainder of this solution.

Let $q$ be the smallest prime dividing $x$. We have

\[\operatorname{ord}_q(p-1) \mid \gcd(2x,q-1) = 2.\]
Hence,

\[(p-1)^2 \equiv 1 \pmod{q} \iff p(p-2) \equiv 0 \pmod{q}.\]
Hence, $p \equiv 0,2 \pmod{q}$. The latter gives

\[(p-1)^x+1 \equiv 2 \pmod{q},\]
implying that $q=2$. However, $(p-1)^x+1$ is odd, so this yields a contradiction.

Otherwise, we have $p \equiv 0 \pmod{q} \iff p=q$, so LTE gives

\[\nu_p((p-1)^x+1) = \nu_p(p)+\nu_p(x) \ge \nu_p(x^{p-1}) = (p-1) \nu_p(x)\]\[\implies 1+\nu_p(x) \ge (p-1) \nu_p(x) \iff (p-2) \nu_p(x) \le 1.\]
Since $\nu_p(x) \ge 1$, we must have $p=3$.

The problem is now reduced to finding all $x$ such that $x^2 \mid 2^x+1$.


Lemma The only value $x$ satisfying this is $x=3$.

Proof: Consider IMO 1990/3. $\square$


Hence, the unique solution here is $(x,p)=(3,3)$. This completes our solution set.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
793 posts
#55 • 1 Y
Y by cubres
The condition $x \leq 2p$ turns out to be unnecessary. Our solutions are $\boxed{(1,p),(2,2),(3,3)}$. We proceed first by tackling edge cases:
  • If $x=1$, $p$ can be any prime.
  • If $p=2$, $x$ is either 1 or 2.
  • Otherwise, $p$ is odd, forcing $x$ to be odd. Then we require
    \[(p-1) \cdot v_p(x) \leq v_p((p-1)^x+1) = v_p(x) + 1 \implies (p-2) \cdot v_p(x) \leq 1.\]If $p=3$, IMO 1990/3 tells us $x$ is either 1 or 3.
  • Otherwise, $\gcd(x,p)=1$. Suppose the least prime divisor of $x$ is $q>2$. Then
    \[\operatorname{ord}_q(p-1) \mid 2n, p-1 \text{ but not } n \implies \operatorname{ord}_q(p-1) = 2 \implies p=q,\]contradiction. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SenorSloth
37 posts
#56 • 1 Y
Y by cubres
We claim that the only such pairs are $(2,2)$, $(3,3)$, and $(1,p)$ for any prime $p$.
(This proof assumes there is no bound on $x$.)

We start with the trivial case when $p=2$. We end up with $x\mid 2$, which clearly gives only $x=1$ and $x=2$ as solutions.

For odd primes, we know that $(p-1)^x+1$ is odd, and thus $x$ must be odd. For any $p$, $x=1$ clearly works since $1$ divides everything. Assuming $x\neq 1$, we let $q$ be the smallest prime divisor of $x$. We know that the order of $p-1\pmod{q}$ divides $\gcd(q-1,2x)$. Since $x$ only has prime factors at least $q$, it is clear $x$ and $q-1$ are relatively prime and thus $\gcd(q-1,2x)$ must be exactly $2$. The order cannot be $1$, because in that case $q\mid (p-1)^x-1$, not $(p-1)^x+1$, so the order must be $2$. This implies that $p-1\equiv -1\pmod{q}$, so $p\equiv 0\pmod{q}$ and thus $p=q$.

Now we use LTE to rule out all cases except $p=3$. We know that $\nu_p((p-1)-(-1))=1$, so $\nu_p((p-1)^x-(-1)^x)=1+\nu_p(x)$. We also have that $\nu_p(x^{p-1})=(p-1)\nu_p(x)$. Note that since $p=q$, we have $p\mid x$. This means that for $p>3$, $(p-1)\nu_p(x)>1+\nu_p(x)$, so there are no solutions. For $p=3$, if $\nu_3(x)=1$ then they have equal values, so this case has to be resolved separately.

We can check to see that $(3,3)$ is a solution. Now we have to rule out other solutions. Our previous bound showed that $\nu_3(x)=1$ was the only one possible. Let $r$ be the minimum other prime that is a factor of $x$. Then the order of $2\pmod{r}$ divides $\gcd(r-1,2x)$. Similar to before, other than a factor each of $2$ and $3$, $2x$ only contains prime factors greater than $r$, and thus the order must divide $6$. Furthermore, the order being $1$ or $3$ won't work, so it must be $2$ or $6$. However, $3$ is the only working prime for order $2$, while no primes exist for order $6$ since $2^6-1=63$ but $7$ has order $3$ since $2^3-1=7$. Thus, there can be no other prime factors, and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
de-Kirschbaum
193 posts
#57 • 1 Y
Y by cubres
Note that when $x=1$ every prime works so we will only consider the cases where $x \neq 1$. Now note that for any prime factor $q \mid x$ we have $(p-1)^x \equiv -1 \mod{q}, (p-1)^{2x} \equiv 1 \mod{q}$ which means $\delta_{q}(p-1)=\gcd(2x, q-1)$ which is either $2$ or $1$ since $q-1$ is corpime with $x$. If it is $1$, then $(p-1)^x \equiv 1 \equiv -1 \mod{q} \implies q=2 \implies p=2$ in which case we have $(p-1)^x+1=2$ which is divisible only by $1,2$ so $(x,p)=(2,2)$ is the new solution.

If $\delta_q(p-1)=2$ then $p-1 \equiv -1 \mod{q} \implies p \equiv 0 \mod{q} \implies p=q$. Then that means $q \leq x \leq 2q$ but if $x=2q$ then that means $(p-1)^x+1$ has a prime factor where the order is 1, but we dealt with that in the previous case already. Thus $x=q=p$. Then we have $p^{p-1} \mid (p-1)^p+1$. By LTE we get that $\nu_p((p-1)^p+1)=\nu_p(p)+\nu_p(p)=2$. Thus the division only holds when $p=2, 3$, but we dealt with the case when $p=2$ already so we check the solutions for $p=3$ which gives us a new solution $(x,p)=(3,3)$, and if $p \geq 5$ clearly there are no solutions as the division no longer holds.

Thus the solutions are $(x,p)=(1,p),(2,2),(3,3)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
BestAOPS
707 posts
#58 • 1 Y
Y by cubres
We claim the solutions are $(1,p)$ for all $p$, $(2,2)$, and $(3,3)$. They can be checked to work. Furthermore, if $p=2$, then $x$ must be a divisor of $1^x + 1 = 2$, so $(1,2)$ and $(2,2)$ are the only solutions. Thus, from now on, we can assume $x > 1$ and $p \geq 3$.

We know $x$ has a least prime factor; let that be $q$. Then, we have
\begin{align*}
    (p-1)^x \equiv -1 \pmod{q} \\
    (p-1)^{2x} \equiv 1 \pmod{q}.
\end{align*}Looking at the order of $(p-1)^2$, it must divide the GCD of $q-1$ and $x$. But $q$ being the least prime factor implies that GCD is $1$, so $(p-1)^2 \equiv 1 \pmod{q}$. This means $q \mid p(p-2)$.

However, $q \mid p-2$ is impossible. To see why, notice that $(p-1)^x + 1 \equiv 1 + 1 \pmod{p-2}$, so $(p-1)^x + 1 \equiv 2 \pmod{q}$. Since $q$ is odd, this means that $(p-1)^x + 1$ is not divisible by $q$, contradicting the fact that $x^{p-1}$ divides $(p-1)^x + 1$.

Thus, we must have $q = p$. Now, notice that since $x$ must be odd, we can use lifting the exponent:
\[ \nu_p((p-1)^x + 1) = 1 + \nu_p(x) \geq \nu_p(x^{p-1}) = (p-1)\nu_p(x). \]This implies
\[ \frac{1}{p-2} \geq \nu_p(x) \geq 1, \]so $p \leq 3$.

We only need to consider the case where $p = 3$. However, the result of IMO 1990/3 tells us that $(1,3)$ and $(3,3)$ are the only solutions in this case, 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.
ezpotd
1253 posts
#59 • 1 Y
Y by cubres
The answer is only $(3,3), (2,2)$ and $(1,p)$ for all primes $p$. It is easy to verify these work.

Main idea is to consider the lowest prime divisor of $x$ (ignore $x =1$ as it always works, ignore $p < 4$ as it can be done manually), let it be $q$. Then take $\mathrm{ord}_q p - 1 \mid  q - 1, \mathrm{ord}_q p - 1 \mid 2x$, so $\mathrm{ord}_q p -1 = 1,2$. In the first case, we have $q = p - 2$, so for $p > 3$ we can check that $x = q$ by size, so we can eliminate this case by just showing $q^{p - 1} > p^{q } + 1$, by mod $p$ they are clearly never equal so we can just show $q^{p - 1} > p^{q }$ which forces no sol, since $(q + 1)^{p- 1} = (p - 1)^{q + 1}$, it suffices to show that $(\frac{q}{q + 1})^{p - 1} \ge \frac{1}{p - 1}$, rewrite as $(1 - \frac{1}{c})^{c} \ge \frac 1c$, which is obvious for $c > 4$ since the left is increasing in $c$ and the right is decreasing , in the latter we have $q = p$, so we can use LTE, check $p = 2$ manually then LTE on odd case gives $\nu_p$ on the right is $2$, on left is $p - 1$, so we must have $p \le 3$, giving the only solution as $p = 3$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pie854
243 posts
#60 • 1 Y
Y by cubres
Note that $(1,p)$ works for any prime $p$ and $(2,2)$ also works for any $x$. So let us assume $x>1$ and $p>2$.

We have $x^{p-1}\mid (p-1)^{2x}-1$. Let $q$ be a prime such that $q\mid x$. Let $\alpha=\text{ord}_q({p-1})\leq q-1$ then $q\mid (p-1)^\alpha-1$ and $\alpha\mid 2x$. So by LTE \begin{align*} v_q\left((p-1)^{2x}-1\right)\geq v_q(x^{p-1}) & \Rightarrow v_q\left((p-1)^\alpha-1\right)+v_q(2x/\alpha) \geq (p-1)v_q(x) \\ & \Rightarrow v_q\left((p-1)^\alpha-1\right)\geq (p-2)v_q(x) \\ & \Rightarrow q^{p-2} \mid (p-1)^\alpha-1 \\ & \Rightarrow q^{p-2} <(p-1)^\alpha\leq (p-1)^{q-1}.\end{align*}From this it's not very hard to show that $q\geq p$. So if $x=qk\leq 2p$ then either $k=2,q=p$ or $k=1$. If $x=2p$ then by mod 2 we get a contradiction. If $x=q$ then by FLT $$0\equiv (p-1)^q+1 \equiv (p-1)+1 \equiv p \pmod q,$$so $q=p$. Using LTE again $$p-1\leq v_p\left((p-1)^p+1\right)=v_p(p-1+1)+v_p(p)=2,$$so $p=3$. Checking we find that the other working pair is $(3,3)$.
This post has been edited 3 times. Last edited by pie854, Sep 28, 2024, 1:20 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
388 posts
#61 • 2 Y
Y by ubermensch, cubres
$x = 1$ and any prime work, and if $p = 2$, then $x = 2$, so assume $x \neq 1$, and $p$ is odd. Clearly, $(p - 1)^x + 1$ is odd, so $x$ must be odd as well. Consider the smallest prime divisor, $q$ (which is odd), of $x$, then $q \mid (p - 1)^x + 1 \implies (p - 1)^{2x} \equiv 1\mod{q} \implies \text{ord}_q(p - 1) \mid \gcd(2x, q - 1) = 2$. Note that $\text{ord}_q(p - 1) \neq 1 \implies \text{ord}_q(p - 1) = 2 \implies q \mid p - 1 + 1 = p \implies q = p$. So, $p \mid x$.

We have $(p - 1)v_p(x) \leq v_p((p - 1)^x + 1) = 1 + v_p(x)$, and since $v_p(x) = 1$, $p - 1 \leq 2 \implies p = 3$. Just checking gives only $x = 3$ works, 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.
eibc
600 posts
#63 • 1 Y
Y by cubres
The only answers are $(x, p) = (2, 2), (3, 3)$, and $(1, p)$ for any prime $p$. It's easy to verify all of these solutions work, so now we show they are the only ones.

When $p = 2$, we have $x \mid 2$, so $x = 1$, or $x = 2$.

When $p = 3$, by IMO 1990/3, the only answers are $(x, p) = (1, 3)$ and $(3, 3)$.

When $p > 3$, if $x = 1$ then evidently $x^{p-1} \mid (p-1)^{x}+1$. If $x > 1$, suppose $q$ is the smallest prime factor of $x$. Note that $(p - 1)^x + 1$ is odd, so $q > 2$. Since $(p - 1)^x \equiv -1 \pmod p$, we find that $(p - 1)^{2x} \equiv 1 \pmod q$ so $\text{ord}_q(p - 1) \mid 2x$. Because $\text{ord}_q(p - 1) \le q - 1$, we must have $\text{ord}_q(p - 1) \in \{1, 2\}$.

If $\text{ord}_q(p - 1) = 1$ then $p - 1 \equiv 1 \pmod q$. Thus $0 \equiv (p - 1)^x + 1 \equiv 2 \pmod q$, so $q = 2$, which is impossible.

If $\text{ord}_q(p - 1) = 2$ then $p - 1 \equiv -1 \pmod q$, or $p \equiv 0 \pmod q$, so $p = q$. Then from LTE, we find that
$$(p - 1)\nu_p(x) = \nu_p(x^{p - 1}) \le \nu_p((p - 1)^x + 1) = \nu_p(p) + \nu_p(x) = 1 + \nu_p(x).$$However, because $p > 3$ and $\nu_p(x) > 1$, this is impossible. 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.
smileapple
1010 posts
#64 • 1 Y
Y by cubres
If $p\ge3$, note that $x$ must be odd. Then $\nu_p(x^{p-1})=(p-1)\nu_p(x)$ and $\nu_p((p-1)^x+1)=\nu_p(p)+\nu_p(x)=\nu_p(x)+1$. Hence $(p-2)\nu_p(x)\le1$, so that either $p=3$ or $\nu_p(x)=0$. In the first case, by 90IMO3 the only solutions are $(x,p)=(1,3)$ and $(x,p)=(3,3)$.

Otherwise, Let $q$ be the minimal prime divisor of $x$. We have $(p-1)^{2x}\equiv1\pmod q$ and $(p-1)^{(q-1)}\equiv1\pmod q$, so that $(p-1)^2\equiv(p-1)^{\gcd(2x,q-1)}\equiv1\pmod q$, so that $p\equiv2\pmod q$. But then $(p-1)^x+1\equiv2\pmod q$ and $x^{p-1}\equiv0\pmod q$, which is a contradiction as $p$ is odd. Thus $q$ cannot exist, so that $x=1$.

If $p=2$ then $x=1$ or $x=2$ both work.

Our solution set is thus $\boxed{\{(2,2),(3,3)\}\cup\{(1,p)\mid p\in\mathbb{P}\}}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
589 posts
#65
Y by
We claim that the only pairs of solutions $(x,p)$ are $(1,p)$ for any prime $p$, $(2,2)$ and $(3,3)$. It is easy to check that all of these indeed work. We now show that they are the only ones.

First note that, if $p=2$ the resulting condition is $x \mid 2$ which is only possible if $x=1$ or $x=2$. If $p$ is odd, the right hand side is clearly odd as well, so $x$ must be odd. Further, if $x=1$ then it is clear that $p$ can be an arbitrary prime. Thus, in what follows we assume that $x>1$ is even and that $p$ is an odd prime. We first show the following claim.

Claim : For all pairs of solutions $(x,p)$ we must have $p \mid x$.

Proof : Let $q$ denote the smallest prime divisor of $x$. Then,
\[q\mid x^{p-1} \mid (p-1)^x +1 \]implies $(p-1)^{2x} \equiv 1 \pmod{q}$. Thus, $\text{ord}_{q}(p-1) \mid 2x$. Also, $\text{ord}_{q}(p-1) \mid q-1$. But then, if there exists an odd prime divisor $r \mid \text{ord}_q(p-1)$ then $r \mid 2x$ so $r\mid x$ and also $r \mid q-1$. Thus, $r \le q-1 <q$ which contradicts the minimality of $q$. Thus, $\text{ord}_{q}(p-1)$ is a perfect power of two. However, since $x$ is odd $\nu_2(2x)=1$ so $\text{ord}_{q}(p-1)=2$. This means, $(p-1)^2 \equiv 1 \pmod{q}$ and thus,
\[0 \equiv (p-1)^x +1 \equiv (p-1)+1 \equiv p \pmod{q}\]which is possible if and only if $p=q$ as desired.

Now note that by Lifting the Exponent Lemma we have,
\[(p-1)\nu_p(x) = \nu_p(x^{p-1}) \le \nu_p((p-1)^x+1) =\nu_p(p)+\nu_p(x)=\nu_p(x)+1 \]However, if $p>3$,
\[(p-1)\nu_p(x) > 2\nu_p(x) \ge \nu_p(x)+1\]which is a clear contradiction. Thus, we must have $p=3$ which reduces the desired divisibility to
\[x^2 \mid 2^x +1\]whose solutions are known to be $x=1$ and $x=3$ by IMO 1990/3 which finishes the proof.
Z K Y
N Quick Reply
G
H
=
a