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
Beautiful problem
luutrongphuc   11
N a few seconds ago by whwlqkd
Let triangle $ABC$ be circumscribed about circle $(I)$, and let $H$ be the orthocenter of $\triangle ABC$. The circle $(I)$ touches line $BC$ at $D$. The tangent to the circle $(BHC)$ at $H$ meets $BC$ at $S$. Let $J$ be the midpoint of $HI$, and let the line $DJ$ meet $(I)$ again at $X$. The tangent to $(I)$ parallel to $BC$ meets the line $AX$ at $T$. Prove that $ST$ is tangent to $(I)$.
11 replies
luutrongphuc
Apr 4, 2025
whwlqkd
a few seconds ago
Vector geometry with unusual points
Ciobi_   1
N a few seconds ago by ericdimc
Source: Romania NMO 2025 9.2
Let $\triangle ABC$ be an acute-angled triangle, with circumcenter $O$, circumradius $R$ and orthocenter $H$. Let $A_1$ be a point on $BC$ such that $A_1H+A_1O=R$. Define $B_1$ and $C_1$ similarly.
If $\overrightarrow{AA_1} + \overrightarrow{BB_1} + \overrightarrow{CC_1} = \overrightarrow{0}$, prove that $\triangle ABC$ is equilateral.
1 reply
Ciobi_
Apr 2, 2025
ericdimc
a few seconds ago
Collinearity with orthocenter
Retemoeg   9
N 13 minutes ago by X.Luser
Source: Own?
Given scalene triangle $ABC$ with circumcenter $(O)$. Let $H$ be a point on $(BOC)$ such that $\angle AOH = 90^{\circ}$. Denote $N$ the point on $(O)$ satisfying $AN \parallel BC$. If $L$ is the projection of $H$ onto $BC$, show that $LN$ passes through the orthocenter of $\triangle ABC$.
9 replies
+1 w
Retemoeg
Mar 30, 2025
X.Luser
13 minutes ago
Parallel Lines and Q Point
taptya17   14
N 35 minutes ago by Haris1
Source: India EGMO TST 2025 Day 1 P3
Let $\Delta ABC$ be an acute angled scalene triangle with circumcircle $\omega$. Let $O$ and $H$ be the circumcenter and orthocenter of $\Delta ABC,$ respectively. Let $E,F$ and $Q$ be points on segments $AB,AC$ and $\omega$, respectively, such that
$$\angle BHE=\angle CHF=\angle AQH=90^\circ.$$Prove that $OQ$ and $AH$ intersect on the circumcircle of $\Delta AEF$.

Proposed by Antareep Nath
14 replies
taptya17
Dec 13, 2024
Haris1
35 minutes ago
The last nonzero digit of factorials
Tintarn   4
N 42 minutes ago by Sadigly
Source: Bundeswettbewerb Mathematik 2025, Round 1 - Problem 2
For each integer $n \ge 2$ we consider the last digit different from zero in the decimal expansion of $n!$. The infinite sequence of these digits starts with $2,6,4,2,2$. Determine all digits which occur at least once in this sequence, and show that each of those digits occurs in fact infinitely often.
4 replies
Tintarn
Mar 17, 2025
Sadigly
42 minutes ago
P2 Geo that most of contestants died
AlephG_64   2
N 44 minutes ago by Tsikaloudakis
Source: 2025 Finals Portuguese Mathematical Olympiad P2
Let $ABCD$ be a quadrilateral such that $\angle A$ and $\angle D$ are acute and $\overline{AB} = \overline{BC} = \overline{CD}$. Suppose that $\angle BDA = 30^\circ$, prove that $\angle DAC= 30^\circ$.
2 replies
AlephG_64
Yesterday at 1:23 PM
Tsikaloudakis
44 minutes ago
Geometry
youochange   0
an hour ago
m:}
Let $\triangle ABC$ be a triangle inscribed in a circle, where the tangents to the circle at points $B$ and $C$ intersect at the point $P$. Let $M$ be a point on the arc $AC$ (not containing $B$) such that $M \neq A$ and $M \neq C$. Let the lines $BC$ and $AM$ intersect at point $K$. Let $P'$ be the reflection of $P$ with respect to the line $AM$. The lines $AP'$ and $PM$ intersect at point $Q$, and $PM$ intersects the circumcircle of $\triangle ABC$ again at point $N$.

