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
Prime for square numbers
giangtruong13   1
N 25 minutes ago by shanelin-sigma
Source: City’s Specialized Math Examination
Given that $a,b$ are natural numbers satisfy that: $\frac{a^3}{a+b}$ and $\frac{b^3}{a+b}$ are prime numbers. Prove that $$a^2+3ab+3a+b+1$$is a perfect squared number
1 reply
1 viewing
giangtruong13
an hour ago
shanelin-sigma
25 minutes ago
Inspired by hunghd8
sqing   0
26 minutes ago
Source: Own
Let $ a,b,c\geq 0 $ and $ a+b+c\geq 2+abc . $ Prove that
$$a^2+b^2+c^2-\frac{1}{2}a^2b^2c^2\geq 2$$$$a^2+b^2+c^2-abc-\frac{1}{2}a^2b^2c^2\geq \frac{3}{2}$$$$a^2+b^2+c^2- \frac{19}{10}abc-\frac{1}{2}a^2b^2c^2\geq -\frac{12}{25}$$$$a^2+b^2+c^2- \frac{3}{2}abc-\frac{1}{2}a^2b^2c^2\geq \frac{17\sqrt{17}-71}{16}$$
0 replies
2 viewing
sqing
26 minutes ago
0 replies
Find min
hunghd8   3
N 41 minutes ago by sqing
Let $a,b,c$ be nonnegative real numbers such that $ a+b+c\geq 2+abc $. Find min
$$P=a^2+b^2+c^2.$$
3 replies
hunghd8
4 hours ago
sqing
41 minutes ago
Interesting inequality
sqing   5
N an hour ago by sqing
Source: Own
Let $ a,b >0. $ Prove that
$$  \frac{1}{\frac{a}{a+b}+\frac{a}{2b}} +\frac{1}{\frac{b}{a+b}+\frac{1}{2}} +\frac{a}{2b} \geq \frac{5}{2}  $$
5 replies
sqing
Feb 26, 2025
sqing
an hour ago
No more topics!
Iterated FE on positive integers
MarkBcc168   61
N Mar 18, 2025 by pi271828
Source: ELMO 2020 P1
Let $\mathbb{N}$ be the set of all positive integers. Find all functions $f : \mathbb{N} \to \mathbb{N}$ such that $$f^{f^{f(x)}(y)}(z)=x+y+z+1$$for all $x,y,z \in \mathbb{N}$.

Proposed by William Wang.
61 replies
MarkBcc168
Jul 28, 2020
pi271828
Mar 18, 2025
Iterated FE on positive integers
G H J
G H BBookmark kLocked kLocked NReply
Source: ELMO 2020 P1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MarkBcc168
1594 posts
#1 • 3 Y
Y by Euler01, samrocksnature, megarnie
Let $\mathbb{N}$ be the set of all positive integers. Find all functions $f : \mathbb{N} \to \mathbb{N}$ such that $$f^{f^{f(x)}(y)}(z)=x+y+z+1$$for all $x,y,z \in \mathbb{N}$.

