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
Diophantine
TheUltimate123   32
N an hour ago by Kempu33334
Source: CJMO 2023/1 (https://aops.com/community/c594864h3031323p27271877)
Find all triples of positive integers \((a,b,p)\) with \(p\) prime and \[a^p+b^p=p!.\]
Proposed by IndoMathXdZ
32 replies
TheUltimate123
Mar 29, 2023
Kempu33334
an hour ago
Parallel lines in incircle configuration
GeorgeRP   4
N an hour ago by VicKmath7
Source: Bulgaria IMO TST 2025 P1
Let $I$ be the incenter of triangle $\triangle ABC$. Let $H_A$, $H_B$, and $H_C$ be the orthocenters of triangles $\triangle BCI$, $\triangle ACI$, and $\triangle ABI$, respectively. Prove that the lines through $H_A$, $H_B$, and $H_C$, parallel to $AI$, $BI$, and $CI$, respectively, are concurrent.
4 replies
GeorgeRP
May 14, 2025
VicKmath7
an hour ago
Geometry
shactal   1
N an hour ago by ricarlos
Two intersecting circles $C_1$ and $C_2$ have a common tangent that meets $C_1$ in $P$ and $C_2$ in $Q$. The two circles intersect at $M$ and $N$ where $N$ is closer to $PQ$ than $M$ . Line $PN$ meets circle $C_2$ a second time in $R$. Prove that $MQ$ bisects angle $\widehat{PMR}$.
1 reply
shactal
Today at 3:04 PM
ricarlos
an hour ago
Curious inequality
produit   1
N an hour ago by arqady
Positive real numbers x_1, x_2, . . . x_n satisfy x_1 + x_2 + . . . + x_n = 1.
Prove that
1/(1 −√x_1)+1/(1 −√x_2)+ . . . +1/(1 −√x_n)⩾ n + 4.
1 reply
produit
May 10, 2025
arqady
an hour ago
IMO ShortList 2001, combinatorics problem 6
orl   15
N 2 hours ago by awesomeming327.
Source: IMO ShortList 2001, combinatorics problem 6
For a positive integer $n$ define a sequence of zeros and ones to be balanced if it contains $n$ zeros and $n$ ones. Two balanced sequences $a$ and $b$ are neighbors if you can move one of the $2n$ symbols of $a$ to another position to form $b$. For instance, when $n = 4$, the balanced sequences $01101001$ and $00110101$ are neighbors because the third (or fourth) zero in the first sequence can be moved to the first or second position to form the second sequence. Prove that there is a set $S$ of at most $\frac{1}{n+1} \binom{2n}{n}$ balanced sequences such that every balanced sequence is equal to or is a neighbor of at least one sequence in $S$.
15 replies
orl
Sep 30, 2004
awesomeming327.
2 hours ago
Number Theory Chain!
JetFire008   64
N 2 hours 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
64 replies
JetFire008
Apr 7, 2025
Primeniyazidayi
2 hours ago
equation 2025
mohamed-adam   0
3 hours ago
Source: own
Find all positive integers $a,b$ such that $$a^8-2b^5=2025b$$
0 replies
mohamed-adam
3 hours ago
0 replies
Serbian selection contest for the IMO 2025 - P1
OgnjenTesic   3
N 3 hours ago by MR.1
Source: Serbian selection contest for the IMO 2025
Let \( p \geq 7 \) be a prime number and \( m \in \mathbb{N} \). Prove that
\[\left| p^m - (p - 2)! \right| > p^2.\]Proposed by Miloš Milićev
3 replies
OgnjenTesic
Yesterday at 4:01 PM
MR.1
3 hours ago
Nice "if and only if" function problem
ICE_CNME_4   0
3 hours ago
Let $f : [0, \infty) \to [0, \infty)$, $f(x) = \dfrac{ax + b}{cx + d}$, with $a, d \in (0, \infty)$, $b, c \in [0, \infty)$. Prove that there exists $n \in \mathbb{N}^*$ such that for every $x \geq 0$
\[
f_n(x) = \frac{x}{1 + nx}, \quad \text{if and only if } f(x) = \frac{x}{1 + x}, \quad \forall x \geq 0.
\](For $n \in \mathbb{N}^*$ and $x \geq 0$, the notation $f_n(x)$ represents $\underbrace{(f \circ f \circ \dots \circ f)}_{n \text{ times}}(x)$. )

Please do it at 9th grade level. Thank you!
0 replies
ICE_CNME_4
3 hours ago
0 replies
4 variables
Nguyenhuyen_AG   11
N 3 hours ago by arqady
Let $a,\,b,\,c,\,d$ are non-negative real numbers and $0 \leqslant k \leqslant \frac{2}{\sqrt{3}}.$ Prove that
$$a^2+b^2+c^2+d^2+kabcd \geqslant k+4+(k+2)(a+b+c+d-4).$$hide
11 replies
Nguyenhuyen_AG
Dec 21, 2020
arqady
3 hours ago
Hard Number Theory
MuradSafarli   0
3 hours ago
Find all odd natural numbers \( m \) such that \( m^2 - 1 \mid 3^m + 5^m \).
0 replies
MuradSafarli
3 hours ago
0 replies
A and B take stones from a pile
WakeUp   4
N 4 hours ago by reni_wee
Source: CentroAmerican 2003
Two players $A$ and $B$ take turns playing the following game: There is a pile of $2003$ stones. In his first turn, $A$ selects a divisor of $2003$ and removes this number of stones from the pile. $B$ then chooses a divisor of the number of remaining stones, and removes that number of stones from the new pile, and so on. The player who has to remove the last stone loses. Show that one of the two players has a winning strategy and describe the strategy.
4 replies
WakeUp
Nov 29, 2010
reni_wee
4 hours ago
Pisano period
JARP091   3
N 4 hours ago by JARP091
Source: At the time of writing this problem i do not know the source if any
Let $F_n$ denote the $n$th Fibonacci number, defined by the recurrence:
\[
F_0 = 0,\quad F_1 = 1,\quad \text{and} \quad F_{n+2} = F_{n+1} + F_n \quad \text{for } n \geq 0.
\]For a fixed modulus $m \in \mathbb{N}$, define the set
\[
S_m = \left\{ (i, j) \in \mathbb{N}^2 : F_i \cdot F_j \equiv 1 \pmod{m} \right\}.
\]Prove that $|S_m| = \infty$ if and only if $5 \nmid m$.

Note: Its a very beautiful problem
3 replies
JARP091
4 hours ago
JARP091
4 hours ago
FE with conditions on $x,y$
Adywastaken   1
N 4 hours ago by jasperE3
Source: OAO
Find all functions $f:\mathbb{R}\rightarrow \mathbb{R}$ such that $\forall y>x>0$,
\[
f(x^2+f(y))=f(xf(x))+y
\]
1 reply
Adywastaken
4 hours ago
jasperE3
4 hours ago
IMO 2009, Problem 5
orl   91
N May 16, 2025 by maromex
Source: IMO 2009, Problem 5
Determine all functions $ f$ from the set of positive integers to the set of positive integers such that, for all positive integers $ a$ and $ b$, there exists a non-degenerate triangle with sides of lengths
\[ a, f(b) \text{ and } f(b + f(a) - 1).\]
(A triangle is non-degenerate if its vertices are not collinear.)

Proposed by Bruno Le Floch, France
91 replies
orl
Jul 16, 2009
maromex
May 16, 2025
IMO 2009, Problem 5
G H J
Source: IMO 2009, Problem 5
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
abeot
128 posts
#83 • 2 Y
Y by megarnie, centslordm
Denote the assertion as $P(a, b)$.

First,
\[ P(1, b) \implies f(b) = f(b+f(1) - 1) \]Now, if $f(1) \neq 1$ then $f$ is periodic. If we make $a$ very large then we find that this case fails. Thus, $f(1) = 1$. Then,
\[ P(a, 1) \implies f(f(a)) = a \]This means that $f$ is both injective and surjective. Plug
\[ P(2, b) \implies f(b) - 1 \leq f(b + f(2) - 1) \leq f(b) + 1 \]Note that in particular since $f(b+f(2) - 1) \neq f(b)$ by injectivity, we have that either $f(b+f(2)-1) = f(b)+1$ or $f(b+f(2) - 1) = f(b) - 1$.

Now, suppose that $f(b+f(2)-1) = f(b) - 1$ for some $b$. Denote $m = f(2) - 1$. Then $f(b+2m) = f(b+m) - 1 = f(b) - 2$. By induction, then
\[ f(b+(k+1)m) = f(b+km) - 1 = f(b) - k - 1 \]for all positive integers $k$. But then we eventually get a nonnegative output, contradiction.

So we must have $f(b+f(2) - 1) = f(b) + 1$. If $m = f(2) - 1$, then by induction,
\[ f(b + (k+1)m) = f(b+km) + 1 = f(b) + k + 1 \]If $f(2) - 1 > 1$ then take some $c$ such that $c \not \equiv 1 \pmod{m}$. Since $f(c) \neq f(f(2)) = 2$, then there exists nonnegative integers $k$ and $j$ such that
\[ f(c+km) = f(c) + k = 2+j = f(1+jm) \]Then this contradicts injectivity.

Thus, $f(2) - 1 = 1$, and so we have $f(b+1) = f(b) + 1$. This implies that $f(n) = n$, which obviously works. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
amazingtheorem
17 posts
#84
Y by
The only solution is $f(n)=n$ for all $n \in \mathbb{N}$. It's easy to check that this function satisfies the problem condition.

Now, let $P(a,b)$ be the assertation of there is a triangle whose sides are $a,f(b)$, and $f(b+f(a)-1)$. This would later implies $$a+f(b)\ge f(b+f(a)-1)+1, a+f(b+f(a)-1)\ge f(b)+1,\text{and } f(b)+f(b+f(a)-1)\ge a+1.$$
Claim 1. $f(1)=1.$
Proof.

Assume to the contrary, we have $f(1)=c\ge 2$. Observe that $P(a,1)$ gives $f(b)\ge f(b+c-1)$ for all $b \in \mathbb{N}$. This implies the chain of inequality: $$f(b)\ge f(b+c-1)\ge f(b+2c-2)\ge f(b+3c-3)\ge \cdots $$It means that for every $i\in \{1,2,3,...,c-1 \}$, there is $M_i\in \mathbb{N}$ such that the sequence $f(i+M_i(c-1)), f(i+(M_i+1)(c-1)), f(i+(M_i+2)(c-1)), \cdots$ is a constant sequence. We now let every terms of that sequence be $N_i$.
Choose $r=\max(M_1,M_2,...,M_{c-1})+2$. Notice that the sequence $f(1+(c-1)r),f(2+(c-1)r),f(3+(c-1)r), \cdots$ is periodic in which the period is at most $c-1$.
Now, choose $a=2max(N_1,N_2,...,N_{c-1})$. Notice $P(a,1+(c-1)r)$ implies $$f(1+(c-1)r)+f(1+(c-1)r+f(a)-1)\ge a+1.$$However, $f(1+(c-1)r)+f(1+(c-1)r+f(a)-1)\le a$ by the definition of $a$. This is a contradiction. $\blacksquare$

Now, we have $f(1)=1$. Notice that $P(a,1)$ tells us $$f(f(a))+1\ge a+1 \text{and } a+1\ge f(f(a))+1. $$This implies $f(f(a))=a$ for every $a\in \mathbb{N}$, which gives us the bijectivity of $f$.
Let $k\ge 2$ be a natural number such that $f(k)=2$. We also have $k=f(2)$.

Claim 2. $f(1+(k-1)l)=l+1$ for all $l\in \mathbb{N}_0$
Proof.
We will use induction. For $l=0$ and $l=1$, it is clear. Assume that we now have $f(1+(k-1)d)=d+1$ for every $d=0,1,2,...,l$. For $d=l+1$, by the bijectivity of $f$, we have $f(1+(k-1)(l+1))\ge l+1$. However, from $P(f(a),k)$, we have $f(a)+1\ge f(a+k-1)$ for all $a \in \mathbb{N}$. Substituting $a=1+(k-1)l$, we get $l+2\ge f(1+(k-1)(l+1))$. This forces $f(1+(k-1)(l+1))=l+2$. This completes the induction. $\blacksquare$

We now have $f(1+(k-1)l)=l+1$ for all $l\in \mathbb{N}_0$. This implies $f(l)=1+(k-1)(l-1)$ for every $l \in \mathbb{N}$. Now, the bijectivity of $f$ forces $k=2$ (If not, then there is no $q\in \mathbb{N}$ such that $f(q)=2$). This brings us to $f(l)=l$ for every $l\in \mathbb{N}$.

To sum up, the only function that satisfies the problem condition is $f(n)=n$ for every $n \in \mathbb{N}$. It is easy to check that this solution indeed satisfies the property given.
This post has been edited 1 time. Last edited by amazingtheorem, Jan 23, 2024, 6:47 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sedro
5851 posts
#85
Y by
We claim that the only solution is $\boxed{f(x)=x}$. It is easy to see that it satisfies the condition in the problem statement; we now prove there are no other solutions. Before we begin, we note all inequalities below are obtained from the triangle inequality unless specified otherwise.

Claim: $f(1)=1$.

Proof: Let $a=1$, and we have $f(b)+1> f(b+f(1)-1)$ and $f(b+f(1)-1)+1> f(b)$. Together, these imply $f(b) = f(b+f(1)-1)$. For the sake of contradiction, assume $f(1)>1$. Then, there are arbitrarily large positive integers $d$ such that $f(d)=f(1)$. Let $a=d$ and fix $b$ to obtain $f(b)+f(b+f(d)-1) = f(b)+f(b+f(1)-1) > d$. Taking $d$ large enough, we have a contradiction, and hence $f(1)=1$.

Claim: $f$ is an involution.

Proof: Let $b=1$, and we have $a+1 > f(f(a))$ and $f(f(a))+1 > a$, which together imply $f(f(a))=a$, as desired.

Claim: $f(2)=2$.

Proof: Assume for the sake of contradiction that $f(2)=r>2$, and hence $f(r)=2$. We prove by strong induction that for any nonnegative integer $k$, we have $f(r+k(r-1))=k+2$. The base case, $k=0$, is trivial, so we proceed to the inductive step.

Assume that this claim holds for $0,1,\dots,k$; we show it holds for $k+1$. Let $a=2$ and $b=r+k(r-1)$; then, we have $a+f(b) = k+4 > f(r+(k+1)(r-1))$. Combining this with the facts $f(1)=1$, $f(r+k(r-1)) = k+2$ for $k=0,1,\dots, k$, and $f$ is injective, we must have $f(r+(k+1)(r-1))=k+3$, which completes the inductive step. But this implies that $f(r+(r-2)(r-1)) = r$, so in order not to violate the injectivity of $f$, we must have $r+(r-2)(r-1)=r$. However, this implies $r\in \{1,2\}$, which is a contradiction. Hence, $f(2)=2$.

Claim: $f$ is the identity function.

Proof: we will show that $f(x)=x$ using strong induction. We already know that $f(1)=1$ and $f(2)=2$; these are our base cases. For the inductive step, we assume $f(x)=x$ for all positive integers less than or equal to $x$, and prove $f(x+1)=x+1$. Note that to preserve the injectivity of $f$, we must have $f(x+1)>x$. Then, let $a=2$, $b=x$, and we must have $x+2 > f(x+1)$. This implies $f(x+1)=x+1$, which completes the inductive step. We are now done. $\blacksquare$
This post has been edited 1 time. Last edited by Sedro, Jun 17, 2024, 2:56 PM
Reason: Cleaned up proof
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Bryan0224
60 posts
#86
Y by
Guys I really don’t know latex
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihatemath123
3449 posts
#87
Y by
The only solution is $f(x)=x$, which is easy to check.

Taking $P(1,a)$ gives us $f(a) = f(a+f(1)-1)$. If $f(1) \neq 1$, it follows that $f(x)$ is periodic with period $f(1)-1$; then, in our original equation, we can repeatedly increase $a$ by $f(1)-1$ to get a contradiction. So, $f(1) = 1$.

Taking $P(a,1)$ gives us $a = f(f(a))$, so in particular, $f$ is injective.

Claim: We have $f(x) \geq x$.
Proof: If $f(a+1) \leq a$, then taking $P(f(a+1),b)$ for any integer $b$ gives us \[f(a+b) \leq a-1+f(b),\]contradicting injectivity.

Combining the above claim with $f(f(x))$ gives us $f(x)=x$, as desired.
This post has been edited 2 times. Last edited by ihatemath123, Aug 11, 2024, 3:25 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
639 posts
#88
Y by
Solved with reni_wee. A bit long winded, but this was the solution that we found. Really fun and different kind of problem.

The answer is $f(n) = n$ for all $n\in \mathbb{Z}_{>0}$. It’s easy to see that these functions satisfy the given equation. We now show these are the only solutions. Let $P(a,b)$ be the assertion that $a$ , $f(b)$ and $f(b+f(a)-1)$ are the sides of a non-degenerate triangle. We start off by proving the following characteristic of $f$.

Claim : The function $f$ is an involution, i.e $f(f(a))=a$ for all positive integers $a$.
Proof : Note that from $(1,b)$ we have,
\[f(b)-1 < f(b+f(1)-1)< f(b)+1\]which implies $f(b+f(1)-1)=f(b)$ for all positive integers $b$. Now, if $f(1)>1$ this implies that $f$ is periodic with period $T = |f(1)-1|$. Then, since $f$ is a periodic function over the positive integers it must be bounded both above and below. Say $f(m)=M$ is the maximum of this function. Then, $P(2M,m)$ implies,
\[2M < f(m)+f(m+f(M)-1)\le 2M\]which is a clear contradiction. Thus, $f$ cannot be periodic and hence $f(1)=1$. Then, $P(a,1)$ implies,
\[a-1=a -f(1) < f(f(a))<a+f(1)a+1\]and thus, $f(f(a))=a$ for all positive integers $a$ as desired.

Note that now in fact $f$ is both injective and surjective. Next we look at $P(2,f(b))$. This tells us that
\[2 , f(f(b)) \text{ and } f(f(b)+f(2)-1)\]are the sides of a non-degenerate triangle. Thus, $2 , f(b)$ and $f(f(b)+f(2)-1)$ are sides of a non-degenerate triangle. This implies,
\[b-2 < f(f(b)+f(2)-1)<b+2\]We now have 3 cases to explore.

Case 1 : $f(f(b)+f(2)-1) = b$. Thus,
\[f(f(b)+f(2)-1)=b = f(f(b))\]which since $f$ is injective implies $f(b)+f(2)-1=f(b)$ or $f(2)=1$ which is a clear contradiction.

Case 2 : $f(f(b)+f(2)-1)=b-1$. Thus,
\[f(f(b)+f(2)-1)=b-1=f(f(b-1))\]which since $f$ is injective implies $f(b)+f(2)-1=f(b-1)$ But for $f=2$ this rewrites to $2f(2)-1=f(1)=1$ which implies $f(2)=1$ which is again a clear contradiction.

Case 3 : $f(f(b)+f(2)-1)=b+1$. Thus,
\[f(f(b)+f(2)-1)=b-1=f(f(b+1))\]which since $f$ is injective implies $f(b)+f(2)-1 = f(b+1)$. Thus,
\[f(b+1)=f(b)+f(2)-1 \ge f(b)+1>f(b)\]implies that $f$ is strictly increasing. Combining this with our previous observation that $f$ is injective and surjective, it follows that $f$ is indeed the identity function, as claimed.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8868 posts
#89
Y by
This solution is very clear and motivated, making the problem nice but not particularly difficult.

From letting $a = 1$, we have $f(b) = f(b+f(1) - 1)$ for all $b \in \mathbb N$. If $f(1) - 1 > 0$, then $f$ is eventually periodic, thus taking sufficiently large $a$ in the original assertion yields a contradiction.

Thus $f(1) = 1$. Setting $b = 1$, it follows that $f(f(a)) = a$, hence $f$ is bijective.

Claim: [Key Claim] For all $n \in \mathbb N$, $f(n+1) = f(n) + f(2) - 1$.

Proof: We induct on $n$, with the $n=1$ case clear. First, observe that
\[n-1 \leq f(f(n) + f(2) - 1) \leq n+1\]by the condition.

First Case: If $f(f(n) + f(2) - 1) = n-1$, applying $f$ to both sides yields \[f(n) = f(n-1) - (f(2) - 1).\]But the inductive hypothesis forces $f(2) = 1$, which contradicts $f$ bijective.

Second Case: If $f(f(n) + f(2) - 1) = n$, applying $f$ to both sides yields $f(n) = f(n) - (f(2) - 1)$, hence once again $f(2) = 1$, contradiction.

Third Case: If $f(f(n) + f(2) - 1) = n+1$, applying $f$ to both sides yields $f(n) + f(2) - 1 = f(n+1)$, which is the desired conclusion. $\blacksquare$

So $f$ is bijective and linear, implying $f \equiv n$, which works.
This post has been edited 2 times. Last edited by HamstPan38825, Nov 5, 2024, 4:28 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bin_sherlo
733 posts
#90 • 1 Y
Y by tiny_brain123
Answer is $f(n)=n$ for each positive integer.
Claim: $f(1)=1$.
Proof:$a=1$ implies $f(b)=f(b+f(1)-1)$. If $f(1)\neq 1$, then $f$ is periodic. Denote by $T$ the period. \[f(b)+f(b+f(a)-1)=f(b)+f(b+f(a+nT)-1)\geq a+nT\]Which is impossible for sufficiently large $n$.$\square$
$b=1$ gives $f(f(a))=a$ hence $f$ is an involution. This yields $f$ is bijective.
Claim: $f(2)-1\geq |f(a+1)-f(a)|$.
Proof: $a,b\rightarrow f(a),2$ implies $f(2)+f(a+1)\geq f(a)+1\iff f(2)-1\geq f(a)-f(a+1)$. Similarily $f(a)+f(2)\geq f(a+1)+1\iff f(2)-1\geq f(a+1)-f(a)$ which gives the conclusion.$\square$
Claim: $f(2)=2$.
Proof: Let $f(c)=2\iff f(2)=c$ by injectivity. Note that $c\neq 1$. $f(a),c,f(a+1)$ are sides hence $a=c-1$ yields $c+1\geq f(c-1)\geq c-1$. Now we split into $3$ cases.
Suppose that $f(c-1)=c$. Then, $c=3$ by injectivity and $f(a),2,f(a+2)$ are sides which implies $f(a+2)\leq f(a)+1$. Since $f(1)=1,f(3)=2$, induction with utilising injectivity gives $f(2k-1)=k$. However, $4k-3=f(f(4k-3))=f(2k-1)=k$ does not hold for $k>1$ which results in a contradiction.
Assume that $f(c-1)=c+1\iff f(c+1)=c-1$. We observe that $f(a),f(c+1),f(a+c)$ are sides of a triangle thus, $f(a+c)-f(a)\leq c-2$. Let $m_i$ be the maximum among $\{f((i-1)c+1),\dots,f(ic)\}$. $m_i$ increases at most $c-2$ hence \[\max\{f(1),\dots,f(nc)\}\leq m_1+(n-1)(c-1)=m_1+cn-n-c+1\]Since $f$ is injective, $\max\{f(1),\dots,f(nc)\}\geq nc$ which implies $m_1+cn-c-n+1\geq cn$ or $m_1-c\geq n$ which is impossible for sufficiently large $n$.
So we get $f(c-1)=c-1$. Pick $a=c,b=c-1$ which yields $f(c),f(c-1),f(2c-2)$ are sides or $2,c-1,f(2c-2)$ are sides. Thus, $f(2c-2)\leq c$. Choose $b=2c-2$ to get $f(a),f(2c-2),f(a+2c-3)$ are sides. So we conclude that
\[f(a+2c-3)\leq f(a)+f(2c-2)-1\leq f(a)+c-1\implies f(a+2c-3)-f(a)\leq c-1\]Let $m_i$ be the maximum among $\{f((i-1)(2c-3)+1),\dots,f(i(2c-3))\}$. $m_i$ increases at most $c-1$ thus,
\[\max\{f(1),\dots,f(n(2c-3))\}\leq m_1+(c-1)(n-1)=m_1+cn-c-n+1\]Since $f$ is injective, $\max\{f(1),\dots,f(n(2c-3))\}\geq n(2c-3)$ so $2cn-3n\leq m_1+cn-c-n+1$ which is equavilent to $(c-2)n\leq m_1-c+1$. Since $c\neq 1$ and $c$ cannot be larger than $2$, $c=2$.$\square$
We have $|f(a+1)-f(a)|\leq 1$ and $f$ is injective hence $f(n)=n$ for all positive integers as desired.$\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathandski
772 posts
#91
Y by
Subjective Rating (MOHs) $       $
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
658 posts
#92
Y by
The answer is $f\equiv x.$
Pick $a = 1$ first, and we have $f(b) = f(b + f(1) - 1).$ If $f(1)\neq1,$ then $f$ has period $f(1) - 1 > 1.$ However, if we fix $b,$ and pick an arbitrarily large $a \equiv1\pmod{f(1)-1}$ such that $a > f(b) + f(b + f(1) - 1),$ then this is a contradiction. Thus, $f(1) = 1.$

Take $b = 1$ and we get that $f$ is an involution.
Hence, $f$ is injective and surjective.

Plug in $b = f(b)$ and we get the new equation $a, b, f(f(a) + f(b) - 1)$ forms a triangle.

We now prove $f\equiv x$ using strong induction.
Assume $f(s) = 2.$ Take $2, 2$ and we get $4 > f(3).$ Hence, either $f(3) = 2$ or $f(3) = 3.$
In the first case, we have $f(3) = 2, f(2) = 3.$ Take $2, 2$ and so $4 > f(5),$ contradiction.
To finish, easy induction suffices. Assume $f(k) = k$ for all $k < n.$
Take $n-1, 2$ and we get $f(n) < n + 1,$ so $f\equiv n.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
asdf334
7585 posts
#93
Y by
hey that was kind of fun lol
Okay so we need to brainstorm. The first piece of information we can get comes from plugging in $a=1$; we get $f(b)=f(b+f(1)-1)$. In that case if $f(1)\ne 1$ then we ultimately find that $f$ is periodic and thus bounded, a contradiction to the original triplet given as we can set $a$ to be large.

Thus $f(1)=1$, hence we obtain from $b=1$ that $a=f(f(a))$. Now write $a\to f(a)$ to get the nicer triplet $f(a)$, $f(b)$, and $f(a+b-1)$.

Turns out we are almost done. Suppose that $f(2)=S$ and $f(S)=2$. What information can we get from this? Well, we can set $a+b-1=S$, but this restricts our options and doesn't work as well.

Instead write $a=S$ to obtain that $(2,f(b),f(b+S-1))$ form the side lengths of a triangle. Note that $f$ is injective and surjective; if $S>2$ then we must have $|f(b)-f(b+S-1)|=1$. But now consider the set $\{b+0(S-1),b+1(S-1),b+2(S-1),\dots\}$. When adjacent values in the set are plugged into $f$, they yield consecutive outputs. Furthermore, all outputs are distinct. As a result, the outputs are simply $\{f(b)+0,f(b)+1,f(b)+2,\dots\}$.

But if $S>2$ then there are still an infinite number of inputs outside this set, and only a finite number of outputs left (less than $f(b)$). That is a contradiction, so $S=f(2)=2$.

Hence $f(n)\le n$ for $n\in \{1,2\}$. Now we can induct: if $f(n)\le n$ and $n\ge 2$, write
\[n+2\ge f(n)+f(2)>f(n+1)\]thus proving that $f(n+1)\le n+1$ and so $f(n)\le n$ always. As $f$ is injective we get $f(n)=n$ always, done. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
fearsum_fyz
56 posts
#94
Y by
Note that the given condition can be rewritten as
$$|a - f(b)| < f(b + f(a) - 1) < a + f(b)$$
Claim 1: $f(1) = 1$.
Proof. Substituting $a = 1$ gives
$f(b) - 1 < f(b + f(1) - 1) < f(b) + 1$
$\implies f(b + f(1) - 1) = f(b)$
Now assume, for the sake of contradiction, that $d = f(1) - 1 > 0$. We have $f(1 + nd) = f(1) = d + 1$ for any $n \in \mathbb{N}$.
Then substituting $a = 1 + nd, b = 1$ into $a < f(b) + f(b + f(a) - 1)$ gives
$1 + nd < f(1) + f(1 + f(1 + nd) - 1) = f(1) + f(1 + d) = 2f(1) = 2d + 2$ for all $n \in \mathbb{N}$, a contradiction. $\square$

Claim 2: $f$ is an involution.
Proof. Simply plug in $b = 1$, giving $a - 1 < f(f(a)) < a + 1$, forcing $f(f(a)) = a$. $\square$

We can now try to replicate the 'sandwiching' we did, but with $a = 2$ instead of $1$, leading to the following claim:

Claim 3: Let $f(2) - 2 = d$. Then $f(b + (d + 1)) = f(b) \pm 1$ for all $b$.
Proof. Note that $f(b) - 2 < f(b + d + 1) < f(b) + 2$, but $f(b + d + 1) \neq f(b)$ by Claim 2. Hence, $f(b + d + 1) = f(b) \pm 1$. $\square$

Using Claim 2 again, this can be further rewritten as:

Claim π: For all $b$, either $f(b + 1) = f(b) + (d + 1)$ or $f(b - 1) = f(b) + (d + 1)$.

Now we are at the home stretch. We can show, by induction, that we'll always have the first case and never the second one.

Finish: As the base case, we have $f(1) = 1$ and $f(2) = d + 2$.
Assume, as the inductive hypothesis, that $f(b + 1) = f(b) + (d + 1)$ for all $b \leq n - 1$. We'd like to show that $f(n + 1) = f(n) + (d + 1)$.
Assume for the sake of contradiction that $f(n + 1) \neq f(n) + (d + 1)$. Then $f(n - 1) = f(n) + (d + 1)$ by Claim π.
However, by the inductive hypothesis, $f(n - 1) = f(n) - (d + 1)$. This is a contradiction.

We are done.
This post has been edited 1 time. Last edited by fearsum_fyz, Apr 26, 2025, 11:19 AM
Reason: clarity
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lelouchvigeo
183 posts
#95 • 1 Y
Y by alexanderhamilton124
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mkultra42
25 posts
#96
Y by
Setting \(a=1\) gives \(f(b)=f(b+f(1)-1)\) which implies \(f(b+k(f(1)-1))=f(b)\).

If \(f(1)-1>0\), then for a fixed \(b\) and \(a=a+k(f(1)-1)\), for \(k\) large enough, gives a contradiction.

Thus \(f(1)=1\).

Now for \(b=1\) we get \(a=f(f(a))\). In particular, the function is bijective.

For \(b=f(2)\) we get \(f(a+(f(2)-1))= f(a) \pm 1\).

Assume that the sign is not always \(+\), and note that it cannot be \(-\) indefinitely, so there must be \(k\) such that:

\[f(a+k(f(2)-1))=f(a+(k-1)(f(2)-1))-1,\quad f(a+(k+1)(f(2)-1))=f(a+k(f(2)-1))+1=f(a+(k-1)(f(2)-1))\]
We get a contradiction by injectivity.

Thus, \(f(a+k(f(2)-1))=f(a)+k\).

For \(a=1\) we get \(f(1+k(f(2)-1))=k+1=f(f(k+1)) \implies f(k+1)=1+k(f(2)-1))\).