Prove that the point $Q$ lies on the circumcircle of $\triangle ANK$.
0 replies
youochange
an hour ago
0 replies
comp. geo starting with a 90-75-15 triangle. <APB =<CPQ, <BQA =<CQP.
parmenides51   1
N an hour ago by Mathzeus1024
Source: 2013 Cuba 2.9
Let ABC be a triangle with $\angle A = 90^o$, $\angle B = 75^o$, and $AB = 2$. Points $P$ and $Q$ of the sides $AC$ and $BC$ respectively, are such that $\angle APB =  \angle CPQ$ and $\angle BQA = \angle CQP$. Calculate the lenght of $QA$.
1 reply
parmenides51
Sep 20, 2024
Mathzeus1024
an hour ago
Fridolin just can't get enough from jumping on the number line
Tintarn   2
N an hour ago by Sadigly
Source: Bundeswettbewerb Mathematik 2025, Round 1 - Problem 1
Fridolin the frog jumps on the number line: He starts at $0$, then jumps in some order on each of the numbers $1,2,\dots,9$ exactly once and finally returns with his last jump to $0$. Can the total distance he travelled with these $10$ jumps be a) $20$, b) $25$?
2 replies
Tintarn
Mar 17, 2025
Sadigly
an hour ago
Geometry
Captainscrubz   2
N an hour ago by MrdiuryPeter
Source: Own
Let $D$ be any point on side $BC$ of $\triangle ABC$ .Let $E$ and $F$ be points on $AB$ and $AC$ such that $EB=ED$ and $FD=FC$ respectively. Prove that the locus of circumcenter of $(DEF)$ is a line.
Prove without using moving points :D
2 replies
Captainscrubz
3 hours ago
MrdiuryPeter
an hour ago
inequality ( 4 var
SunnyEvan   4
N an hour ago by SunnyEvan
Let $ a,b,c,d \in R $ , such that $ a+b+c+d=4 . $ Prove that :
$$ a^4+b^4+c^4+d^4+3 \geq \frac{7}{4}(a^3+b^3+c^3+d^3) $$$$ a^4+b^4+c^4+d^4+ \frac{252}{25} \geq \frac{88}{25}(a^3+b^3+c^3+d^3) $$equality cases : ?
4 replies
SunnyEvan
Apr 4, 2025
SunnyEvan
an hour ago
Find the constant
JK1603JK   1
N an hour ago by Quantum-Phantom
Source: unknown
Find all $k$ such that $$\left(a^{3}+b^{3}+c^{3}-3abc\right)^{2}-\left[a^{3}+b^{3}+c^{3}+3abc-ab(a+b)-bc(b+c)-ca(c+a)\right]^{2}\ge 2k\cdot(a-b)^{2}(b-c)^{2}(c-a)^{2}$$forall $a,b,c\ge 0.$
1 reply
JK1603JK
5 hours ago
Quantum-Phantom
an hour ago
2025 - Turkmenistan National Math Olympiad
A_E_R   4
N an hour ago by NODIRKHON_UZ
Source: Turkmenistan Math Olympiad - 2025
Let k,m,n>=2 positive integers and GCD(m,n)=1, Prove that the equation has infinitely many solutions in distict positive integers: x_1^m+x_2^m+⋯x_k^m=x_(k+1)^n
4 replies
A_E_R
2 hours ago
NODIRKHON_UZ
an hour ago
hard problem
Cobedangiu   15
N 2 hours ago by Nguyenhuyen_AG
problem
15 replies
Cobedangiu
Mar 27, 2025
Nguyenhuyen_AG
2 hours ago
NT Functional with factorial and exponent
plagueis   18
N Apr 1, 2025 by alexanderhamilton124
Source: Mexican Quarantine Mathematical Olympiad P5
Let $\mathbb{N} = \{1, 2, 3, \dots \}$ be the set of positive integers. Find all functions $f:\mathbb{N}\rightarrow \mathbb{N}$, such that for all positive integers $n$ and prime numbers $p$:
$$p \mid f(n)f(p-1)!+n^{f(p)}.$$
Proposed by Dorlir Ahmeti
18 replies
plagueis
Apr 26, 2020
alexanderhamilton124
Apr 1, 2025
NT Functional with factorial and exponent
G H J
G H BBookmark kLocked kLocked NReply
Source: Mexican Quarantine Mathematical Olympiad P5
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
plagueis
157 posts
#1 • 3 Y
Y by Math-wiz, Kingsbane2139, AlexCenteno2007
Let $\mathbb{N} = \{1, 2, 3, \dots \}$ be the set of positive integers. Find all functions $f:\mathbb{N}\rightarrow \mathbb{N}$, such that for all positive integers $n$ and prime numbers $p$:
$$p \mid f(n)f(p-1)!+n^{f(p)}.$$
Proposed by Dorlir Ahmeti
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_pi_rate
1218 posts
#2 • 4 Y
Y by Math-wiz, amar_04, Pluto1708, Isluna
Nice and easy! Here's my solution: The only such function is the identity function, which can be easily seen to work using Wilson's Theorem and FLT. Now we show that this is the only solution. Suppose $f(1)>1$. Then there exists a prime $p$ dividing $f(1)$. But this gives $$0 \equiv f(1) \cdot f(p-1)! \equiv -1 \pmod{p}$$which is impossible. So we have $f(1)=1$. Then for $n=1$, we get $$f(p-1)! \equiv -1 \pmod{p}$$Thus, we can rewrite the given condition as $$P(n,p) := f(n) \equiv n^{f(p)} \pmod{p} \quad \forall n \in \mathbb{N},p \in \mathbb{P}$$Now, if some prime $q \neq p$ divides $f(p)$, then we have $$P(p,q) \Rightarrow 0 \equiv f(p) \equiv p^{f(q)} \pmod{q}$$which cannot happen for distinct primes $p,q$. This means that $f(p)$ is a power of $p$ for all primes. But this gives $$f(p) \equiv 1 \pmod{p-1} \Rightarrow n^{f(p)} \equiv n \pmod{p}$$Using $P(n,p)$ we get that $p \mid f(n)-n$ for all $p \in \mathbb{P}$. This can only happen if $f(n)=n$, as desired. $\blacksquare$
This post has been edited 2 times. Last edited by math_pi_rate, Apr 26, 2020, 3:40 PM
Reason: $\Rightarrow$ instead of $\rightarrow$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Functional_equation
530 posts
#3 • 1 Y
Y by AlexCenteno2007
Woow,nice problem!
Claim 1:
$ p-1\geq f(p-1) $
Proof:
$ P(1,p)\implies p|f(1)f(p-1)!+1\implies p\nmid f(p-1)! $
$ Then $
$ p-1\geq f(p-1) $
Claim 2:
$ p|f(pk) $
Proof:
$ P(pk,p)\implies p|f(pk)f(p-1)!+(pk)^{f(p)} $
$ Then $
$ p|f(pk) $
Claim 3:
$ n-odd\implies f(n)-odd $
$ n-even\implies f(n)-even $
Proof:
$ p-1\geq f(p-1) $
$ p=2\implies 1\geq f(1)\implies f(1)=1 $
$ p=3\implies 2\geq f(2),2|f(2)\implies f(2)=2 $

$ P(n,2)\implies 2|f(n)f(1)!+n^{f(2)}\implies 2|n^2+f(n) $
$ Then $
$ n-odd\implies f(n)-odd $
$ n-even\implies f(n)-even $
Claim 4:
$ f(p-1)\geq p-1 $
Proof:
$ p>2\implies f(p)-odd $
$ P(p-1,p)\implies p|f(p-1)f(p-1)!+(p-1)^{f(p)} $
$ f(p)-odd\implies p|f(p-1)f(p-1)!-1 $
$ P(1,p)\implies p|f(p-1)!+1 $
$ Then $
$ p|f(p-1)f(p-1)!-1+f(p-1)!+1\implies p|f(p-1)+1 $
$ Then $
$ f(p-1)+1\geq p\implies f(p-1)\geq p-1 $
Claim 5:
$ f(p-1)=p-1 $
Proof:
$ p-1\geq f(p-1),f(p-1)\geq p-1\implies f(p-1)=p-1 $
Claim 6:
$ p-1|f(p)-1 $ $ or $ $ f(p)-1|p-1 $
Proof:
$ P(n,p)\implies p|f(n)(p-1)!+n^{f(p)} $
$ And $
$ (p-1)!\equiv -1 (mod p) $
$ Then $
$ p|n^{f(p)}-f(n) $
$ P(2,p)\implies p|f(2)f(p-1)!+2^{f(p)} $
$ Then $
$ p|2^{f(p)-1}-1 $
$ Then $(Order and Fermat theorem)
$ p-1|f(p)-1 $ $ or $ $ f(p)-1|p-1 $
Case 1:
$ f(p)-1|p-1\implies p\geq f(p) $
$ Claim2\implies f(p)\geq p $
$ Then $
$ f(p)=p $
$ Then $
$ p|n^{p}-f(n)\implies p|n-f(n) $
$ p-biggest\implies n=f(n) $
Case 2:
$ p-1|f(p)-1\implies f(p)\equiv 1(mod p) $
$ Then\implies Fermat $
$ n^{f(p)}-f(n)\equiv n-f(n)(mod p) $
$ p-biggest\implies n=f(n) $
This post has been edited 2 times. Last edited by Functional_equation, Apr 26, 2020, 4:21 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IndoMathXdZ
691 posts
#4 • 3 Y
Y by Mathological03, GorgonMathDota, Sugiyem
Good practice on Function Divisibility!
The only function is $f(n) = n$, which truly satisfied by Wilson and Fermat Little Theorem. We'll prove that this is the only function.
Let $P(n,p)$ be the assertion of $n,p$ to the given functional equation.
Claim 01. $f(p - 1) \le p - 1$.
Proof. Suppose otherwise, then $f(p - 1) \ge p$, forcing $p | n^{f(p)}$ for all $n$, which is not true.

Claim 02. $f(p)$ is a power of $p$.
Proof. $P(1,p)$ gives us $f(p - 1)! \equiv -1 \ (\text{mod} \ p)$. Therefore, we have the equivalent assertion of
\[ n^{f(p)} \equiv f(n) \ (\text{mod} \ p) \]Now, let $p$ be a prime divisor of $n$, then we have $p | f(n)$, or generally $\text{rad}(n) | f(n)$ for all $n$.
Now, suppose that there exists another prime number $q \not= p$ dividing $f(p)$. Therefore,
\[ 0 \equiv f(p) \equiv p^{f(q)} \ (\text{mod} \ q) \]forcing $q | p$, or $q = p$.
Therefore, $f(p)$ is a power of $p$.
Let $f(p) = p^k$. Therefore, since $p - 1 | f(p) - 1 $, which means
\[ p | n - f(n) \]for all $n,p$. Take $p$ sufficiently large forces $f(n) = n$ for all $n \in \mathbb{N}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathological03
254 posts
#5
Y by
Isn't Dangerousliri from Albania? How come could he propose to a Mexican contest.
This post has been edited 1 time. Last edited by Mathological03, Apr 26, 2020, 6:28 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dangerousliri
925 posts
#6 • 2 Y
Y by plagueis, Alireza_Amiri
Mathological03 wrote:
Isn't Dangerousliri from Albania? How come could he propose to a Mexican contest.

Actually I'm from Kosovo and we are close with Albania. One friend from Mexico did ask me if I have a problem for the contest, since they were missing some good number theory, so I did create this problem especially for him. Also the geometry problem they were missing some easy problem. They did have but even there were to easy or a bit hard for problem 1. So I did remember that I had one problem that I did save it so then I did propose it and it was perfect for problem 1.
This post has been edited 1 time. Last edited by dangerousliri, Apr 26, 2020, 6:49 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Al3jandro0000
804 posts
#8
Y by
Mathological03 wrote:
Isn't Dangerousliri from Albania? How come could he propose to a Mexican contest.

Maybe he's Mexican in secret.
Let $P (n) $ be the assertion $p\mid f (n)f (p-1)!+n^{f (p)} $.

$P (n)\implies f (n)f (p-1)!\equiv -n^{f (p)}\mod p $ so it follows the set of primes of $f (n) $ are the same of $n $ i.e since $1$ has no primes divisors we must have $f (1)=1$ so $f (p-1)!\equiv -1\mod p$.

$P (p-1)\implies f (p-1)\equiv (-1)^{f(p)} $ but since $f (p)=p^k $ we must have $p\mid f (p-1)+1$ for any prime. But since $f (p-1)<p $ it follows $f (p-1)=p-1$.

(We can use directly $FLT $ but this approach is achieved above)

Assume $f (x_1)=f (x_2) $ for some $x_1\neq x_2$ so
$P (x_1)~\text {and}~P (x_2)\implies f (x_1)\equiv x_1^{f (p)}\equiv x_2^{f(p)}\mod p $ so $x_1=x_2$ contradiction.

Now assume assume for a $k $ it follows $f (k)>f(m):\forall~1\le m<k $. So $P (k+1)\implies f (k+1)-f (m)\equiv (k+1)^{f (p)}-m^{f (p)}\mod p $. So $f (k+1)>f (k) $.

For any large $p $ we always we have a bounded, so from $f (p-1)>\cdots>f (1) $ we always we obtain $f (n)=n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dangerousliri
925 posts
#9
Y by
Al3jandro0000 wrote:
Mathological03 wrote:
Isn't Dangerousliri from Albania? How come could he propose to a Mexican contest.

Maybe he's Mexican in secret.

No I'm not, I explained above.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_pi_rate
1218 posts
#10 • 1 Y
Y by amar_04
Al3jandro0000 wrote:
Let $P (n) $ be the assertion $p\mid f (n)f (p-1)!+n^{f (p)} $.

$P (n)\implies f (n)f (p-1)!\equiv -n^{f (p)}\mod p $ so it follows the set of primes of $f (n) $ are the same of $n $

That's not true. In particular, it might be possible that some prime divisor of $n$ divides $f(p-1)!$ instead of $f(n)$. You will have to first show that $f(p-1)! \equiv -1 \pmod{p}$, and then conclude this.
Functional_equation wrote:
Claim 6:
$ p-1|f(p)-1 $ $ or $ $ f(p)-1|p-1 $
Proof:
$ P(n,p)\implies p|f(n)(p-1)!+n^{f(p)} $
$ And $
$ (p-1)!\equiv -1 (mod p) $
$ Then $
$ p|n^{f(p)}-f(n) $
$ P(2,p)\implies p|f(2)f(p-1)!+2^{f(p)} $
$ Then $
$ p|2^{f(p)-1}-1 $
$ Then $(Order and Fermat theorem)
$ p-1|f(p)-1 $ $ or $ $ f(p)-1|p-1 $

The last line is untrue. For eg. $2^9 \equiv 1 \pmod{7}$, but $9 \nmid 6$ and $6 \nmid 9$.
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
#11
Y by
isn't this too easy for P5 :blush:
let $P(n,p) $ the assertion $p \mid f(n)f(p-1)!+n^{f(p)}.$

claim(1):$f(1)=1$
proof:
suppose $f(1)>1 \implies 2|f(1)!$ but $P(1,2) \implies 2|f(1)f(1)!+1 \implies f(1)! $ is odd
contradiction $\blacksquare$
$P(1,p) \implies p|f(p-1)!+1$
now if $p|f(n) $ we have $p|n $
so $f(p)=p^a$
but we have $n^{f(p)} \equiv n^{p^a}\equiv n \bmod p$
so $p|f(n)-n \forall n \in \mathbb{N}$ take $p \rightarrow \infty  \implies $ $$f(n)=n \forall n \in \mathbb{N}$$and we win :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hydo2332
435 posts
#12
Y by
Just another way to end it. We use Dirichlet theorem. Let $g$ be a primitive root modulo $p$. After we prove that the original equation is equivalent to $p | n^{f(p)} - f(n)$. We know that $f(p-1) = p-1$ after what @above did. Now by dirichlet we know that exists a prime number such that $g + 1 + kp = q$

By the divisibility $p |  (g + kp)^{f(p)} - (g + kp)$, and we have that $g^{f(p)} \equiv g$ modulo $p$. As $p| f(p)$, we have that $f(p) =p$.

Now $p | n - f(n)$ for all $p$ prime, and now $f(n) = n$, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EulersTurban
386 posts
#13
Y by
The only answer is $f(n)=n$, for every natural $n$.

First we notice that if $f(p-1) \geq p$, then we must have that $n^{f(p)} \equiv 0 \; \pmod{p}$, for every $n$, but this isn't obviously true for every $n$.
Thus we must have that $f(p-1) < p$.
Thus we conclude that $f(1)=1$.

Now we must have that:
$$p \mid f(p-1)!+1$$thus by Wilson's theorem we must have that $f(p-1)=p-1$.

By setting $n=p$, we must have that $p \mid f(p)$.

Now choose $n=q-1$, where $q$ is a prime number and $(q-1,p)=1$.
This clearly gives us:
$$(q-1)^{f(p)-1} \equiv 1  \pmod{p}$$this implies that $p-1 \mid f(p)-1$.

Combining this with $p\mid f(p)$, we must have that $f(p)-p=g(p)p(p-1)$, where $g$ is a function from the naturals to itself.
This gives us that $f(p)=p(t(p)(p-1)+1)$.

Now set $n=q$, where $q$ is a prime number different from $p$ and $(q-1,p)=1$.
Then we easily get the relation:
$$(p-1)!t(q)q(q-1) \equiv 0 \pmod{p}$$Since we have a lot of choices for $p$, this gives us that $t(q)=0$.
Thus we have that $f(p)=p$.

With that in mind we have that:
$$f(n) \equiv n \pmod{p}$$Now just choose a prime number $p$ s.t. $p > f(n)$, thus giving us $f(n)=n$, for every natural $n$.
This post has been edited 1 time. Last edited by EulersTurban, Mar 26, 2021, 7:11 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rama1728
800 posts
#14
Y by
plagueis wrote:
Let $\mathbb{N} = \{1, 2, 3, \dots \}$ be the set of positive integers. Find all functions $f:\mathbb{N}\rightarrow \mathbb{N}$, such that for all positive integers $n$ and prime numbers $p$:
$$p \mid f(n)f(p-1)!+n^{f(p)}.$$
Proposed by Dorlir Ahmeti

Cute, but very easy.

Let \(P(p,n)\) denote the assertion of the functional equation. \(P(2,1)\) gives us that \(f(1)f(1)!\) is odd, so \(f(1)=1\). \(P(p,1)\) then gives us that \[(p-1)!+1\mid f(p-1)!+1\]and so \(f(p-1)!\geq(p-1)!\). Assume that \(f(p-1)>p-1\). Then, \(p\mid f(p-1)!\), so the original functional equation becomes \[p\mid n^{f(p)}\]Choosing \(n\) coprime to \(p\) gives a contradiction. Therefore \(f(p-1)=p-1\) for all primes \(p\). Therefore, the divisibility condition gives us that \[p\mid n^{f(p)}-f(n)\]due to Wilson. Therefore, the divisibility is reduced to \[p\mid n-f(n)\]for all primes \(p\) and all positive integers \(n\). Fixing \(n\) and varying \(p\) gives us that \(f(n)=n\) for all \(n\in\mathbb{N}\).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sanyalarnab
929 posts
#15
Y by
Quite dangerous for me!
Here $p$ is a prime throughout the solution.
Let $d(p,n)$ be the given assertion.
Claim: $f(1)=1$
Proof: Assume $f(1) \ge 2$. So there exists a prime $p_0$ s.t. $p_0 \mid f(1)$.
Then $d(p_0,1) \implies p_0 \mid f(1)f(p-1)!+1$
$\implies p_0 \mid 1$ which is a contradiction. Hence $f(1)=1$
Thus we get $p \mid f(p-1)!+1$
So new $d(p,n)$ is $p \mid n^{f(p)}-f(n)$
Claim: $p \mid f(p)$
Proof: $d(p,p) \implies p \mid p^{f(p)}-f(p) \implies p \mid f(p)$
Claim: $f(p)=p^m$ where $m\in\mathbb{N}$
Proof: Assume FTSOC that there exists a prime $q$(different from $p$) such that $q \mid f(p)$.
Then $d(q,p) \implies q \mid p^{f(p)}-f(p) \implies q \mid p$ which is a contradiction. So by the fundamental theorem of numbers, $f(p)=p^m$.
Hence, $$n^{f(p)} \equiv n^{f(p) (\mod (p-1))} \equiv n^1 (\mod p)$$$$\implies p \mid n^{f(p)}-n$$So $d(p,n) \implies p \mid f(n)-n$
So the number $f(n)-n$ has infinitely many divisors which implies $f(n)-n=0 \implies \boxed{f(n)=n}$ is the only solution. $\blacksquare$
This post has been edited 2 times. Last edited by sanyalarnab, Oct 25, 2021, 3:51 PM
Reason: :)
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
#16
Y by
Primitive root of $p$ and Drichlet theorem
This post has been edited 1 time. Last edited by lazizbek42, Dec 27, 2021, 12:09 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
F10tothepowerof34
195 posts
#18
Y by
Let $P(n,p)$ denote $p\mid f(n)f(p-1)!+n^{f(p)}$