Proposed by William Wang.
This post has been edited 2 times. Last edited by MarkBcc168, Jan 2, 2021, 1:25 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
GeoMetrix
924 posts
#2 • 17 Y
Y by Math-wiz, amar_04, srijonrick, mijail, Deemaths, somebodyyouusedtoknow, A-Thought-Of-God, biomathematics, snakeaid, samrocksnature, math31415926535, Chokechoke, Vladimir_Djurica, Sedro, soryn, aidan0626, MS_asdfgzxcvb
Let $P(x,y,z)$ denote the assertion $$f^{f^{f(x)}(y)}(z)=x+y+z+1$$. Notice that $P(x,y,f(z))$ implies $$f^{f^{f(x)}(y)}(f(z))=x+y+f(z)+1$$but also $$f^{f^{f(x)}(y)}(f(z))=f(f^{f^{f(x)}(y)}(z))=f(x+y+z+1)$$So we can deduce that $$f(x+y+z+1)=x+y+f(z)+1$$Now notice that we can write every natural number $\geq 3$ as $x+y+1$ for $x,y \in \mathbb{N}$ so we get that $f(k+z)=f(z)+k $ $\forall k \in \mathbb{N}$ such that $k \geq 3$. Now notice that by this we get that
\begin{align*}
& f(z+4)=f(z)+4 \\
& f(z+4)=f(z+1)+3 \\
\end{align*}And so we get that $$f(z+1)=f(z)+1 \forall z \in \mathbb{N}$$and this implies that $$f(z)=z+f(1)-1 \forall z \in \mathbb{N}$$Let $f(1)-1=c$. Substituing this in the original assertion yields that
\begin{align*}
& f^{f^{f(x)}(y)}(z) \\
& =f^{f^{x+c}(y)}(z) \\
&=f^{y+c\cdot (x+c)}(z) \\
&=z+(y+c \cdot (x+c))\cdot c \\
&=z+cy+c^2x+c^3 \\
\end{align*}Notice that clearly if $c>1$ then $z+cy+c^2x+c^3 > x+y+z+1$ which is a contradicition so $c=1$ and we get that $f(x)=x+1 \forall x \in \mathbb{N}$ which clearly works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Omega18
161 posts
#3 • 5 Y
Y by Deemaths, samrocksnature, Zaro23, sophiawang85, soryn
Let $P(x,y,z) : f^{f^{f(x)}(y)}(z) = x+y+z+1 \ \forall \ x,y,z \in \mathbb{N} $
We will show that $f(x) = x+1 \ \forall \ x \in \mathbb{N} $
Claim : $f$ is injective
Let $ f(z) = f(w) $ let $ k = f^{f(x)}(y) $
Then $ f^k(z) = f^k(w) \Rightarrow z = w $.

Claim : $f(x) > 1 \ \forall \ x \in \mathbb{N} $
Suppose on the contrary $\exists \ a \in \mathbb{N} $ such that $ f(a) = 1 $
Plugging $P(1,1,1)$ gives $ 3a=0 $(Contradiction).

Lemma : Let $a,b \in \mathbb{N} $ such that $f^a(x) = f^b( x) \ \forall \ x \in \mathbb{N} $ then $ a=b $.
Suppose $ a > b $ and let $ c = a-b$
Now as $f$ is injective we get $ f^c(x) = x \ \forall \ x \in \mathbb{N} $
Then we get $ f $ is surjective but we have already shown that $ \not \exists \ a \in \mathbb{N} $ such that $f(a) = 1$ ( Contradiction ).
Hence $ a=b $.

Now $ f^{f^{f(x)}(y)}(z) = x+y+z+1 = f^{f^{f(y)}(x)}(z) $ Now using our lemma we get $\boxed{ f^{f(x)}(y) = f^{f(y)}(x) \ \forall \ x,y \in \mathbb{N} }$

Let $ k = f^{f(y) - 1 }( z) $
Then $f^{f(x) + f(y) - 1 }(z) = f^{f(x)} (k) = f^{f(k)} (x) = f^{ f^{ f(y) }(z) } (x) = f^{ f^{f(y)}(x)}(z) $
And again using our lemma we deduce that $ \boxed{f^{f(y)}(x) = f(x)+f(y)-1 \ \forall \ x,y \in \mathbb{N} }$

Let $ f(1) = c $
Then $ P(1,1,z) : f^{2c-1}(z) = z+3 \ \forall \ z \in \mathbb{N} $
And $ f^c(x) = f(x) + c - 1 $
Plugging $ x = f^{c-1}(z) $ we get
$ f^{2c-1}(z) = f^c(z) + c-1 $
$ \Rightarrow f(z) = z + 5 - 2c $, plugging $z=1$ we get $ c=2 $ and hence $\boxed{ f(z) = z+1 \ \forall \ z \in \mathbb{N }} $
Which indeed is the only solution.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Severus
742 posts
#4 • 2 Y
Y by samrocksnature, soryn
Claim 1: The function $f$ is injective.
Proof: Suppose $f(x)=f(y)$. Then $f^{f^{f(x)}(x)}(x)=f^{f^{f(y)}(y)}(y)$, or $3x+1=3y+1$ implying that $x=y$. $\square$

