Solving functional equations using recursion

algebra-precalculusfunctional-equationsfunctionsrecurrence-relations

If $f:\mathbb N \rightarrow \mathbb N$ such that $f(f(f(n)))+f(f(n))+n=3f(n) \; \forall \; n\in \mathbb N,$ Then Find $f$

Solution Provided in book:

Replace $n$ with $f(n)$ successively in parent functional equation $k$ times. We get

$\underbrace {fofof…of(n)}_\text{k+3 times }+\underbrace {fofof…of(n)}_\text{k+2 times }+\underbrace {fofof…of(n)}_\text{k times }=3 \underbrace {fofof…of(n)}_\text{k+1 times }$ $\cdots \cdots(1)$

Let $a_0=n$ for some fixed $n$ and $a_{k+1}=f(a_k) \; \forall \;k\geq 0$

My doubt: How did he assume $a_0=n$ and How it became $a_{k+1}=f(a_k)$

Please Help In this. I also checked for duplicate but i couldn't find it.

Also Any other way to solve this kind of problem?

Best Answer

The sequence goes like this:

$$ \{ n, f(n) , f \circ f(n)... \}$$

The action of 'composition' with $f$ generates the next element in the sequence. Note that we are not making any assumptions about the nature of $f$ when we say that the first element of the said sequence is $n$, so everything is still done in total generality.