Join our FREE webinar on May 1st to learn about managing anxiety.

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
Question on Balkan SL
Fmimch   1
N 33 minutes ago by Fmimch
Does anyone know where to find the Balkan MO Shortlist 2024? If you have the file, could you send in this thread? Thank you!
1 reply
Fmimch
6 hours ago
Fmimch
33 minutes ago
Find f
Redriver   3
N 36 minutes ago by jasperE3
Find all $: R \to R : \ \ f(x^2+f(y))=y+f^2(x)$
3 replies
Redriver
Jun 25, 2006
jasperE3
36 minutes ago
An easy ineq; ISI BS 2011, P1
Sayan   39
N 40 minutes ago by proxima1681
Let $x_1, x_2, \cdots , x_n$ be positive reals with $x_1+x_2+\cdots+x_n=1$. Then show that
\[\sum_{i=1}^n \frac{x_i}{2-x_i} \ge \frac{n}{2n-1}\]
39 replies
Sayan
Mar 31, 2013
proxima1681
40 minutes ago
problem interesting
Cobedangiu   0
an hour ago
Let $a=3k^2+3k+1 (a,k \in N)$
$i)$ Prove that: $a^2$ is the sum of $3$ square numbers
$ii)$ Let $b \vdots a$ and $b$ is the sum of $3$ square numbers. Prove that: $b^n$ is the sum of $3$ square numbers
0 replies
Cobedangiu
an hour ago
0 replies
Easy Geometry Problem in Taiwan TST
chengbilly   7
N an hour ago by L13832
Source: 2025 Taiwan TST Round 1 Independent Study 2-G
Suppose $I$ and $I_A$ are the incenter and the $A$-excenter of triangle $ABC$, respectively.
Let $M$ be the midpoint of arc $BAC$ on the circumcircle, and $D$ be the foot of the
perpendicular from $I_A$ to $BC$. The line $MI$ intersects the circumcircle again at $T$ . For
any point $X$ on the circumcircle of triangle $ABC$, let $XT$ intersect $BC$ at $Y$ . Prove
that $A, D, X, Y$ are concyclic.
7 replies
chengbilly
Mar 6, 2025
L13832
an hour ago
Overlapping game
Kei0923   3
N 2 hours ago by CrazyInMath
Source: 2023 Japan MO Finals 1
On $5\times 5$ squares, we cover the area with several S-Tetrominos (=Z-Tetrominos) along the square so that in every square, there are two or fewer tiles covering that (tiles can be overlap). Find the maximum possible number of squares covered by at least one tile.
3 replies
Kei0923
Feb 11, 2023
CrazyInMath
2 hours ago
Interesting Function
Kei0923   4
N 2 hours ago by CrazyInMath
Source: 2024 JMO preliminary p8
Function $f:\mathbb{Z}_{\geq 0}\rightarrow\mathbb{Z}$ satisfies
$$f(m+n)^2=f(m|f(n)|)+f(n^2)$$for any non-negative integers $m$ and $n$. Determine the number of possible sets of integers $\{f(0), f(1), \dots, f(2024)\}$.
4 replies
Kei0923
Jan 9, 2024
CrazyInMath
2 hours ago
Functional Geometry
GreekIdiot   1
N 2 hours ago by ItzsleepyXD
Source: BMO 2024 SL G7
Let $f: \pi \to \mathbb R$ be a function from the Euclidean plane to the real numbers such that $f(A)+f(B)+f(C)=f(O)+f(G)+f(H)$ for any acute triangle $\Delta ABC$ with circumcenter $O$, centroid $G$ and orthocenter $H$. Prove that $f$ is constant.
1 reply
GreekIdiot
Apr 27, 2025
ItzsleepyXD
2 hours ago
hard inequalities
pennypc123456789   1
N 2 hours ago by 1475393141xj
Given $x,y,z$ be the positive real number. Prove that

