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
Interesting inequality
A_E_R   1
N 4 minutes ago by sqing
Let a,b,c,d are positive real numbers, if the following inequality holds ab^2+ac^2>=5bcd. Find the minimum value of explanation: (a^2+b^2+c^2+d^2)(1/a^2+1/b^2+1/c^2+1/d^2)
1 reply
+2 w
A_E_R
2 hours ago
sqing
4 minutes ago
Maximum area of the triangle
adityaguharoy   1
N 9 minutes ago by Mathzeus1024
If in some triangle $\triangle ABC$ we are given :
$\sqrt{3} \cdot \sin(C)=\frac{2- \sin A}{\cos A}$ and one side length of the triangle equals $2$, then under these conditions find the maximum area of the triangle $ABC$.
1 reply
adityaguharoy
Jan 19, 2017
Mathzeus1024
9 minutes ago
Concurrent lines
BR1F1SZ   4
N 21 minutes ago by NicoN9
Source: 2025 CJMO P2
Let $ABCD$ be a trapezoid with parallel sides $AB$ and $CD$, where $BC\neq DA$. A circle passing through $C$ and $D$ intersects $AC, AD, BC, BD$ again at $W, X, Y, Z$ respectively. Prove that $WZ, XY, AB$ are concurrent.
4 replies
BR1F1SZ
Mar 7, 2025
NicoN9
21 minutes ago
Inspired by lgx57
sqing   6
N 25 minutes ago by sqing
Source: Own
Let $ a,b\geq 0 $ and $\frac{1}{a^2+b}+\frac{1}{b^2+a}=1.  $ Prove that
$$a^2+b^2-a-b\leq 1$$$$a^3+b^3-a-b\leq \frac{3+\sqrt 5}{2}$$$$a^3+b^3-a^2-b^2\leq \frac{1+\sqrt 5}{2}$$
6 replies
sqing
2 hours ago
sqing
25 minutes ago
Arithmetic progression
BR1F1SZ   2
N 31 minutes ago by NicoN9
Source: 2025 CJMO P1
Suppose an infinite non-constant arithmetic progression of integers contains $1$ in it. Prove that there are an infinite number of perfect cubes in this progression. (A perfect cube is an integer of the form $k^3$, where $k$ is an integer. For example, $-8$, $0$ and $1$ are perfect cubes.)
2 replies
BR1F1SZ
Mar 7, 2025
NicoN9
31 minutes ago
Number Theory Chain!
JetFire008   51
N 40 minutes ago by Primeniyazidayi
I will post a question and someone has to answer it. Then they have to post a question and someone else will answer it and so on. We can only post questions related to Number Theory and each problem should be more difficult than the previous. Let's start!

Question 1
51 replies
+1 w
JetFire008
Apr 7, 2025
Primeniyazidayi
40 minutes ago
Injective arithmetic comparison
adityaguharoy   1
N an hour ago by Mathzeus1024
Source: Own .. probably own
Show or refute :
For every injective function $f: \mathbb{N} \to \mathbb{N}$ there are elements $a,b,c$ in an arithmetic progression in the order $a<b<c$ such that $f(a)<f(b)<f(c)$ .
1 reply
adityaguharoy
Jan 16, 2017
Mathzeus1024
an hour ago
Abelkonkurransen 2025 1b
Lil_flip38   2
N an hour ago by Lil_flip38
Source: abelkonkurransen
In Duckville there is a perpetual trophy with the words “Best child of Duckville” engraved on it. Each inhabitant of Duckville has a non-empty list (which never changes) of other inhabitants of Duckville. Whoever receives the trophy
gets to keep it for one day, and then passes it on to someone on their list the next day. Gregers has previously received the trophy. It turns out that each time he does receive it, he is guaranteed to receive it again exactly $2025$ days later (but perhaps earlier, as well). Hedvig received the trophy today. Determine all integers $n>0$ for which we can be absolutely certain that she cannot receive the trophy again in $n$ days, given the above information.
2 replies
Lil_flip38
Mar 20, 2025
Lil_flip38
an hour ago
Symmetric inequalities under two constraints
ChrP   4
N an hour ago by ChrP
Let $a+b+c=0$ such that $a^2+b^2+c^2=1$. Prove that $$ \sqrt{2-3a^2}+\sqrt{2-3b^2}+\sqrt{2-3c^2} \leq 2\sqrt{2}  $$
and

