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
IMO Shortlist 2011, G4
WakeUp   125
N 8 minutes ago by Davdav1232
Source: IMO Shortlist 2011, G4
Let $ABC$ be an acute triangle with circumcircle $\Omega$. Let $B_0$ be the midpoint of $AC$ and let $C_0$ be the midpoint of $AB$. Let $D$ be the foot of the altitude from $A$ and let $G$ be the centroid of the triangle $ABC$. Let $\omega$ be a circle through $B_0$ and $C_0$ that is tangent to the circle $\Omega$ at a point $X\not= A$. Prove that the points $D,G$ and $X$ are collinear.

Proposed by Ismail Isaev and Mikhail Isaev, Russia
125 replies
WakeUp
Jul 13, 2012
Davdav1232
8 minutes ago
Z[x], P(\sqrt[3]5+\sqrt[3]25)=5+\sqrt[3]5
jasperE3   5
N 27 minutes ago by Assassino9931
Source: VJIMC 2013 2.3
Prove that there is no polynomial $P$ with integer coefficients such that $P\left(\sqrt[3]5+\sqrt[3]{25}\right)=5+\sqrt[3]5$.
5 replies
1 viewing
jasperE3
May 31, 2021
Assassino9931
27 minutes ago
IMO problem 1
iandrei   77
N 27 minutes ago by YaoAOPS
Source: IMO ShortList 2003, combinatorics problem 1
Let $A$ be a $101$-element subset of the set $S=\{1,2,\ldots,1000000\}$. Prove that there exist numbers $t_1$, $t_2, \ldots, t_{100}$ in $S$ such that the sets \[ A_j=\{x+t_j\mid x\in A\},\qquad j=1,2,\ldots,100  \] are pairwise disjoint.
77 replies
1 viewing
iandrei
Jul 14, 2003
YaoAOPS
27 minutes ago
Divisibility on 101 integers
BR1F1SZ   4
N an hour ago by BR1F1SZ
Source: Argentina Cono Sur TST 2024 P2
There are $101$ positive integers $a_1, a_2, \ldots, a_{101}$ such that for every index $i$, with $1 \leqslant i \leqslant 101$, $a_i+1$ is a multiple of $a_{i+1}$. Determine the greatest possible value of the largest of the $101$ numbers.
4 replies
BR1F1SZ
Aug 9, 2024
BR1F1SZ
an hour ago
Putnam 1972 A2
sqrtX   2
N 4 hours ago by KAME06
Source: Putnam 1972
Let $S$ be a set with a binary operation $\ast$ such that
1) $a \ast(a\ast b)=b$ for all $a,b\in S$.
2) $(a\ast b)\ast b=a$ for all $a,b\in S$.
Show that $\ast$ is commutative and give an example where $\ast$ is not associative.
2 replies
sqrtX
Feb 17, 2022
KAME06
4 hours ago
Limit with sin^2x
Quantum_fluctuations   7
N Today at 7:25 AM by P162008

Evaluate:

$\lim_{x \to 0} \left( 1^{1/\sin^2 x} + 2^{1/\sin^2 x} + 3^{1/\sin^2 x} + .  .  . + n^{1/\sin^2 x} \right)^{\sin^2 x}$
7 replies
Quantum_fluctuations
Apr 26, 2020
P162008
Today at 7:25 AM
Decimal number defined recursively by digit sums modulo 10
fermion13pi   2
N Today at 7:20 AM by solyaris
Source: Competição Elon Lages Lima
Consider the real number written in decimal notation:
r = 0.235831...
where, starting from the third digit after the decimal point, each digit is equal to the remainder when the sum of the previous two digits is divided by 10.

Which of the following statements is true?

(a) (10⁶⁰ - 1).r is an integer
(b) (10²⁵ - 1).r is an integer
(c) (10¹⁷ - 1).r is an integer
(d) r is an irrational algebraic number
(e) r is an irrational transcendental number

(Recall that a complex number is called algebraic if it is a root of a non-zero polynomial with integer coefficients.)
2 replies
fermion13pi
Yesterday at 11:14 PM
solyaris
Today at 7:20 AM
Integrable function: + and - on every subinterval.
SPQ   3
N Today at 7:06 AM by solyaris
Provide a function integrable on [a, b] such that f takes on positive and negative values on every subinterval (c, d) of [a, b]. Prove your function satisfies both conditions.
3 replies
SPQ
Today at 2:40 AM
solyaris
Today at 7:06 AM
Putnam 1999 A4
djmathman   7
N Today at 7:05 AM by P162008
Sum the series \[\sum_{m=1}^\infty\sum_{n=1}^\infty\dfrac{m^2n}{3^m(n3^m+m3^n)}.\]
7 replies
djmathman
Dec 22, 2012
P162008
Today at 7:05 AM
Find the greatest possible value of the expression
BEHZOD_UZ   1
N Today at 6:34 AM by alexheinis
Source: Yandex Uzbekistan Coding and Math Contest 2025
Let $a, b, c, d$ be complex numbers with $|a| \le 1, |b| \le 1, |c| \le 1, |d| \le 1$. Find the greatest possible value of the expression $$|ac+ad+bc-bd|.$$
1 reply
BEHZOD_UZ
Yesterday at 11:56 AM
alexheinis
Today at 6:34 AM
Problem with lcm
snowhite   2
N Today at 6:21 AM by snowhite
Prove that $\underset{n\to \infty }{\mathop{\lim }}\,\sqrt[n]{lcm(1,2,3,...,n)}=e$
Please help me! Thank you!
2 replies
snowhite
Today at 5:19 AM
snowhite
Today at 6:21 AM
combinatorics
Hello_Kitty   2
N Yesterday at 10:23 PM by Hello_Kitty
How many $100$ digit numbers are there
- not including the sequence $123$ ?
- not including the sequences $123$ and $231$ ?
2 replies
Hello_Kitty
Apr 17, 2025
Hello_Kitty
Yesterday at 10:23 PM
Sequence of functions
Squeeze   2
N Yesterday at 10:22 PM by Hello_Kitty
Q) let $f_n:[-1,1)\to\mathbb{R}$ and $f_n(x)=x^{n}$ then is this uniformly convergence on $(0,1)$ comment on uniformly convergence on $[0,1]$ where in general it is should be uniformly convergence.

My I am trying with some contradicton method like chose $\epsilon=1$ and trying to solve$|f_n(a)-f(a)|<\epsilon=1$
Next take a in (0,1) and chose a= 2^1/N but not solution
How to solve like this way help.
2 replies
Squeeze
Apr 18, 2025
Hello_Kitty
Yesterday at 10:22 PM
A in M2(prime), A=B^2 and det(B)=p^2
jasperE3   1
N Yesterday at 9:59 PM by KAME06
Source: VJIMC 2012 1.2
Determine all $2\times2$ integer matrices $A$ having the following properties:

$1.$ the entries of $A$ are (positive) prime numbers,
$2.$ there exists a $2\times2$ integer matrix $B$ such that $A=B^2$ and the determinant of $B$ is the square of a prime number.
1 reply
jasperE3
May 31, 2021
KAME06
Yesterday at 9:59 PM
IMO Shortlist 2011, Number Theory 3
orl   46
N Apr 15, 2025 by InterLoop
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
46 replies
orl
Jul 11, 2012
InterLoop
Apr 15, 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