Define the function $f:[0,1]\to[0,1]$ by the following. $$f(x)=\begin{cases} x+\dfrac{1}{2},&0\le x\le\dfrac{1}{2}\\ 2(1-x),&\dfrac{1}{2}<x\le 1. \end{cases}$$ Let $f_1(x)=f(x)$ and for each $n\in\mathbb{N}\cap[2,\infty)$, define $f_n(x)$ as $$f_{n}(x)=f(f_{n-1}(x)).$$ Finally, define the sets $A$ and $B$ by $$A=\{x\in[0,1]\,|\,f_{10}(x)=x\}, B=\left\{\dfrac{2}{15},\dfrac{2}{3},0,\dfrac{1}{2},1\right\}.$$
- Determine the intersection of $A$ and $B$.
- Determine the cardinality of $A$.
my idea: since $$0\le x\le\dfrac{1}{2},\Longrightarrow x+\dfrac{1}{2}\in [\dfrac{1}{2},1]$$ and $$\dfrac{1}{2}<x\le 1\Longrightarrow 2(1-x)\in [0,\dfrac{1}{2}]$$ so $$f_{2}(x)=f(f_{1}(x))=\begin{cases} 2(1-(x+\dfrac{1}{2}))=1-2x&0\le x\le \dfrac{1}{2}\\ 2(1-x)+\dfrac{1}{2}=\dfrac{5}{2}-2x&\dfrac{1}{2}<x\le 1 \end{cases}$$ follow. I think this problem will take some time to solve. Maybe there are other methods? Thank you
1. Overview
$$ \large\mathit{\mbox{``A picture is worth a 1000 words''}}^{\tiny\,\,\,\mbox{but is no rigorous proof}} $$
Fun aside, this gives a first orientation. Let us go through the candidates from $B$:
Now let the machine do again the hard work:
The development of $P_1$ is
2. Checking $A \cap B$
$$ \begin{align} f(P_1) & = f(2/15) = 2/15 + 1/2 = 19/30 > 1/2 \\ f(19/30) & = 2(1 - 19/30) = 11 / 15 > 1/2 \\ f(11/15) & = 2(1 - 11/15) = 8 / 15 > 1/2 \\ f(8/15) & = 2(1 - 8/15) = 14 / 15 > 1/2 \\ f(14/15) & = 2(1 - 14/15) = 2/15 = P_1 \end{align} $$
Thus $f_5(P_1) = P_1$ and therefore $f_{10}(P_1) = P_1$.
Then we have for $P_2$: $$ f(P_2) = f(2/3) = 2(1 - 2/3) = 2/3 = P_2 $$ and thus $f_{10}(P_2) = P_2$.
Now let us look at one iteration to see what is going on for $P_3, P_4, P_5$:
$$ f(P_3) = P_4, \quad f(P_4) = P_5, \quad f(P_5) = P_3 $$
Taking 10 iterations one gets $$ f_{10}(P_3) = P_4 \ne P_3, \quad f_{10}(P_4) = P_5 \ne P_4, \quad f_{10}(P_5) = P_3 \ne P_5. $$
It looks like $A \cap B = \{ P_1 = 2/15, P_2 = 2/3 \}$.
3. Counting $A$
Now about $|A|$ which I interpret as the number of fixed points of $f_{10}$ on $[0, 1]$.
For this we have to look at the fixed points of $f_1$, $f_2$, $f_5$ and $f_{10}$ to understand what is going on.
As one can see the graphical methods, counting crossings hits its limits for higher iterations. For $f_{10}$ one would need to look at small resolutions.
Estimation: With every evaluation of $f$ there is one comparison involved, so for $f_{10}$ we talk about up to $2^{10} = 1024$ cases here.
Let $s(k)$ be the number of straight line segments of $f_k$ then I counted
$$ s = (2, 3, 5, 8, 13, 21, 34, 55, 89, \ldots) $$
on the graphs. This is obviously a Fibonacci series. So there should be $s(10) = 144$ straight line segments, which gives a first upper bound for the number of fixed points $|A|$. This is an observation, I can give no proof for $s(k)$ yet.
3.1 The Secant Method
Next I wrote a numeric fixed point solver and that spew out $|A| = 123$, using $1024$ subintervals. See program and output.
As $f_{10}$ is piecewise linear,
$$ x_0 = x, \\ x_k = a_k\, x_{k - 1} + b_k \quad (k > 0) \\ (a_k, b_k) \in \{ (1, 1/2), \, (-2, 2) \} $$
with rational coefficients $a_k$ and $b_k$
$$ f_{10}(x) = \alpha_{10} x + \beta_{10} \\ \alpha_{10} = \prod\limits_{k=1}^{10}a_k \\ \beta_1 = b_1 \\ \beta_{k} = a_k \, \beta_{k-1} + b_k \quad (k > 1) \\ f_{10}(x^*) = x^* \iff x^* = \frac{\beta_{10}}{1 - \alpha_{10}} \in \mathbb{Q} \quad(*) $$
the fixed points are rational numbers.
Thus I updated the numerical program to search and display the fractions. This yields:
$$ A = \left\{ \frac{2}{129}, \frac{1}{63}, \frac{5}{129}, \frac{2}{51}, \frac{8}{129}, \frac{4}{63}, \frac{14}{129}, \frac{1}{9}, \frac{17}{129}, \frac{2}{15}, \frac{20}{129}, \frac{8}{51}, \frac{86}{513}, \frac{43}{255}, \frac{23}{129}, \frac{46}{255}, \frac{26}{129}, \frac{13}{63}, \frac{29}{129}, \frac{58}{255}, \frac{32}{129}, \frac{16}{63}, \frac{38}{129}, \frac{19}{63}, \frac{1}{3}, \frac{22}{63}, \frac{50}{129}, \frac{25}{63}, \frac{53}{129}, \frac{106}{255}, \frac{56}{129}, \frac{4}{9}, \frac{62}{129}, \frac{31}{63}, \frac{65}{129}, \frac{26}{51}, \frac{133}{258}, \frac{65}{126}, \frac{68}{129}, \frac{8}{15}, \frac{139}{258}, \frac{55}{102}, \frac{278}{513}, \frac{139}{255}, \frac{71}{129}, \frac{142}{255}, \frac{145}{258}, \frac{71}{126}, \frac{74}{129}, \frac{37}{63}, \frac{77}{129}, \frac{154}{255}, \frac{157}{258}, \frac{11}{18}, \frac{80}{129}, \frac{32}{51}, \frac{163}{258}, \frac{19}{30}, \frac{326}{513}, \frac{163}{255}, \frac{83}{129}, \frac{166}{255}, \frac{169}{258}, \frac{67}{102}, \frac{338}{513}, \frac{169}{255}, \frac{341}{513}, \frac{2}{3}, \frac{685}{1026}, \frac{341}{510}, \frac{344}{513}, \frac{172}{255}, \frac{175}{258}, \frac{347}{510}, \frac{350}{513}, \frac{35}{51}, \frac{89}{129}, \frac{178}{255}, \frac{181}{258}, \frac{89}{126}, \frac{92}{129}, \frac{184}{255}, \frac{187}{258}, \frac{371}{510}, \frac{374}{513}, \frac{11}{15}, \frac{95}{129}, \frac{38}{51}, \frac{193}{258}, \frac{95}{126}, \frac{98}{129}, \frac{7}{9}, \frac{101}{129}, \frac{202}{255}, \frac{205}{258}, \frac{101}{126}, \frac{104}{129}, \frac{52}{63}, \frac{5}{6}, \frac{107}{126}, \frac{110}{129}, \frac{55}{63}, \frac{113}{129}, \frac{226}{255}, \frac{229}{258}, \frac{113}{126}, \frac{116}{129}, \frac{232}{255}, \frac{235}{258}, \frac{467}{510}, \frac{470}{513}, \frac{47}{51}, \frac{119}{129}, \frac{14}{15}, \frac{241}{258}, \frac{17}{18}, \frac{122}{129}, \frac{61}{63}, \frac{125}{129}, \frac{50}{51}, \frac{253}{258}, \frac{125}{126}, \frac{128}{129} \right\}, \, |A| = 123 $$
3.2 Looking for Cycles
Another update of the program yielded the partition of $A$ into
$$ A = A_1 \cup A_2 \cup A_5 \cup A_{10} $$
with
$$ A_{1} = \left\{ \frac{2}{3} \right\}, |A_{1}| = 1 \\ A_{2} = \left\{ \frac{1}{3}, \frac{5}{6} \right\}, |A_{2}| = 2 \\ A_{5} = \left\{ \frac{1}{9}, \frac{2}{15}, \frac{4}{9}, \frac{8}{15}, \frac{11}{18}, \frac{19}{30}, \frac{11}{15}, \frac{7}{9}, \frac{14}{15}, \frac{17}{18} \right\}, |A_{5}| = 10 = 2 \cdot 5\\ A_{10} = \left\{ \frac{2}{129}, \frac{1}{63}, \frac{5}{129}, \frac{2}{51}, \frac{8}{129}, \frac{4}{63}, \frac{14}{129}, \frac{17}{129}, \frac{20}{129}, \frac{8}{51}, \frac{86}{513}, \frac{43}{255}, \frac{23}{129}, \frac{46}{255}, \frac{26}{129}, \frac{13}{63}, \frac{29}{129}, \frac{58}{255}, \frac{32}{129}, \frac{16}{63}, \frac{38}{129}, \frac{19}{63}, \frac{22}{63}, \frac{50}{129}, \frac{25}{63}, \frac{53}{129}, \frac{106}{255}, \frac{56}{129}, \frac{62}{129}, \frac{31}{63}, \frac{65}{129}, \frac{26}{51}, \frac{133}{258}, \frac{65}{126}, \frac{68}{129}, \frac{139}{258}, \frac{55}{102}, \frac{278}{513}, \frac{139}{255}, \frac{71}{129}, \frac{142}{255}, \frac{145}{258}, \frac{71}{126}, \frac{74}{129}, \frac{37}{63}, \frac{77}{129}, \frac{154}{255}, \frac{157}{258}, \frac{80}{129}, \frac{32}{51}, \frac{163}{258}, \frac{326}{513}, \frac{163}{255}, \frac{83}{129}, \frac{166}{255}, \frac{169}{258}, \frac{67}{102}, \frac{338}{513}, \frac{169}{255}, \frac{341}{513}, \frac{685}{1026}, \frac{341}{510}, \frac{344}{513}, \frac{172}{255}, \frac{175}{258}, \frac{347}{510}, \frac{350}{513}, \frac{35}{51}, \frac{89}{129}, \frac{178}{255}, \frac{181}{258}, \frac{89}{126}, \frac{92}{129}, \frac{184}{255}, \frac{187}{258}, \frac{371}{510}, \frac{374}{513}, \frac{95}{129}, \frac{38}{51}, \frac{193}{258}, \frac{95}{126}, \frac{98}{129}, \frac{101}{129}, \frac{202}{255}, \frac{205}{258}, \frac{101}{126}, \frac{104}{129}, \frac{52}{63}, \frac{107}{126}, \frac{110}{129}, \frac{55}{63}, \frac{113}{129}, \frac{226}{255}, \frac{229}{258}, \frac{113}{126}, \frac{116}{129}, \frac{232}{255}, \frac{235}{258}, \frac{467}{510}, \frac{470}{513}, \frac{47}{51}, \frac{119}{129}, \frac{241}{258}, \frac{122}{129}, \frac{61}{63}, \frac{125}{129}, \frac{50}{51}, \frac{253}{258}, \frac{125}{126}, \frac{128}{129} \right\}, |A_{10}| = 110 = 11 \cdot 10 $$
where $A_k$ is the set of fixed points of order $k = \min\{ i \left|\,\, f_i(x^*) = x^* \right. \}$.