Claim 2: Let $\text{ran}(f)$ denote the range of $f$. Then $1\not\in \text{ran}(f)$.
Proof: Suppose otherwise that $f(x)=1$. Then $f^{f^{f(x)}(x)}(x)=f^{f(x)}(x)=f(x)=1=3x+1$ which gives $x=0$, contradiction. $\square$

Claim 3: Let $u,v,x,y\in\mathbb{N}$ such that $u+v=x+y=k$ (say). Then $f^{f(x)}(y)=f^{f(u)}(v)$.
Proof: Fix some $z\in\mathbb{N}$. Then $f^{f^{x}(y)}(z)=x+y+z+1=u+v+z+1=f^{f^{u}(v)}(z)$. Let $m=f^{f(x)}(y)$ and $n=f^{f(u)}(v)$. WLOG $m\geq n$. Then $f^{m-n}(z)=z$. Also $f^n(z)=z+k+1$. Note that for any $l\in \mathbb{N}$, we have $f^{l(m-n)}(z)=f^{m-n}(z)=z$ and $f^{ln}(z)=z+l(k+1)$. Thus $f^{n(m-n)}(z)=z=z+(m-n)(k+1)$ which is only possible if $m=n$. $\square$

Claim 4: The minimum element of $\text{ran}(f)$ is $f(1)$.
Proof: Suppose that the minimum element is $f(k)$. If $k\neq 1$, then by Claim 3, we have $f^{f(1)}(k)=f^{f(k)}(1)$, so $f^{f(1)-f(k)}(k)=1$ implying that $1\in\text{ran}(f)$, which is false by Claim 2. So we can conclude that $k=1$. $\square$

Claim 5: The range of $f$ is $\{2,3,4,\dots \}$.
Proof: We already know that $1$ is not in the range. Now for any other $x\in \mathbb{N}$ we have $f(x)>f(1)$, so $f^{f(x)}(1)=f^{f(1)}(x)$ or $f^{f(x)-f(1)}(1)=x$ and so $x\in\text{ran}(f)$. $\square$
(As a direct corollary, we have $f(1)=2$)

Claim 6: For all $n\in\mathbb{N}$, we have $f^n(1)=f(1)+n-1=n+1$.
Proof: Note that for all $a,b\in \mathbb{N}$, we have $f^{f^{f(a)}(b)}(1)=f^{f^{f(a)}(1)}(b)=a+b+2$. If $b\neq 1$, then $f^{f(a)}(b)\neq f^{f(a)}(1)$. If $f^{f(a)}(b)< f^{f(a)}(1)$, then we'll get $f^{f^{f(a)}(1)- f^{f(a)}(b)}(b)=1$ which cannot be possible. So $f^{f(a)}(b)> f^{f(a)}(1)$ for all $a,b\in \mathbb{N}$. Choosing $b=2=f(1)$, we get $f^{f(a)}(f(1))=f^{f(a)+1}(1)>f^{f(a)}(1)$. Since this holds for all $a\in\mathbb{N}$, and since $f(a)\geq 2$, it follows that $f(1)<f^2(1)<f^3(1)<\dots$ and so on. Now note that every $x\in \{2,3,4,\dots\}$ can be written as $f^m(1)=x$ where $m=f(x)-f(1)$. Also if $k\neq l$, then $f^{k}(1)\neq f^l(1)$ because otherwise $1\in\text{ran}(f)$. Thus each $x$ can be uniquely written as $f^m(1)=x$. All this implies that $\{f(1),f^2(1), f^3(1),\dots\}=\{2,3,4,\dots\}$, and the monotonicity of $f^k(1)$ gives us $f(1)=2$, $f^2(1)=3$, $f^3(1)=4$ and generally $f^k(1)=f(1)+k-1=2+k-1=k+1$. $\square$

