We have your learning goals covered with Spring and Summer courses available. Enroll today!

G
Topic
First Poster
Last Poster
k a March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/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, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
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
Tuesday, Mar 25 - Jul 8
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
Sunday, Mar 23 - Jul 20
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
Sunday, Mar 16 - Jun 8
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
Monday, Mar 17 - Jun 9
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
Sunday, Mar 2 - Jun 22
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
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
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
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
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
Sunday, Mar 23 - Aug 3
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
Sunday, Mar 16 - Aug 24
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
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
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
Sunday, Mar 23 - Jun 15
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
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
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
Monday, Mar 24 - Jun 16
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
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
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
Mar 2, 2025
0 replies
Diophantine equation
PaperMath   8
N 11 minutes ago by jlcong
Find the $5$ smallest positive solutions of $x$ that has an integer $k$ that satisfies $x^2=3k^2+4$
8 replies
PaperMath
Mar 12, 2025
jlcong
11 minutes ago
How many ordered pairs of numbers can we find?
BR1F1SZ   2
N 16 minutes ago by BR1F1SZ
Source: 2024 Argentina TST P6
Given $2024$ non-negative real numbers $x_1, x_2, \dots, x_{2024}$ that satisfy $x_1 + x_2 + \cdots + x_{2024} = 1$, determine the maximum possible number of ordered pairs $(i, j)$ such that
\[
x_i^2 + x_j \geqslant \frac{1}{2023}.
\]
2 replies
BR1F1SZ
Jan 25, 2025
BR1F1SZ
16 minutes ago
IMO 2009, Problem 5
orl   87
N 21 minutes ago by asdf334
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
87 replies
orl
Jul 16, 2009
asdf334
21 minutes ago
1978 USAMO #1
Mrdavid445   54
N 34 minutes ago by Marcus_Zhang
Given that $a,b,c,d,e$ are real numbers such that

$a+b+c+d+e=8$,
$a^2+b^2+c^2+d^2+e^2=16$.

Determine the maximum value of $e$.
54 replies
Mrdavid445
Aug 16, 2011
Marcus_Zhang
34 minutes ago
No more topics!
IMO 2009, Problem 5
orl   87
N 21 minutes ago by asdf334
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
87 replies
orl
Jul 16, 2009
asdf334
21 minutes ago
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.
Spectator
657 posts
#79 • 1 Y
Y by gracemoon124
Spectator wrote:
Click to reveal hidden text
Legend says he still hasn't found time to rigorously do this

the real rigorous solve was the friends we made along the way
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
DongerLi
22 posts
#80
Y by
The only solution is $f(x) = x$ for all $x \in \mathbb{Z}_{>0}$. It is easy to confirm that this solution works.

Denote the given assertion as $P(a, b)$. $P(1, b)$ states that $1, f(b), f(b + f(1) - 1)$ are the sides of a non-degenerate triangle. Hence, $f(b) = f(b + f(1) - 1)$ for all $b \in \mathbb{Z}_{>0}$.

Case 1: $f(1) > 1$. Note that $f$ is periodic with period $f(1) - 1$, and thus has a maximum $M$. However, the assertion $P(2M, 1)$ states that $2M \geq f(1) + f(f(1)) > 2M$. Contradiction.

Case 2: $f(1) = 1$. $P(a, 1)$ states that $a, 1, f(f(a))$ are the sides of a non-degenerate triangle. Thus, $a = f(f(a))$ and so $f$ is a bijection. Let $g(a) = f(f(a) + f(2) - 1)$ for all $a \geq 1$. Furthermore, $P(a, f(2))$ states that $a, 2, g(a)$ are the sides of a non-degenerate triangle. By the Triangle Inequality,
\[g(a) \in \{a-1, a+1\}\](since $f(a) + f(2) - 1 > f(a)$ and $f$ is bijective, $g(a) \neq a$). Note that by injectivity, all $g(a)$ are distinct. Since $f(2) + f(2) - 1 \neq 1$, $g(2) \neq 1$, and so $g(2) = 3$. Since $f(3) + f(2) - 1 \neq f(2)$, $g(3) \neq 2$, and so $g(3) = 4$.