$P(1,2)$ yields $2\mid f(1)f(1)!+1\Longleftrightarrow f(1)f(1)!\equiv 1\pmod 2$, however notice that if $f(1)\ge2$, we obtain $f(1)!\equiv 0\pmod 2$ which is a contradiction.
Thus $f(1)=1$

$P(1,p)$ yields $p\mid f(1)f(p-1)!+1\Longrightarrow p\mid f(p-1)!+1\Longleftrightarrow f(p-1)!\equiv -1\pmod p$
Therefore the original assertion transforms into $p\mid n^{f(p)}-f(n):=Q(n,p)$

Furthermore $P(p,p)$ yields $p\mid f(p)f(p-1)!+p^{f(p)}$ moreover since $p\mid p^{f(p)}$, $p$ must also divide $f(p)f(p-1)!, p\mid f(p)f(p-1)!\Longleftrightarrow f(p)f(p-1)!\equiv 0\pmod p$, however notice that $f(p)f(p-1)!\equiv -f(p)\pmod p$ thus $f(p)\equiv 0\pmod p\Longrightarrow p\mid f(p)$

Now, $FTSOC$ assume $\exists q\text{ such that it is a prime and }q\neq p\text{ and }q\mid f(p)$
Therefore from $P(p,q)$ we obtain $q\mid f(p)f(q-1)!+p^{f(q)}\Longrightarrow q\mid p^{f(q)}\Longrightarrow q\mid p$ which is clearly a contradiction. Thus $f(p)$ doesn't have distinct prime factors, therefore $f(p)=p^a$ for some $a\in\mathbb{Z}^+$