$\frac{2xy}{\sqrt{2xy(x^2+y^2)}} + \frac{2yz}{\sqrt{2yz(y^2+z^2)}} + \frac{2xz}{\sqrt{2xz(x^2+z^2)}} \le \frac{2(x^2+y^2+z^2) + xy+yz+xz}{x^2+y^2+z^2}$
1 reply
pennypc123456789
6 hours ago
1475393141xj
2 hours ago
Cute R+ fe
Aryan-23   6
N 2 hours ago by jasperE3
Source: IISc Pravega, Enumeration 2023-24 Finals P1
Find all functions $f\colon \mathbb R^+ \mapsto \mathbb R^+$, such that for all positive reals $x,y$, the following is true:

$$xf(1+xf(y))= f\left(f(x) + \frac 1y\right)$$
Kazi Aryan Amin
6 replies
Aryan-23
Jan 27, 2024
jasperE3
2 hours ago
Easy Combinatorial Game Problem in Taiwan TST
chengbilly   8
N 2 hours ago by CrazyInMath
Source: 2025 Taiwan TST Round 1 Independent Study 1-C
Alice and Bob are playing game on an $n \times n$ grid. Alice goes first, and they take turns drawing a black point from the coordinate set
\[\{(i, j) \mid i, j \in \mathbb{N}, 1 \leq i, j \leq n\}\]There is a constraint that the distance between any two black points cannot be an integer. The player who cannot draw a black point loses. Find all integers $n$ such that Alice has a winning strategy.

Proposed by chengbilly
8 replies
chengbilly
Mar 5, 2025
CrazyInMath
2 hours ago
Tiling problem (Combinatorics or Number Theory?)
Rukevwe   4
N 2 hours ago by CrazyInMath
Source: 2022 Nigerian MO Round 3/Problem 3
A unit square is removed from the corner of an $n \times n$ grid, where $n \geq 2$. Prove that the remainder can be covered by copies of the figures of $3$ or $5$ unit squares depicted in the drawing below.
IMAGE

Note: Every square must be covered once and figures must not go over the bounds of the grid.
4 replies
Rukevwe
May 2, 2022
CrazyInMath
2 hours ago
Finding all integers with a divisibility condition
Tintarn   15
N 3 hours ago by CrazyInMath
Source: Germany 2020, Problem 4
Determine all positive integers $n$ for which there exists a positive integer $d$ with the property that $n$ is divisible by $d$ and $n^2+d^2$ is divisible by $d^2n+1$.
15 replies
Tintarn
Jun 22, 2020
CrazyInMath
3 hours ago
Find all functions
WakeUp   21
N 3 hours ago by CrazyInMath
Source: Baltic Way 2010
Let $\mathbb{R}$ denote the set of real numbers. Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that
\[f(x^2)+f(xy)=f(x)f(y)+yf(x)+xf(x+y)\]
for all $x,y\in\mathbb{R}$.
21 replies
WakeUp
Nov 19, 2010
CrazyInMath
3 hours ago
$p|f(m+n) \iff p|f(m) + f(n)$ (IMO Shortlist 2007, N5)
orl   48
N Apr 26, 2025 by Ilikeminecraft
Source: IMO Shortlist 2007, N5, AIMO 2008, TST 3, P3
Find all surjective functions $ f: \mathbb{N} \to \mathbb{N}$ such that for every $ m,n \in \mathbb{N}$ and every prime $ p,$ the number $ f(m + n)$ is divisible by $ p$ if and only if $ f(m) + f(n)$ is divisible by $ p$.

Author: Mohsen Jamaali and Nima Ahmadi Pour Anari, Iran
48 replies
orl
Jul 13, 2008
Ilikeminecraft
Apr 26, 2025
$p|f(m+n) \iff p|f(m) + f(n)$ (IMO Shortlist 2007, N5)
G H J
Source: IMO Shortlist 2007, N5, AIMO 2008, TST 3, P3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 9 Y
Y by narutomath96, Davi-8191, tenplusten, nguyendangkhoa17112003, Adventure10, HWenslawski, Mango247, and 2 other users
Find all surjective functions $ f: \mathbb{N} \to \mathbb{N}$ such that for every $ m,n \in \mathbb{N}$ and every prime $ p,$ the number $ f(m + n)$ is divisible by $ p$ if and only if $ f(m) + f(n)$ is divisible by $ p$.