Claim: For all $a \geq 2$, $g(a) = a + 1$.

Proof: Proceed by induction. The claim is true for $a = 2, 3$. Suppose the claim is true for all $a \leq k - 1$, where $k \geq 4$. Then since $g(k) \neq g(k - 2) = k - 1$ and $g(k) \in \{k - 1, k + 1\}$, $g(k) = k + 1$, completing our induction.

Note that for all $a \geq 2$, $f(a) + f(2) - 1 \geq 2 + 2 - 1 = 3$. Hence, for all $a \geq 2$, $a + 1 = g(a) \neq f(2)$. Since $f$ is injective, $f(2) = 2$. Simple induction gives $f(x) = x$ for all $x \in \mathbb{Z}_{>0}$.
This post has been edited 1 time. Last edited by DongerLi, Jul 5, 2023, 5:09 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Math4Life7
1703 posts
#81
Y by
We plug $a = 1$. This gives that $f(b) = f(b+f(1) - 1)$. FTSOC assume that $f(1) \neq 1$. This means that $f(b) = f(b+c)$ for some positive constant $c$. This means that in our original equation we can increase $a$ to an arbitrarily large number and still have the same values for the other two sides. Contradiction.

We can plug in $b = 1$ to see that $f(f(a)) = a$. This means that $f$ is both surjective and injective.

We prove by strong induction that $f(x) = x$. Our base case is trivial.

Now we try to prove that $f(k) = k$ and we know that $f(x) = x$ for all $x <k$
We look at $P(2, k)$ where and see that $f(k + f(2) - 1) \in {f(k) - 1, f(k), f(k) + 1}$. If $f(k + f(2) - 1) = f(k) - 1$ then we can keep adding $f(2) - 1$ inside the function and make it negative which is impossible. If we have $f(k+f(2) - 1) = f(k)$ then by injectivity we have $f(2) = 1$ which is impossible because $f(1) = 1$. So, we must have $f(k+f(2) - 1) = f(k) + 1$. We can see that $f(k+x(f(2) - 1))$ takes on all values of $f$ such that $f(x) \geq f(k) + 1$ by injectivity. Thus we must have $f(k) = k$ $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bobthegod78
2982 posts
#82
Y by
Very cool problem! Let $P(a,b)$ denote the assertion.

Initially, we prove $f$ is unbounded. If $f$ was bounded, then take a sufficiently large $a$, and obviously the statement is not true.

We claim $f(1)=1$. Consider $P(1,b)$, then obviously $f(b) = f(b + f(1)-1)$.
If indeed $f(1)>1$, then the sequence would be periodic every $f(1)-1$ terms, implying that the image of $f$ is $f(1), f(2), \dots, f(f(1)-1)$. But this implies $f$ is bounded, contradiction.

Then taking $P(a,1)$, we have $f(f(a))=a$, so $f$ is an involution and therefore bijective.

We prove that $f((k-1)f(2) - (k-2)) = k$ for $k\geq 2$ through induction. The base case, $k=2$, is obvious.
Now assume this is true for $k=2, 3, \dots, m$. Consider $P(2,(m-1)f(2) - (m-2))$. We have $2, m, f(m f(2) - (m-1))$ are the sides of a triangle. Since $f$ is bijective, in fact, we must have $f(mf(2)-(m-1))=m+1$. This proves the claim.

But since $f((k-1)f(2) - (k-2))=k$, the set $S = \{(k-1)f(2) - (k-2) \mid k\geq 2, k \in \mathbb N \}$ must contain all the positive integers at least 2, which implies $f(2)=2$. It is easy to see this finishes.
This post has been edited 1 time. Last edited by bobthegod78, Nov 17, 2023, 11:19 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
abeot
123 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
5811 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
53 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
3430 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
548 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
8853 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
661 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
711 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
296 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
7580 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
N Quick Reply
G
H
=
a