$$ a\sqrt{2-3a^2}+b\sqrt{2-3b^2}+c\sqrt{2-3c^2} \geq 0  $$
What about the lower bound in the first case and the upper bound in the second?
4 replies
ChrP
Apr 7, 2025
ChrP
an hour ago
Terms of a same AP
adityaguharoy   1
N 2 hours ago by Mathzeus1024
Given $p,q,r$ are positive integers pairwise distinct and $n$ is also a positive integer $n \ne 1$.
Determine under which conditions can $\sqrt[n]{p},\sqrt[n]{q},\sqrt[n]{r}$ form terms of a same arithmetic progression.

1 reply
adityaguharoy
May 4, 2017
Mathzeus1024
2 hours ago
Inspired by old results
sqing   8
N 2 hours ago by sqing
Source: Own
Let $ a,b\geq 0 $ and $  a^2+ab+b^2=2$ . Prove that
$$ (a+b-ab)\left( \frac{1}{a+1} + \frac{1}{b+1}\right)\leq 2 $$$$ (a+b-ab)\left( \frac{a}{b+1} + \frac{2b}{a+2}\right)\leq 2 $$$$ (a+b-ab)\left( \frac{a}{b+1} + \frac{2b}{a+1}\right)\leq 4$$Let $ a,b  $ be reals such that $  a^2+b^2=2$ . Prove that
$$ (a+b)\left( \frac{1}{a+1} + \frac{1}{b+1}\right)= 2 $$$$ (a+b)\left( \frac{a}{b+1} + \frac{b}{a+1}\right)=2 $$
8 replies
sqing
Today at 2:42 AM
sqing
2 hours ago
Transform the sequence
steven_zhang123   1
N 2 hours ago by vgtcross
Given a sequence of \( n \) real numbers \( a_1, a_2, \ldots, a_n \), we can select a real number \( \alpha \) and transform the sequence into \( |a_1 - \alpha|, |a_2 - \alpha|, \ldots, |a_n - \alpha| \). This transformation can be performed multiple times, with each chosen real number \( \alpha \) potentially being different
(i) Prove that it is possible to transform the sequence into all zeros after a finite number of such transformations.
(ii) To ensure that the above result can be achieved for any given initial sequence, what is the minimum number of transformations required?
1 reply
steven_zhang123
Today at 3:57 AM
vgtcross
2 hours ago
NEPAL TST DAY 2 PROBLEM 2
Tony_stark0094   5
N 2 hours ago by ThatApollo777
Kritesh manages traffic on a $45 \times 45$ grid consisting of 2025 unit squares. Within each unit square is a car, facing either up, down, left, or right. If the square in front of a car in the direction it is facing is empty, it can choose to move forward. Each car wishes to exit the $45 \times 45$ grid.

Kritesh realizes that it may not always be possible for all the cars to leave the grid. Therefore, before the process begins, he will remove $k$ cars from the $45 \times 45$ grid in such a way that it becomes possible for all the remaining cars to eventually exit the grid.

What is the minimum value of $k$ that guarantees that Kritesh's job is possible?

$\textbf{Proposed by Shining Sun. USA}$
5 replies
Tony_stark0094
Yesterday at 8:37 AM
ThatApollo777
2 hours ago
Product of distinct integers in arithmetic progression -- ever a perfect power ?
adityaguharoy   1
N 2 hours ago by Mathzeus1024
Source: Well known (the gen. is more difficult, but may be not this one -- so this is here)
Let $a_1,a_2,a_3,a_4$ be four positive integers in arithmetic progression (that is, $a_1-a_2=a_2-a_3=a_3-a_4$) and with $a_1 \ne a_2$. Can the product $a_1 \cdot a_2 \cdot a_3 \cdot a_4$ ever be a number of the form $n^k$ for some $n \in \mathbb{N}$ and some $k \in \mathbb{N}$, with $k \ge 2$ ?
1 reply
adityaguharoy
Aug 31, 2019
Mathzeus1024
2 hours ago
$p|f(m+n) \iff p|f(m) + f(n)$ (IMO Shortlist 2007, N5)
orl   47
N Oct 25, 2024 by sansgankrsngupta
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
47 replies
orl
Jul 13, 2008
sansgankrsngupta
Oct 25, 2024
$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
13 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