Now the assertion $Q(n,p)$ transforms into $p\mid n^{p^a}-f(n)$, however notice that $n^{p^a}\equiv n\pmod p$ thus $n^{p^a}-f(n)\equiv n-f(n)\equiv 0\pmod p$ which forces $f(n)=n, \forall n\in\mathbb{N}$

In conclusion $\boxed{f(n)=n, \forall n\in\mathbb{N}}$ $\blacksquare$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Jupiterballs
35 posts
#19
Y by
Looked like a monster, but was certainly easy :)
Here's my solution.
Attachments:
Mexico Quarantine Math Oly P5.pdf (29kb)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
569 posts
#20
Y by
Pretty straightforward and standard but still not easy per se. The answer is $f(n) = n$ for all $n\in \mathbb{N}$. It’s easy to see that these functions satisfy the given equation. We now show these are the only solutions. Let $P(n,p)$ denote the assertion that \[p \mid f(n)f(p-1)!+n^{f(p)}\]for a prime $p$ and natural number $n$.

First note that $P(1,2)$ implies $2\mid f(1)f(1)!+1$ which is impossible if $f(1)\ge 2$ so we must have $f(1)=1$.

Claim : We have $f(p-1)=p-1$ for all odd primes $p$.

Proof : Consider an odd prime $p$. Note $P(1,p)$ implies
\[p \mid f(1)f(p-1)!+1^{f(p)}=f(p-1)!+1\]Thus, $f(p-1)! \equiv -1 \pmod{p}$ and in particular we must have $f(p-1)<p$. Next, $P(p-1,p)$ yeilds
\[p\mid f(p-1)f(p-1)!+(p-1)^{f(p)} \equiv -f(p-1)+(-1)^{f(p)}\]which implies that $f(p-1) \equiv 1 \pmod{p}$ or $f(p-1) \equiv -1 \pmod{p}$. However, since $f(p-1)<p$ this implies $f(p-1) \in \{1,p-1\}$ of which the first is impossible since $f(p-1)! \equiv -1 \pmod{p}$. Thus, $f(p-1)=p-1$ for all primes $p$ as desired.