The Conclusion: Now from Claim 6, for all $k>1$, we have $k+1=f^k(1)=f(f^{k-1}(1))=f(k-1+1)=f(k).$ Combining this with $f(1)=2$, we get that $f(x)=x+1$ for all $x\in\mathbb{N}$. We can verify that this function works. Hence $\boxed{f(x)=x+1}$ is the only solution. $\blacksquare$
This post has been edited 1 time. Last edited by Severus, Aug 3, 2020, 5:32 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathematicsislovely
245 posts
#5 • 5 Y
Y by samrocksnature, Mango247, Mango247, Mango247, soryn
Solution:
Let $P(x,y,z)$ denote the assertion that
$f^{f^{f(x)}(y)}(z) = x+y+z+1$

$\textcolor{blue}{Claim1:}$There does not exists a $a\in \mathbb N$ such that $f(a)=1$.
$\textcolor{red}{Proof:}$ FTSOC, assume there exists such $a\in \mathbb N$ such that $f(a)=1$.Then $P(a,a,a)$ gives:
$f^{f^{f(a)}(a)}(a) =a+a+a+1=3a+1$
or,$f^{f(a)}(a) =3a+1$
or,$f(a)=3a+1$
or,$1=3a+1$
or,$a=0$.Contradiction.
Hence, There is no $a\in\mathbb N$ such that $f(a)=1$ $\square$.

$\textcolor{blue}{Claim2:}$$f$ is an one to one function.
$\textcolor{red}{Proof:}$ By Claim1, it is clear that $f^{f(x)}(y)>1$.
Let for some $m,n\in\mathbb N$ we have $f(m)=f(n)$.
Then,$f^{f^{f(x)}(y)-1}(f(m))=f^{f^{f(x)}(y)-1}f(n)$
or,$f^{f^{f(x)}(y)}(m)=f^{f^{f(x)}(y)}(n)$.
or,$x+y+m+1=x+y+n+1$
or,$m=n$
Hence, $f$ is one to one function.$\square$

$\textcolor{blue}{Claim3:}$ $f$ is increasing on $\mathbb N$

$\textcolor{blue}{LEMMA:}$ Suppose for some $a,b\in\mathbb N$ we have $f^a(1)=f^b(1)$.Then we have $a=b$
$\textcolor{red}{Proof:}$ FTSOC, Assume there exists $a,b\in\mathbb N$ such that $a>b$ and $f^a(1)=f^b(1)$.For injectiveness of $f$ we have $f^{a-1}(1)=f^{b-1}(1)$.Running same way we will get $f^{a-b}(1)=1$.As $a-b$ is positive, this contradicts Claim1.Hence $a=b$$\square$.

Now,for $x\in\mathbb N$ and $2\le y\in \mathbb N$,$P(x+1,y-1,1)$ and $P(x,y,1)$ gives:

$f^{f^{f(x+1)}(y-1)}(1)
 = x+1+y-1+1+1
=x+y+1+1
=f^{f^{f(x)}(y)}(1) $
So $f^{f^{f(x+1)}(y-1)}(z) =f^{f^{f(x)}(y)}(1) = x+y+z+1$
Using the Lemma we can derive,
$f^{f(x+1)}(y-1)=f^{f(x)}(y)$ for all $x\in\mathbb N$ and for all $2\le y\in\mathbb N$
Put $y=2$ in the last equation.
We have
$\boxed{f^{f(x+1)}(1)=f^{f(x)}(2)}$.
Now, if $f(x)>f(x+1)$ for some $x\in\mathbb N$
then using injectivity of $f$,we have
$f^{f(x)-f(x+1)}(2)=1$.$f(x)-f(x+1)$ is positive by our assumption.Hence $f(stuff)=1$ contradicting Claim1.
Now by injectivity $f(x)$ can't be equal to $f(x+1)$.Hence, $f(x+1)>f(x)$ for all $x$.$\square$

