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

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

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

Summer camps are starting next month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have an enriching summer experience. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following upcoming events:
[list][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

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

Prealgebra 2 Self-Paced

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

Introduction to Algebra A Self-Paced

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

Introduction to Counting & Probability Self-Paced

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

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

Introduction to Algebra B Self-Paced

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

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

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

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

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

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

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

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

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

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

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

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

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

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

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

AMC 12 Final Fives
Sunday, May 18 - Jun 15

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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

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


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

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

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

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

Physics

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

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

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

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


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


More specifically:

For new threads:


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

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


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

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


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


For answers to already existing threads:


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

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



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


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

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
incircle and excircles
micliva   5
N a minute ago by Double07
Source: 2013 All-Russian Olympiad Final Round Grade 10 Day 2 P7
The incircle of triangle $ ABC $ has centre $I$ and touches the sides $ BC $, $ CA $, $ AB $ at points $ A_1 $, $ B_1 $, $ C_1 $, respectively. Let $ I_a $, $ I_b $, $ I_c $ be excentres of triangle $ ABC $, touching the sides $ BC $, $ CA $, $ AB $ respectively. The segments $ I_aB_1 $ and $ I_bA_1 $ intersect at $ C_2 $. Similarly, segments $ I_bC_1 $ and $ I_cB_1 $ intersect at $ A_2 $, and the segments $ I_cA_1 $ and $ I_aC_1 $ at $ B_2 $. Prove that $ I $ is the center of the circumcircle of the triangle $ A_2B_2C_2 $.

L. Emelyanov, A. Polyansky
5 replies
1 viewing
micliva
May 16, 2014
Double07
a minute ago
4-vars inequality
xytunghoanh   2
N 8 minutes ago by JARP091
For $a,b,c,d \ge 0$ and $a\ge c$, $b \ge d$. Prove that
$$a+b+c+d+ac+bd+8 \ge 2(\sqrt{ab}+\sqrt{bc}+\sqrt{cd}+\sqrt{da}+\sqrt{ac}+\sqrt{bd})$$.
2 replies
xytunghoanh
3 hours ago
JARP091
8 minutes ago
Iranian TST 2019, first exam, day1, problem 2
Hamper.r   14
N 21 minutes ago by bin_sherlo
$a, a_1,a_2,\dots ,a_n$ are natural numbers. We know that for any natural number $k$ which $ak+1$ is square, at least one of $a_1k+1,\dots ,a_n k+1$ is also square.
Prove $a$ is one of $a_1,\dots ,a_n$
Proposed by Mohsen Jamali
14 replies
1 viewing
Hamper.r
Apr 7, 2019
bin_sherlo
21 minutes ago
Symmetric squares wrt centre of 4x4 square add to 17
Goutham   1
N 28 minutes ago by Orange_Quail_9
Numbers $1, 2,\cdots, 16$ are written in a $4\times 4$ square matrix so that the sum of the numbers in every row, every column, and every diagonal is the same and furthermore that the numbers $1$ and $16$ lie in opposite corners. Prove that the sum of any two numbers symmetric with respect to the center of the square equals $17$.
1 reply
Goutham
Dec 6, 2010
Orange_Quail_9
28 minutes ago
Find all p(x) such that p(p) is a power of 2
truongphatt2668   3
N 34 minutes ago by waterbottle432
Source: ???
Find all polynomial $P(x) \in \mathbb{R}[x]$ such that:
$$P(p_i) = 2^{a_i}$$with $p_i$ is an $i$ th prime and $a_i$ is an arbitrary positive integer.
3 replies
truongphatt2668
4 hours ago
waterbottle432
34 minutes ago
functional equation
uaua   4
N 38 minutes ago by jasperE3
f:R--R
f(f(x)+xy) = xf(x) + f(x)
4 replies
uaua
Jan 3, 2023
jasperE3
38 minutes ago
Sixth smallest divisor
sevket12   3
N an hour ago by MITDragon
Source: 2025 Turkey EGMO TST P4
Find all positive integers $n$ such that the number
\[
\frac{3 + \sqrt{4n + 9}}{2}
\]is the sixth smallest positive divisor of $n$.
3 replies
sevket12
Feb 8, 2025
MITDragon
an hour ago
Points on the sides of cyclic quadrilateral satisfy the angle conditions
AlperenINAN   4
N an hour ago by Draq
Source: Turkey JBMO TST 2025 P1
Let $ABCD$ be a cyclic quadrilateral and let the intersection point of lines $AB$ and $CD$ be $E$. Let the points $K$ and $L$ be arbitrary points on sides $CD$ and $AB$ respectively, which satisfy the conditions
$$\angle KAD = \angle KBC \quad \text{and} \quad \angle LDA = \angle LCB.$$Prove that $EK = EL$.
4 replies
AlperenINAN
May 11, 2025
Draq
an hour ago
Angle Relationships in Triangles
steven_zhang123   1
N an hour ago by Double07
In $\triangle ABC$, $AB > AC$. The internal angle bisector of $\angle BAC$ and the external angle bisector of $\angle BAC$ intersect the ray $BC$ at points $D$ and $E$, respectively. Given that $CE - CD = 2AC$, prove that $\angle ACB = 2\angle ABC$.
1 reply
steven_zhang123
Yesterday at 11:09 PM
Double07
an hour ago
IMO 2010 Problem 1
canada   121
N an hour ago by maromex
Find all function $f:\mathbb{R}\rightarrow\mathbb{R}$ such that for all $x,y\in\mathbb{R}$ the following equality holds \[
f(\left\lfloor x\right\rfloor y)=f(x)\left\lfloor f(y)\right\rfloor \] where $\left\lfloor a\right\rfloor $ is greatest integer not greater than $a.$

Proposed by Pierre Bornsztein, France
121 replies
canada
Jul 7, 2010
maromex
an hour ago
Nice original fe
Rayanelba   7
N an hour ago by Rayanelba
Source: Original
Find all functions $f: \mathbb{R}_{>0} \to \mathbb{R}_{>0}$ that verify the following equation :
$P(x,y):f(x+yf(x))+f(f(x))=f(xy)+2x$
7 replies
Rayanelba
5 hours ago
Rayanelba
an hour ago
Israeli Mathematical Olympiad 1995
YanYau   26
N an hour ago by zuat.e
Source: Israeli Mathematical Olympiad 1995
Let $PQ$ be the diameter of semicircle $H$. Circle $O$ is internally tangent to $H$ and tangent to $PQ$ at $C$. Let $A$ be a point on $H$ and $B$ a point on $PQ$ such that $AB\perp PQ$ and is tangent to $O$. Prove that $AC$ bisects $\angle PAB$
26 replies
YanYau
Apr 8, 2016
zuat.e
an hour ago
ARO 2011 11-8
sartt   19
N an hour ago by Double07
Let $N$ be the midpoint of arc $ABC$ of the circumcircle of triangle $ABC$, let $M$ be the midpoint of $AC$ and let $I_1, I_2$ be the incentres of triangles $ABM$ and $CBM$. Prove that points $I_1, I_2, B, N$ lie on a circle.

M. Kungojin
19 replies
sartt
May 3, 2011
Double07
an hour ago
APMO 2017: (ADZ) passes through M
BartSimpsons   78
N 2 hours ago by Ihatecombin
Source: APMO 2017, problem 2
Let $ABC$ be a triangle with $AB < AC$. Let $D$ be the intersection point of the internal bisector of angle $BAC$ and the circumcircle of $ABC$. Let $Z$ be the intersection point of the perpendicular bisector of $AC$ with the external bisector of angle $\angle{BAC}$. Prove that the midpoint of the segment $AB$ lies on the circumcircle of triangle $ADZ$.

Olimpiada de Matemáticas, Nicaragua
78 replies
BartSimpsons
May 14, 2017
Ihatecombin
2 hours ago
IMO Shortlist 2011, Number Theory 3
orl   48
N May 11, 2025 by Markas
Source: IMO Shortlist 2011, Number Theory 3
Let $n \geq 1$ be an odd integer. Determine all functions $f$ from the set of integers to itself, such that for all integers $x$ and $y$ the difference $f(x)-f(y)$ divides $x^n-y^n.$

Proposed by Mihai Baluna, Romania
48 replies
orl
Jul 11, 2012
Markas
May 11, 2025
IMO Shortlist 2011, Number Theory 3
G H J
Source: IMO Shortlist 2011, Number Theory 3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 8 Y
Y by Davi-8191, anantmudgal09, jhu08, Adventure10, Mango247, BorivojeGuzic123, cubres, and 1 other user
Let $n \geq 1$ be an odd integer. Determine all functions $f$ from the set of integers to itself, such that for all integers $x$ and $y$ the difference $f(x)-f(y)$ divides $x^n-y^n.$

Proposed by Mihai Baluna, Romania
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MellowMelon
5850 posts
#2 • 10 Y
Y by theproductof6by9, Anar24, jhu08, Adventure10, BorivojeGuzic123, Newmaths, and 4 other users
We claim there exists a positive integer $d$ dividing $n$, an $a \in \mathbb{Z}$, and an $e \in \{-1,1\}$ such that $f(x) = e \cdot x^d + a$ for all $x$. It can be easily checked that all of these solutions work.

First, notice that if $f(x)$ is a solution, then $f(x) + a$ is a solution for any $a$. So WLOG $f(0) = 0$. Now take $x = 1$, $y = 0$ in the given equation. We get $f(1) \mid 1$, so $f(1) = \pm 1$. If $f(x)$ is a solution, then $-f(x)$ is a solution, so WLOG $f(1) = 1$. We also get $f(-1) \mid 1$ by taking $x = -1$ and $y = 0$. Now take $x = -1$ and $y = 1$. We get $f(-1) - 1 \mid 2$, so $f(-1)$ must be $-1$.

Consider any odd prime $p$. We have $f(p) - f(0) \mid p^n$, so therefore $f(p)$ is either $p^d$ or $-p^d$ for some $d$. First consider the case that $f(p) = -p^d$. We have $f(p) - f(-1) \mid p^n + 1$, so $p^d - 1 \mid p^n + 1$. If we write $n = qd + r$ using the division algorithm, we get $p^d - 1 \mid p^r + 1$. We know $0 \leq r < d$, so $0 < p^r + 1 < p^d - 1$ since $p > 2$, a contradiction. So this case is impossible

Then we must have $f(p) = p^d$. Again write $n = qd + r$ using the division algorithm. We get $p^d - 1 \mid (-1)^q p^r - 1$. Since $0 \leq r < d$, this is only possible if $r = 0$. Therefore, $d$ divides $n$.

Let $b$ be an arbitrary integer, and let $q$ be a prime number greater than $b^n + 2|f(b)|^n$.
We know $f(q) = q^d$ for some $d$ dividing $n$. Consider $x = b$ and $y = q$. We get $f(b) - q^d \mid b^n - q^n$. Writing $q^n$ as $(q^d)^{n/d}$, we get $f(b) - q^d \mid b^n - (f(b))^{n/d}$. Suppose that $b^n - (f(b))^{n/d}$ is nonzero. Then we know that
\[|b^n - (f(b))^{n/d}| \leq b^n + |f(b)|^n < q - |f(b)|^n \leq q^d - f(b).\]
This is a contradiction, so therefore $b^n - (f(b))^{n/d} = 0$, and $f(b) = b^d$. If we apply this process to two arbitrary integers $b,c$, taking the same large $q$ for both of them, we obtain that $f(b) = b^d$ and $f(c) = c^d$ for the same $d$. Therefore there exists a single $d$ dividing $n$ such that $f(x) = x^d$ for all integers $x$. Reversing our transformations in the second paragraph, we get the set of solutions described in the first paragraph, 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.
leshik
433 posts
#3 • 3 Y
Y by jhu08, Adventure10, and 1 other user
This problem has been posted before: http://www.artofproblemsolving.com/Forum/viewtopic.php?f=56&t=453800
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hal9v4ik
368 posts
#4 • 4 Y
Y by jhu08, Adventure10, Mango247, and 1 other user
Can someone post IMO Shortlist 2011 on contest page?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
KittyOK
349 posts
#5 • 3 Y
Y by jhu08, Adventure10, Mango247
The formulation of the problem is not quite clear. If we plug $x=y$ in the condition we get the nonsense $0$ divides $0$.
Evidently, the official solution tacitly uses that $f$ is injective and that the condition applies only with distinct $x$ and $y$.
A more interesting interpretation is as follows:
Quote:
Let $n \geq 1$ be an odd integer. Determine all functions $f$ from the set of integers to itself, such that for all integers $x$ and $y$ such that $f(x)$ is not equal to $f(y)$, the difference $f(x)-f(y)$ divides $x^n-y^n.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ACCCGS8
326 posts
#6 • 2 Y
Y by jhu08, Adventure10
$0$ divides $0$ is actually true, because there exists an integer $k$ such that $(0)(k)=0$. So I don't think there is any confusion in the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#7 • 4 Y
Y by jhu08, Adventure10, Mango247, and 1 other user
And injectivity of $f$ results from the given relation(s), since assuming $f(x)=f(y)$ for some $x\neq y$ leads to $0 \mid x^n-y^n \neq 0$ (don't forget, $n$ is odd), so it does not need to be tacitly implied.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
harazi
5526 posts
#8 • 3 Y
Y by jhu08, Adventure10, Mango247
Maybe a more interesting question: find all functions $f$ defined on $\textbf{positive integers}$ with integer values and with the same property as in the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eaglet
6 posts
#9 • 3 Y
Y by jhu08, Adventure10, Mango247
mavropnevma wrote:
And injectivity of $f$ results from the given relation(s), since assuming $f(x)=f(y)$ for some $x\neq y$ leads to $0 \mid x^n-y^n \neq 0$ (don't forget, $n$ is odd), so it does not need to be tacitly implied.

I just wanted to express my mild surprise at this explanation. If my understanding is correct, the statement $ 0\mid x^{n}-y^{n}\neq 0 $ is nonsense rather than false, and the responsibility of eliminating such nonsense statements lies not with the problem solver, but with the problem proposer. In this particular case, the proposer could have defined $f$ to be injective, a definition that would have left no ambiguity in the problem. Now, I could be totally inaccurate on this explanation attempt, and if so, please kindly enlighten me.

On another note, I would like to confirm that KittyOK's interpretation is solvable, and indeed a much more interesting problem than the one originally intended.

And to KittyOK, my warmest congratulations once again for your gold medal at IMO 2012. :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#10 • 5 Y
Y by eaglet, jhu08, Adventure10, Mango247, and 1 other user
My pleasure. Of course, the statement should have contained the domain of the functional relation excluding its diagonal, so

Let $n \geq 1$ be an odd integer. Determine all functions $f$ from the set of integers to itself, such that for all distinct integers $x$ and $y$, the difference $f(x)-f(y)$ divides $x^n-y^n.$

Now, one will ask oneself: what if $f(x) = f(y)$ for some $x\neq y$. Then $v = x^n-y^n \neq 0$, since $n$ is given odd, so the given relation would be $0\mid v$.
I never said this is false; if you prefer to call it nonsense it's ok with me. What matters is that it's not TRUE, so by contradicting the given relation forbids $f(x) = f(y)$ when $x\neq y$. Now, why should the proposer have ruled out this consequence of the relation, by redundantly stating "$f$ is injective" ?

Another example. Say I write: Let $A$ be a set of positive integers and let $M$ be a number such that $a\leq M$ for all $a\in A$. Why should I "warn" the solver by stating "$A$ is finite", when it's a trivial consequence of the givens?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Isogonics
185 posts
#11 • 2 Y
Y by jhu08, Adventure10
I have a question about MellowMelon's Solution, in the $f(p)$ part :
MellowMelon wrote:
If we write $n = qd + r$ using the division algorithm, we get $p^d - 1 \mid p^r + 1$. We know $0 \leq r < d$, so $0 < p^r + 1 < p^d - 1$ since $p > 2$, a contradiction. So this case is impossible.

Well, I think this is not true when $p=3, r=0, d=1$ , so setting $p$ any odd prime is wrong.
(But in this solution "infinitely many prime" works, so only "any odd prime" needs to be corrected.)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
junioragd
314 posts
#12 • 3 Y
Y by IgorM, jhu08, Adventure10
Here is another solution(More precise,a way to finish via Dirichlet's theoerem instead of bounding):
All solutions are if the form $a*x^b$+$c$,where $a$ is $1$ or $-1$,$d$ divides $n$ and $c$ is an arbirtary integer.Note that,if $f(x)$ is a solution,then $f(x)+a$ is also a solution and if $f(x)$ is a solution,then $-f(x)$ is a solution.Now,WLOG $f(0)=0$ and P$(1,1)$ gives $f(1)=1$.P$(2,0)$ gives $f(2)$ divides $2^n$,so $f(2)=2^k$($k<n$) and P$(2,1)$ gives $2^k-1$ divides $2^n$-$1$,so we get $k$ divides $n$.Now,pluging any prime bigger than 2^(n^2) we get $f(p)=p^k$.Now,pick an arbirtary integer $m$ and suppose $f(m)=m^k$ doesn't hold.Now,let $n=ak$.
Lemma: The equation $r^a$ congruent $l$ $modp$ always has a solution if $GCD(a,p-1)=1$($p$ is a prime).
Proof:Pick two distinct integers $m,n$ such that $p$ doesn't divide $m-n$.Suppose $p$ divides $m^a-n^a$.Now,from Ferma's little theorem we have that $p$ divides m^(p-1)-n^(p-1),now by LTE we have GCD((m^a-n^a),(m^p-1-n^p-1))=$m-n$,which is a contradiction.

Pick a prime $r$ such that $r$ doesn't divide $f(m)^a$-$m^n$ and such that $k$ doesn't divide $r-1$.By Dirichlet,such a prime exists
Now,by Dirichlet there will exist a prime $q$ such that $r$ divides $q^k-f(m)$,now P$(q,m)$ gives that $r$ divides $f(m^a)$-$m^n$,which is a contradiction,so we get $f(m)=m^k$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
JuanOrtiz
366 posts
#13 • 2 Y
Y by jhu08, Adventure10
First notice that if $n<0$ then $f(x)-f(0)|x^n$ but the left side is an integer and $x^n$ isn't an integer for all $x$, and therefore there exists no such function $f$. If $n=0$, then if $x=0$, $0^0$ is undefined and so the problem's statement is undefined. Now assuming $n>0$, I claim that the functions that work are $f(x)=\Gamma+x^{\Omega}$ and $f(x)=\Gamma-x^{\Omega}$, for any positive divisor $\Omega | n$ and any integer $\Gamma$.

Firstly notice that we can multiply $f$ by $-1$ and shift it by a constant and it still works, and therefore WLOG $f(1) \ge 0$ and $f(0)=0$. Notice $f(1)-0|1-0$ and so $f(1)=1$. Now take $p$ be any odd prime. Notice that $f(p)|p^n$ and therefore $f(p)=p^{\Omega}$ or $-p^{\Omega}$ for some $0\le {\Omega} \le n$. In the second case, we get that $p^{\Omega}+1 | p^n-1$ and so $p+1 | p^n-1$ (or $\Omega=0 \Rightarrow f(p)=-1$) but notice that since $n$ is odd, $p+1 | p^n+1$ and so $p+1 | 2$, impossible. Therefore, $f(p)=p^{\Omega}$ for some $1 \le \Omega \le n$, or $f(p)=-1$. So $p^{\Omega}-1 | p^n-1$. It is a well known fact that $\text{mcd}(a^b-1,a^c-1) = a^{\text{mcd}(b,c)}-1$ for $a,b,c$ positive integers and $a>1$, which can be proven by Euclid's Algorithm easily. Therefore $\Omega | n$.

Now let $S$ be the set of positive integers that divide $n$. Notice that if $f(a)=f(b)=-1 \Rightarrow 0 | a-b \Rightarrow -1$ and so $f(p)=-1$ for at most one value of $p$. For all other odd primes $p$, $\Omega \in S$ and since $S$ is finite, there exists an infinite set $S_{\Omega}$ of prime numbers such that $f(p)=p^{\Omega}$ for all $p \in S_{\Omega}$. Now take any integer $x \neq -1,0-1$ and notice that for any such $p$, $p^{\Omega}-f(x) | p^n-x^n$, but also $p^{\Omega}-f(x) | p^n-f(x)^{\frac{n}{\Omega}}$ and therefore $p^{\Omega}-f(x) | x^n-f(x)^{\frac{n}{\Omega}}$. This implies that

$x^n-f(x)^{\displaystyle\frac{n}{\Omega}}$

has an infinite number of divisors, which clearly implies that said number is $0$. Therefore $f(x)={\Omega}$ for all $x \neq 0,1,-1$. But this equality is also true for $x=0,1$ as we had previously established. Now all that is left is to prove $f(-1)=-1$. But notice $f(-1)|-1$ and so $f(-1)=-1,1$. We also have $1-f(-1)|2$ and so $f(-1)=-1$. Therefore $f(x)=x^{\Omega}$ for all $x$, where $\Omega$ is a fixed positive divisor of $n$.

Taking into account that we shifted and multiplied $f$ by $-1$ at the beginning, this gives us the final answers $\boxed{f(x)=\Gamma+x^{\Omega}}$ and $\boxed{f(x)=\Gamma-x^{\Omega}}$, for any positive divisor $\Omega | n$ and any integer $\Gamma$.
This post has been edited 6 times. Last edited by JuanOrtiz, Apr 2, 2015, 10:03 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#14 • 4 Y
Y by jhu08, SatisfiedMagma, Adventure10, Mango247
Answer. The only solutions are $f(x)=cx^d+e$ where $c \in \{-1, 1\}$, $d \ge 0$ is an odd divisor of $n$ and $e \in \mathbb{Z}$ for all integers $x$.

Solution. It is clear that these satisfy the conditions. We will show that no other function works. Indeed, suppose a function $f$ other than those specified works.

Injectivity of $f$ follows since $f(a)=f(b) \Longrightarrow a^n=b^n$ and as $n$ is odd, $a=b$. Shifting by a constant; let $f(0)=0$, and for all integers $a$ we get $f(a) \mid a^n$. As $f(1) \mid 1$, scaling by a $\pm 1$ factor, we let $f(1)=1$. For all primes $p$, $f(p) \mid p^n \Longrightarrow f(p)=\pm \, p^k$ for some $k >0$.

Firstly, let $f(p)=-p^k$ and observe that $p^k+1 \mid p^n-1$. Write $n=kl+r$ for $0 \le r<k$ and note that $$p^n \equiv p^r\cdot (-1)^l \pmod {p^k+1} \Longrightarrow p^k+1 \le \left|p^r\cdot (-1)^l-1\right| \le p^r+1,$$which is clearly false. It follows that $f(p)=p^{k_p}$ for all primes $p$ with $1 \le k_p \le n$. Evidently, there exists $1 \le d \le n$ such that $k_p=d$ holds for infinitely many primes $p$.

Fix a prime $p_1$ with $k_{p_1}=d$ and vary $p$ with $k_p=d$. Write $n=md+r$ for $0 \le r<d$ and note that $$p^d-p_1^d \mid p^n-p_1^n \Longrightarrow p_1^{md}\cdot \left(p^r-p_1^r\right) \equiv 0 \pmod {p^d-p_1^d}.$$This is fails to occur unless $d \mid n$.

Finally, fix an integer $x$ with $f(x) \ne x^d$ and vary prime $p$ with $k_p=d$. It follows that $$p^d-f(x) \mid p^n-x^n \Longrightarrow p^d-f(x) \mid f(x)^{\frac{n}{d}}-x^n,$$which fails to hold by taking $p$ sufficiently large. The initial claim holds. $\, \square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
H.R.
172 posts
#15 • 2 Y
Y by jhu08, Adventure10
Answer. All functions f of the form f(x) = εxd + c, where ε is in {1, −1}, the integer d is a
positive divisor of n, and c is an integer.
Solution. Obviously, all functions in the answer satisfy the condition of the problem. We will
show that there are no other functions satisfying that condition.
Let f be a function satisfying the given condition. For each integer n, the function g defined
by g(x) = f(x) + n also satisfies the same condition. Therefore, by subtracting f(0) from f(x)
we may assume that f(0) = 0.
For any prime p, the condition on f with (x, y) = (p, 0) states that f(p) divides p
n
. Since the
set of primes is infinite, there exist integers d and ε with 0 ≤ d ≤ n and ε ∈ {1, −1} such that
for infinitely many primes p we have f(p) = εpd
. Denote the set of these primes by P. Since a
function g satisfies the given condition if and only if −g satisfies the same condition, we may
suppose ε = 1.
The case d = 0 is easily ruled out, because 0 does not divide any nonzero integer. Suppose
d ≥ 1 and write n as md + r, where m and r are integers such that m ≥ 1 and 0 ≤ r ≤ d − 1.
Let x be an arbitrary integer. For each prime p in P, the difference f(p)−f(x) divides p
n −x
n
.
Using the equality f(p) = p
d
, we get
p
n − x
n = p
r
(p
d
)
m − x
n ≡ p
r
f(x)
m − x
n ≡ 0 (mod p
d − f(x))
Since we have r < d, for large enough primes p ∈ P we obtain
|p
r
f(x)
m − x
n
| < pd − f(x).
Hence p
rf(x)
m − x
n has to be zero. This implies r = 0 and x
n = (x
d
)
m = f(x)
m. Since m is
odd, we obtain f(x) = x
d
Z K Y
G
H
=
a