Author: Mohsen Jamaali and Nima Ahmadi Pour Anari, Iran
This post has been edited 6 times. Last edited by darij grinberg, Apr 29, 2016, 1:00 AM
Reason: \mapsto should be \to
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
t0rajir0u
12167 posts
#2 • 6 Y
Y by narutomath96, arandomperson123, nguyendangkhoa17112003, Adventure10, Mango247, and 1 other user
All congruences below are taken $ \bmod p$.

Let $ a$ be the smallest integer such that $ f(a) = 0$. Then $ f(ka) = 0 \forall k \in \mathbb{N}$. If $ b$ exists not of this form such that $ f(b) = 0$, then $ f(a) \equiv 0 \Leftrightarrow f(b) + f(a - b) \equiv 0 \Leftrightarrow f(a - b) \equiv 0$ (in other words, we can apply the Euclidean algorithm (or in other other words, $ \mathbb{Z}$ is a PID); contradiction. Hence $ f(n) \equiv 0 \Leftrightarrow \exists k \in \mathbb{N} : n = ka$. On the other hand, clearly $ f(kp) = 0 \forall k \in \mathbb{N}$. It follows that $ a | p$. If $ a = 1$ then $ f$ can't be surjective, so $ a = p$.

It now follows that if $ m \equiv - n$ then $ f(m) \equiv - f(pk + n) \forall k \in \mathbb{N} \implies f(m) \equiv f(pk + m) \forall k \in \mathbb{N}$. The residues $ f(m), m = 1, 2, 3, ... \frac {p - 1}{2}$ (for odd $ p$) determine all the others. In order for $ f$ to be surjective, the residues $ f(n), n = 1, 2, 3, ... p - 1$ must be precisely the nonzero residues $ \bmod p$, so the residues $ f(m), m = 1, 2, 3, ... \frac {p - 1}{2}$ are any subset of those residues with no additive inverses (in other words, we pair up each residue with its additive inverse and take only one element of each pair), so there are $ 2^{\frac {p - 1}{2} }$ ways of assigning these pairs (for odd $ p$). When $ p = 2$, $ f(m) \equiv m$.

This and the surjective condition are the only conditions on $ f$. In other words, the values of $ f$ in a particular residue class are an arbitrary permutation of the natural numbers in that residues class. For example, when $ p = 2$ the odd values of $ f$ are a permutation of the odd naturals and the even values of $ f$ are a permutation of the even naturals.

Edit: My apologies. I thought $ p$ was fixed.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mohsen
16 posts
#3 • 9 Y
Y by AlastorMoody, Aryan-23, OlympusHero, Lol_man000, megarnie, Adventure10, and 3 other users
Thank you for notification of my name, but My exact name is : Mohsen Jamaali!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
aviateurpilot
773 posts
#4 • 5 Y
Y by narutomath96, xdiegolazarox, Adventure10, Mango247, and 1 other user
orl wrote:
Find all surjective functions $ f: \mathbb{N} \mapsto \mathbb{N}$ such that for every $ m,n \in \mathbb{N}$ and every prime $ p,$ the number $ f(m + n)$ is divisible by $ p$ if and only if $ f(m) + f(n)$ is divisible by $ p.$

Author: Mohsen Jamaali and Nima Ahmadi Pour Anari, Iran

we suppose that $ \boxed{n>m,f(n)=f(m)}$
$ \forall x\in\mathbb{N}: \ p|f(x+n)\iff p|f(x)+f(n)\iff p|f(x)+f(m)\iff p|f(x+m)$
then $ f(x+m)$ and $ f(x+n)$ have same pimes divisor
then $ \forall X\ge max(n,m): \ X\equiv r(mod\ n-m),r\in\{1,...,n-m\}$: $ f(X),f(r)$ have same primes divisors.
$ f$ surjective ===> $ \exists M\ge max(n,m): \ f(M)$ is a prime $ >max(f(1),f(2),....,f(n-m))$
but $ f(M)$ have same primes divisor of an element of $ \{f(1),f(2),...,f(n-m)\}$ (impossible)
then we must have $ \boxed{n=m}$
$ f$ is bijective.so we can take $ g=f^{-1}$
NOW we have $ p|n+m\iff p|f(g(n)+g(m))$
i continue after :wink:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
The QuattoMaster 6000
1184 posts
#5 • 4 Y
Y by narutomath96, Adventure10, Mango247, and 1 other user
Hopefully, the following works:
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lasha
204 posts
#6 • 5 Y
Y by narutomath96, huricane, Adventure10, Mango247, and 1 other user
First let's prove that $ f(1) = 1$. Assume there exists such prime $ p$ that $ p|f(1)$. Using induction and condition it follows that $ p|f(n)$, for any $ n$, contradicting the fact that that $ f$ is surjective. So, $ f(1) = 1$.
Take any prime $ p$. If $ a$ is minimal such that $ p|f(a)$, than if $ p|f(b)$, we have $ a|b$, because otherwise $ p|f(b - a),f(b - 2a),...,f(b - ka)$, where $ ka < b < (k + 1)a$ and $ b - ka < a$, contradicting the assumption. If the numbers $ f(a + 1)$ and $ f(a)$ have same prime divisor $ p$, than taking the smallest $ m$ for which $ p|f(m)$ we get $ m|a,(a + 1)$, implying $ m = 1$, but $ p$ can't divide number $ f(1) = 1$. Hence, for any positive integer $ a$, $ g.c.d.(f(a),f(a + 1)) = 1$. $ (1)$
Let's prove that $ |f(a + 1) - f(a)| = 1$, for all positive integers $ a$. Assume contrary that there exist $ a$ and prime $ p$ with $ p|(f(a + 1) - f(a))$. Take $ b$ such that $ f(a) + f(b)$ is divisible by $ p$ (Such a number$ b$ exists because of the surjectivity of $ f$.). Than, $ f(a + 1) + f(b)$ is also divisible by $ p$ and using the condition of the problem, we deduce: $ p|f(a + b + 1),f(a + b)$, which is obviously contradiction. (Because of $ (1)$.) So, $ |f(a + 1) - f(a)| = 1$ (2)
As $ f(1) = 1$, we have $ f(2) = 2$. So, $ 3|((f(1) + f(2))$, which means that $ 3|f(3)$, but $ f(3) = 1$ or $ f(3) = 3$. So, $ f(3) = 3$.
$ f(1) + f(4) = 5$ is divisible by $ 5$, so $ 5|f(5)$, but $ f(5)\leq f(4) + 1 \leq f(3) + 2 = 5$. So, $ f(5) = 5$ and $ f(4) = 4$. Now use induction to prove that $ f(n) = n$ holds for any $ n$. Assume it's true for all $ k \leq n$ (Where $ n \geq 5$). Assume contrary that $ f(n + 1) = n - 1 = f(n - 1)$. Than, if $ p|n - 1$, there exists $ a > 1$ with $ a|(n - 1),(n + 1)$. So, $ a = 2$. It means $ p|f(2) = 2$, implying $ n - 1 = 2^{k}$, for some positive integer $ k$. Than, $ f(n + 2) = n - 2 = f(n - 2)$ or $ f(n + 2) = n = f(n)$. if $ f(n + 2) = n - 2 = f(n - 2)$, than for any prime divisor $ p$ of $ n - 2$,
there exist $ a > 1$ with $ a|(n - 2),(n + 2)$, implying $ a = 1,2 or 4$. It means again $ p = 2$ and $ 2^{k} - 1 = n - 2 = 2^{m}$, which is clearly impossible. For the second case, we analogously deduce $ n = 2^{m}$, but $ n = 2^{k} - 1$. This contradiction shows that $ f(n + 1) = n + 1$, which means $ f(n) = n$, for all $ n$, which is clearly solution. Lasha Lakirbaia :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zhero
2043 posts
#7 • 12 Y
Y by narutomath96, AnonymousBunny, danepale, AlastorMoody, rayfish, future_gold_in_IMO, Adventure10, Mango247, and 4 other users
If this solution is correct, then the condition that $ f$ is surjective can in fact be replaced with $ f(1) = 1$.

Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
timwu
973 posts
#8 • 9 Y
Y by narutomath96, a00012025, SupermemberVN, Phie11, A_Math_Lover, AlastorMoody, Adventure10, Mango247, and 1 other user
Solution

Alternately
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gold1
7 posts
#9 • 2 Y
Y by narutomath96, Adventure10
i think for any prime p and numbers a and b , p|f(a)-f(b) if and only if p|a-b... In fact , consider natural number c so that p|a+c , then p| f(a+c) .Indeed p|f(a)+f(c) , so p|f(b)+f(c) . thus p|f(b+c) so p|b+c. indeed p|a-b. now if p|a-b then coose c such that p|a+c . So p|f(a+c) . Then p|f(a)+f(c) . and p|b+c then p|f(b)+f(c) . Indeed p|f(a)-f(b) . Thus |f(a)-f(a-1)|=1 since a-(a-1)=1 . |f(a)-f(a-2)|=2^k since a-(a-2)=2. so we can see f(a) and f(a-2) are different . thus we can see f(n)=n easily . here is , i proved f(1)=1 at first...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Particle
179 posts
#10 • 2 Y
Y by Adventure10, Mango247
(Due to me & mahi)
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AnonymousBunny
339 posts
#11 • 1 Y
Y by Adventure10
Click to reveal hidden text
This post has been edited 2 times. Last edited by AnonymousBunny, Jun 13, 2014, 5:20 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mad
59 posts
#12 • 3 Y
Y by Adventure10, Mango247, and 1 other user
Easy to prove that $f(1)=1$.
Let $k$ be the smalles t integer s.t $p$ divides $f(k)$
It's easy to prove by induction tha if $p$ divides $f(a)$,then $p$ divides $f(ma)$
So $p$ divides $f(kx)$ for all $x$
Let $p$ divides $f(y)$ and $y=kq+r$ where $r<p$
Then $p$ divides $f(kq)+f(r)$
so $p$divides $f(r)$.But $r<p$.So $r=0$ and $pk$ divides $y$

So $p$ divides $f(y)$ iff $k$ divides $y$

Let $x\equiv s (mod k)$ and $x=kq+s$
Then $p$ divides $f(s)+f(k-s)$.As $k$ divides $x+k-s$,$p$ divides $f(x+k-s)$.
So $p$ divides $f(x)+f(k-s)$.this implies $p$ divides $f(x)-f(s)$

Let $p$ divides $f(x)-f(y)$ for some $x,y$ and $y\equiv s $(mod $k$).Then $f(y)\equiv -f(k-s)$ (mod $p$)
So $p$ divides $f(x)+f(k-s)$.this implies $p$ divides $f(x+k-s)$
So $k$ divides $x+k-s$
$p$ divides $x-y$
So $p$ divides $f(x)-f(y)$
Simillarly we can prove if $p$ divides $f(x-y)$ then $p$ divides $f(x)-f(y)$
So $f(x-y)$ and $f(x)-f(y)$ have the same prime divisors .
Let $x=y+1$.Then $f(1)$ and $f(y+1)-f(y)$ have the same prime divisors
But $f(1)=1$.So we must have $f(y+1)-f(y)=1$
This implies $f(x)=x$ for all $x$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sayantanchakraborty
505 posts
#13 • 3 Y
Y by AnonymousBunny, Adventure10, Mango247
AnonymousBunny wrote:
Click to reveal hidden text
Claim 2: $f(x) = f(y) \iff x=y$

Proof: The if direction is trivial. We shall show the only if direction. Suppose $f(x)=f(y)$ for some $x \neq y.$ WLOG $y>x.$ Note that $p \mid f(y) \iff p \mid f(x) + f(y-x),$ so $p \mid f(y-x).$ Then, $p \mid f(y-x),$ so $p \mid f(k(y-x))$ for all $k \in \mathbb{N}.$ Now, for all $n,$ there exists a $q$ and $r$ such that $n= q(y-x)+r,$ where $r \leq y-x.$ It follows that $p \mid f(n) \iff p \mid f(r).$ Thus, the set of all prime divisors of $f(n)$ is equal to the set of all prime divisors of $\{f(1), f(2), \cdots , f(y-x)\},$ which contradicts the surjectivity of $x.$ $\blacksquare$

Click to reveal hidden text


Your proof of Claim 2 is wrong.You have proved that $f(x)=f(y) \Rightarrow x=y$ for only those $x$ and $y$ for which we know that $f(x)$ is divisible by $p$,which is a strong assumption.

Otherwise I think the proof is fine.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AnonymousBunny
339 posts
#14 • 2 Y
Y by Adventure10, Mango247
Yes I see. That's not how I was thinking though, I completely messed up while writing the solution. I hope it's correct now. Thanks for pointing it out!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sayantanchakraborty
505 posts
#15 • 2 Y
Y by Adventure10, Mango247
My solution may be similar to others:

Exactly as the above argument show that $f(1)=1$.Now suppose $f(x)=f(y)$ for some $x>y$.Fix a prime $p$.By surjectivity there exists $m$ such that $p|f(x+m)$.Then $p|f(x)+f(m)=f(y)+f(m) \implies p|f(y+m)$.We also have $p|f(x+m) \implies p|f(x-y)+f(y+m) \implies p|f(x-y)$.This happens for infinitely many primes $p$,forcing $f(x-y)=0$ which is an impossibility.Thus the function $f$ is one-one,and consequently with the problem statement,bijective on $\mathbb{N}$.


Lemma:If $d$ is the minimal positive integer such that $p|f(d)$,then $p|f(m) \Leftrightarrow d|m$.Further $f(x) \equiv f(y) \pmod{p} \Leftrightarrow x \equiv y\pmod{d}$.

Proof:Let $m=dk+r$ where $0 \le r <d$.Then $p|f(d) \implies p|f(dk)$ by easy induction.Thus $p|f(m) \implies p|f(dk+r) \implies p|f(kd)+f(r) \implies p|f(r)$,This is a contradiction unless $r=0$ by the choice of $d$.Proving the other side is trivial.

For the second claim let $x>y$.Then $p|f(x)-f(y) \implies p|f(x-y) \implies d|x-y$ as desired,Once again the other side is trivial to see.

Thus $f(1),f(2),\cdots,f(d)$ are incongruent modulo $d$,which means $d \le p$.If $d<p$ then some integer modulo $d$ will not occur in the range of $f$,contradicting bijectivity.Thus $d=p$.This together with the lemma yeilds that $f(x) \equiv f(y)\pmod{p} \Leftrightarrow x \equiv y\pmod{p}$.

Now lets induct to show that $f(n)=n \forall n \in \mathbb{N}$.The base case is already settled.Let this be true for all integers upto $n$.If any prime $p$ divides $f(n+1)-n$ then we would have $p|f(n+1)-f(n) \implies p|1$ by the lemma,which is absurd.We also see that $f(n+1) \ge n+1$ due to bijectivity.Thus $f(n+1)-n=1$ or $f(n+1)=n+1$,completing the induction step and the proof.
Z K Y
G
H
=
a