$\textcolor{blue}{Claim4:}$ $f$ is linear.
$\textcolor{red}{Proof:}$ Let $g(x)=f(x+1)-f(x)$.By above claim $g(x)$ is positive integer for all $x$
Now in the proof of Claim3 we have found that
$f^{f(x+1)}(1)=f^{f(x)}(2)$.
Using injectivity of $f$ we have
$f^{f(x+1)-1}(1)=f^{f(x)-1}(2)$.Running in the same manner we get
$\boxed{f^{f(x+1)-f(x)}(1)=2}$
or,$f^{g(x)}(1)=2$.for all $x\in\mathbb N$
Now take any two natural number $a,b$.
we have$f^{g(a)}(1)=2=f^{g(b)}(1)$.Using the lemma we get $g(a)=g(b)$. So $g(x)=f(x+1)-f(x)$ is a constant function.Now as $f$ is a function from $\mathbb N\to\mathbb N$ so $f$ is a linear function.Assume $f(x)=ax+b$.$\square$

$\textcolor{blue}{Claim5:}$$a=b=1$ or $f(x)=x+1$.
$\textcolor{red}{Proof:}$ As $f$ is increasing and can't take 1 so
$f(1)>1$.As $f$ is increasing so $f(f(1))>f(1)$.By induction we have $f^{n+1}(1)>f^n(1)$ for all positive integer $n$ .

Now,as $f^{f(x+1)-f(x)}(1)=2$ and $g(x)=f(x+1)-f(x)=c>0$ is a constant so we claim that c=1.If not assume $c>1$.Or,$c-1>0$