Surjectivity tells us that we must have \(f(2)-1=1\) and thus \(f(n)=n, \forall n\).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
maromex
205 posts
#97
Y by
Here's a lemma. If a triangle has a side length $1$, and the other side lengths $x, y$ are positive integers, by Triangle Inequality $x + 1 > y \implies x \ge y$ and $y + 1 > x \implies y \ge x$. This implies $x = y$.

Let $a = 1$, we see that $f(b) = f(b + f(1) - 1)$. This means, either $f$ is periodic or $f(1) = 1$.

If we let $a$ be arbitrarily large, while fixing $b$, we see that $f(b) + f(b + f(a) - 1) > a$ which implies $f(b + f(a) - 1)$ can be arbitrarily large. Periodic functions over positive integers cannot be arbitrarily large, so conclude that $f(1) = 1$.

Now plug in $b = 1$, we see that $a = f(f(a))$. Therefore $f$ is bijective.

Plug in $b = f(2)$. Because $2 = f(f(2))$, we have $a, 2$ and $f(f(2) + f(a) - 1)$ as sides of a triangle. This implies $a + 2 > f(f(2) + f(a) - 1)$ and $f(f(2) + f(a) - 1) + 2 > a$. Together, these statements give us $$a + 1 \ge f(f(2) + f(a) - 1) \ge a - 1$$for all $a$. This implies $f(f(2) + f(a) - 1)$ is equal to $f(f(a+1))$ or $f(f(a))$ or $f(f(a - 1)).$ Because $f$ is bijective, we will have $f(2) + f(a) - 1$ equal to $f(a+1)$ or $f(a)$ or $f(a-1)$. Now, $f(2) \neq 1$ because we already have $f(1) = 1$. Thus, we have \[f(2) + f(a) - 1 = f(a + 1) \text{ or } f(a-1) \tag{1}\]for all $a$.

We prove by induction that the claim \[f(2) + f(n) - 1 = f(n + 1) \]is true for all positive integers $n$. The base case $n=1$ is verified by our previous result that $f(1) = 1$. Now suppose for contradiction, that, for some $n$ where the claim is true, we have the claim false for $n+1$. This implies $$f(2) + f(n+1) - 1 = f(n)$$by (1). However, plugging in our claim for $n$ gives us $$f(2) + f(2) + f(n) - 1 - 1 = f(n) \implies f(2) = 1.$$We already know $f(2) \neq 1$, contradiction, our claim is proven.

It immediately follows from the claim that $f(2) - 1 = f(n+1) - f(n)$. The difference between consecutive values of $f$ is constant, and therefore $f$ is linear. We know $f(1) = 1$, so let's say $f(n) = k(n-1) + 1$. Because $f$ is surjective, we must have $k=1$. Therefore, $f(n) = n$. The given condition reduces to the assertion that $a, b, a+b-1$ are side lengths of a triangle. This is true because $a + b > a + b - 1$ and $a + 2b - 1 > a$ and $2a + b - 1 > b$, so this function does work, and we are done.
Z K Y
N Quick Reply
G
H
=
a