Claim : We have $f(p)=k_p(p-1)+1$ for some positive integer $k_p$ for each odd prime $p$.

Proof : Let $g$ be a primitive root $\pmod{p}$. By Dirichlet's Theorem we have that there exists some prime $q$ such that $q-1 \equiv g \pmod{p}$. But then, $P(q-1,p)$ implies
\[p\mid f(q-1)f(p-1)!+(q-1)^{f(p)} \equiv (q-1)^{f(p)}-(q-1) \equiv g(g^{f(p)-1}-1)\]This implies that $p-1 \mid f(p)-1$ which implies that $f(p)=k_p(p-1)+1$ for some positive integer $k_p$ as claimed.

Now,
\[p\mid f(n)f(p-1)! + n^{f(p)} \equiv n^{k_p(p-1)+1}-f(n) \equiv n-f(n)\]which implies that $p \mid n-f(n)$ for all odd primes $p$. But, this immediately implies that $f(n)-n=0$ and thus $f(n)=n$ for all positive integers $n$ as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
384 posts
#21 • 1 Y
Y by L13832
Note that if $f(p - 1) \geq p$ for any $p$, consider $p \nmid n$, and it fails. Hence, $f(p - 1) < p \implies f(1) < 2 \implies f(1) = 1$. Taking $n = 1$, we have $f(p - 1)! \equiv -1\mod{p} \implies p \mid n^{f(p)} - f(n)$.

This means that $q \mid f(n) \Leftrightarrow q \mid n$. Consider $n = r$, where $r$ is a prime. This means that $f(r)$ is a power of $r$, for all primes. Consider $r > f(n) + n$ for any positive integer $n$. We have $r \mid n^{f(r)} - f(n)$. Note that $n^{f(r)} \equiv n \mod{r} \implies r \mid n - f(n) \implies f(n) = n$. We are done.
Z K Y
N Quick Reply
G
H
=
a