$f^{f(x+1)-f(x)}(1)=f^c(1)=2$
or,$f(f^{c-1}(1)=2$.But $f^{c-1}(1)\ge 2$ as $c-1>0$.Or $f^c(1)>2$ Using increasingness.
A contradiction.
So $c=f(x+1)-f(x)=1$.
$f^c(1)=f(1)=2$.
So $f(2)-f(1)=1or, f(2)=3$
By induction $\boxed{f(x)=x+1}$ for all $x\in\mathbb N$.Plugging it in the main equation we get, it is indeed a solution.
$\blacksquare$
This post has been edited 1 time. Last edited by Mathematicsislovely, Jul 28, 2020, 12:31 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Googolplexian
56 posts
#6 • 2 Y
Y by samrocksnature, soryn
The answer if $f(x)=x+1$. It is trivial to verify that this works.
Now we prove this is the only one.
Let $P(x,y,z)$ denote the assertion $$f^{f^{f(x)}(y)}(z)=x+y+z+1$$$P(x,y,f(z))$ gives $$f^{f^{f(x)}(y)}(f(z))=x+y+f(z)+1$$and
$$f^{f^{f(x)}(y)}(f(z))=f(f^{f^{f(x)}(y)}(z))=f(x+y+z+1)$$which implies $$x+y+1+f(z)=f(x+y+z+1)$$Letting $z=1$, this gives that $$f(x+y+2)=f(1)+x+y+1$$so for all $x\geq 4$, we get $$f(x)=f(1)+x-1$$Let $f(1)=a$, so that for all $x\geq 4$, $$f(x)=x+(a-1)$$Note $f(1)=a$ must be a positive integer, so $f(x)=x+(a-1)\geq x$ and it follows by induction that $$f^m(x)=x+M(a-1)$$Now, $P(4,4,4)$ gives $$f^{f^{f(4)}(4)}(4)=13$$$$\Rightarrow f^{f^{a+3}(4)}(4)=f^{4+(a+3)(a-1)}(4)=f^{a^2+2a+1}(4)=4+(a-1)(a^2+2a+1)=13$$$$\Rightarrow a^3+a^2-a-10=0$$which factors as $$(a-2)(a^2+3a+5)=0$$so we see that this means $f(1)=a=2$, and $f(x)=x+1$ for $x\geq 4$
Now, from $f(x+y+z+1)=f(z)+x+y+1$, $$f(1+1+2+1)=f(2)+1+1+1 \Rightarrow 6=f(2)+3 \Rightarrow f(2)=3$$and $f(1+1+3+1)=f(3)+1+1+1 \Rightarrow 7=f(3)+3 \Rightarrow f(3)=4$.
Therefore we get that $f(x)=x+1$ for all positive integers $x$.
We know that this works, so we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Plops
946 posts
#7 • 1 Y
Y by samrocksnature
Bash
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ghu2024
951 posts
#8 • 1 Y
Y by samrocksnature
Wrong :(
This post has been edited 3 times. Last edited by ghu2024, Sep 18, 2020, 9:43 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lilavati_2005
357 posts
#9 • 1 Y
Y by samrocksnature
ghu2024 wrote:
Let $f\left(x\right)$ be a polynomial in form $a_nx^n+a_{n-1}x^{n-1}+\ldots+a_2x^2+a_1x+a_0$
You cannot assume that $f$ is a polynomial.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lrjr24
966 posts
#10 • 1 Y
Y by samrocksnature
Claim: The only solutions are $f(x)=x+1$. We can verify that works as shown. $$f^{f^{f(x)}(y)}(z)=f^{f^{x+1}(y)}(z)=f^{x+y+1}(z)=x+y+z+1.$$Let $P(x,y,z)$ be the assertion. Let $w$ be an integer.
$P(w,x,y) \implies f^{f^{f(w)}(x)}(y)=w+x+y+1.$
$P(f^{f(w)-1}(x),y,z) \implies f^{f^{f^{f(w)}(x)}(y)}(z)=f^{w+x+y+1}(z)=f^{f(w)-1}(x)+y+z+1. \qquad \qquad(1)$

Let the assertion of $(1)$ be $Q(w,x,y,z)$.
$Q(w,x,1,z) \implies f^{w+x+2}(z)=f^{f(w)-1}(x)+z+2.$
$Q(w,x,2,z) \implies f^{w+x+3}(z)=f^{w+x+2}(f(z))=f^{f(w)-1}(x)+f(z)+2=f^{f(w)-1}(x)+z+3 \implies f(z)=z+1.$
This means the only solutions are $\boxed{f(x)=x+1}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blacksheep2003
1081 posts
#11 • 1 Y
Y by samrocksnature
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Physicsknight
635 posts
#12 • 1 Y
Y by samrocksnature
$f$ is injective by plugging in two different $x's$ and surjective onto $\mathbb N+3 $ (integers $> 3$).
Note that, $x+y+z+1 = f^{f^{f (x)(y)}}(z),$ so in other words, every integer greater or equal to $z+3$ can be reached from $z$ by applying $f$ enough times.
Since this set is infinite, $f$ is aperiodic. $f^n$ has no fixed points for any $n.$
It follows that if $f(s)=t,$ then the set of integers reachable from $t$ contains those reachable from $s.$
We know
  • $\mathbb N+3$ is in the image of $f$
    we can prove this putting $z=n,x=y=1$
  • $f(x)\le x-2$ by aperiodicity
  • $f(x)=\setminus=x$
  • $f$ is injective.
To prove injectivity note that
because $f^{f^{f(x_1)(y)}}(z) =\setminus= f^{f^{f(x_2)(y)}}(z)\implies f(x_1)=\setminus=f(x_2).$
Now, call $\{x,f(x),f^2(x),\hdots\}$ the orbit of $x,\mathcal{O}(x),$ and call the position of $x= \left|\frac{\mathbb N}{\mathcal {O}(x)}\right|,$ the natural numbers we can't reach from $x.$ Then the position of $n$ is at most $n+1. $
Since all of $n,n+3,n+4\hdots$ are in its orbit. The position of $f(n)$ is always one more than the position of $n.$ Since we can reach all the same numbers except $n.$
If we put $x=y=z=1,$ I get that since the position of $4$ is at most $5,f^{f(1)}(1)$ is at most $5. $ Since the position of $5$ is at most $6$ then $f(1)\le 6. $
If we just put $y=z=1,$ similarly $f(x)\le x+5. $
If $f(1)=6,$ then $4$ is position $5$ and $5$ is position $6. $ Whereas $6$ is position $1,$ which doesn't work because $f$ can't go down by more than $2.$
If $y$ is in the orbit of $x,$ by acyclicity $x$ is not in the orbit of $y.$
So the position of n is at least $n-3,$ as $n $ is always in the orbit of any number at most $n-3.$
Hence, $n-3\le\mathrm{pos}(n)\le n+1. $
The number with position $1$ is at most $3,$ and the start of the chain can be only $1$ or $2\to 1$ or $2\to 3\to 1$ or $3\to 1$ or $3\to 2\to 1.$
$2\to 3\to 1$ and $3\to 2\to 1$ are impossible, because $f(1)\ge 4,f^{f(1)}(1)\ge 4, f^{f^{f(1)(1)}}(1)$ has position at least $6,$ and for $x=y=z=1$ we have $x+y+z+1=4,$ which has position at most $5.$

If $f(t)=1$
Substituting $x=y=z=t$ yields $1=3t+1,$ so $1$ is in position $0.$

If $f(1)<6$
If $1\to 5,$ since $\mathrm{pos}(2)\le 3, $ either $1\to 5\to 4\to 2$ or $1\to 5\to 3\to 2.$ First case contradicts $x=4,y=5,z=1; $ second case contradicts $x=3,y=5,z=1.$ Thus $f(1)<5.$

If $f(1)=\setminus=2$
Then there is a $t$ with $f(f(t))=2,$ so put $x=f(t), y=t, z=t$ to get $2t+f(t)+1=2,$ so $f(1)=2.$

Similarly,
if $f(2)=\setminus=3$
Put $f(f(f(t)))=3,$ then $x=f(f(t)), y=z=t\implies 2t+f(f(t))+1=3.$ Hence $f(2)=3.$ The same trick works for $4.$
We get $2t+f(f(t))+1=4,$ which is possible only if $t=f(f(t))=1,$ which is false.
So $f(1)=2, f(2)=3, f(3)=4,$ and from here we can get $f(n)=n+1$ just by substituting $x=y=1, z=n-2.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
franchester
1487 posts
#13 • 3 Y
Y by samrocksnature, Mango247, Mango247
I claim the only solution if $f(x)=x+1$, which is easily verified. Let $P(x,y,z)$ denote the given assertion.

Claim: $f$ is injective
Suppose $f(a)=f(b)$ for some $a\ne b$. Taking $P(a,1,1)$ and $P(b,1,1,)$ give \[a+3=f^{f^{f(a)}(1)}(1)=f^{f^{f(b)}(1)}(1)=b+3\]so $a=b$, meaning $f$ is injective.

A consequence of this is now that for $m\geq n$, and if $f^m(c)=f^n(d)$ for some $c,d$, then $f^{a-b}(c)=d$ (by "unwrapping" $f$ multiple times).

Now take $P(x,y,z)$ and $P(y,x,z)$. Since swapping $x$ and $y$ leaves $x+y+z+1$ unchanged, these two quantities are equal. Unwrapping the $f$ then gives \[f^{f^{f(x)}(y)}(z)=f^{f^{f(y)}(x)}(z)\implies f^{|f^{f(x)}(y)-f^{f(y)}(x)|}(z)=z\]
Claim: $f^{f(y)}(x)=f^{f(x)}(y)$
Suppose there exist $x$ and $y$ such that the quantities are not equal, and let their absolute difference be $p$. This means that $f^p(z)=z$, or $f$ has period of $p$. Consider taking $P(f^{p-1}(p), p, p)$: \[P(f^{p-1}(p),p,p)=f^{f^{f^p(p)}(p)}(p)=f^{f^p(p)}(p)=f^p(p)=f^{p-1}(p)+p+p+1\]\[\implies p=f^{p-1}(p)+2p-1\implies f^{p-1}(p)+p=1\]which is a contradiction since $p$ and $f^{p-1}(p)$ are positive integers. Thus $f$ is not periodic and $f^{f(y)}(x)=f^{f(x)}(y)$ for all $x$ and $y$.

The finish from here is easy. Note that $f$ can take on any value greater than or equal to $1+1+1+1=4$ by the given condition with suitable choices of $x,y,z$.

Claim: $f(x)=x+1$ for $x\geq 4$.
For some $n\geq 4$, consider $a$ and $b$ such that $f(a)=n$ and $f(b)=n+1$ (which exist since $f$ is "surjective" from $4$ to infinity). Using the previous claim, \[f^{f(a)}(b)=f^{f(b)}(a)\implies f^n(b)=f^{n+1}(a)\implies f^{n-1}(n+1)=f^n(n)\implies f(n)=n+1\]as claimed.

Claim: $f(x)=x+1$ for $x\leq 3$.
Simply take $P(x,4,4)$: \[f^{f^{f(x)}(4)}(4)=f^{4+f(x)}(4)=8+f(x)=x+4+4+1\implies f(x)=x+1\]
Combining the previous two claims gives $f(x)=x+1$ for all positive integers $x$, as advertised.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Lcz
390 posts
#14 • 1 Y
Y by samrocksnature
Wacko I got a 5 on this question (-1 for not showing "$f(x)=x+1$ easily works" and -1 for something else i forgot.) but just do $f(z+(y+2))=f^{N+1}(z+(y+2))=f(z)+(y+2)$ where $N$ is the thing up top. Motivation comes from triple involution trick ;-;
This post has been edited 1 time. Last edited by Lcz, Jul 28, 2020, 2:58 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pad
1671 posts
#15 • 2 Y
Y by samrocksnature, Mango247
We claim $f(x)=x+1$ for all $x$. It is easy to see that this works:
\[ f^{f^{f(x)}(y)}(z) = z+f^{f(x)}(y)=z+y+f(x)=z+y+x+1, \]as desired.

Call the statement $P(x,y,z)$. Taking $f$ of $P(x,y,z)$ gives $f^{f^{f(x)}(y)+1}(z)=f(x+y+z+1)$. And $P(x,y,f(z))$ gives $f^{f^{f(x)}(y)+1}(z)=x+y+f(z)+1$. Therefore, $f(x+y+z+1)=x+y+f(z)+1$. Plugging in $y=z=1$ into the aforementioned gives $f(x+3)=x+2+f(1)$. Therefore, $f(x)=x+c$ for $x\ge 4$, for some constant $c$.

Take some $x,y,z \ge 4$; then
\[ f^{f^{f(x)}(y)}(z) = z+cf^{f(x)}(y)=z+c(y+cf(x))=z+cy+c^2x+c^3,\]so $P(x,y,z)$ gives $c^2x+cy+z+c^3=x+y+z+1$, which means $c=1$. Therefore, $f(x)=x+1$ for $x\ge 4$.

We claim $f(x)=x+1$ for all $x$. Indeed, since
\[ f^{f^{f(x)}(4)}(4) = 4+f^{f(x)}(4)=8+f(x),\]then $P(x,4,4)$ gives $8+f(x)=x+9$, hence $f(x)=x+1$, for all $x$.
Z K Y
G
H
=
a