OFFSET
1,5
COMMENTS
For any rational number q in the interval [0, 1]:
- f(q) is rational and lies in the interval [0, 1],
- denominator(f(q)) <= denominator(q),
- as there are only finitely many rational numbers whose denominator is less than or equal to that of q in the interval [0, 1],
- iteratively applying f to q eventually leads to a cycle,
- and the sequence is well defined.
For any irrational number x in the interval [0, 1]:
- f(x) is irrational and lies in the interval [0, 1],
- for any k > 0, as fixed points of the k-th iterate of f are rational,
- iteratively applying f to x never leads to a cycle.
As f is continuous on the interval [0, 1] and 1/7 has least period 3, according to the period three theorem, f has points of any period length, as well as chaotic points.
LINKS
Roman Khrabrov, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Period Three Theorem
FORMULA
EXAMPLE
For n = 5:
- f(1/5) = 2/5,
- f(2/5) = 4/5,
- f(4/5) = 2/5,
- hence a(5) = 2.
PROG
(PARI) a(n, f=x -> min(2*x, 2-2*x)) = my (x=f(1/n), y=f(x)); while (x!=y, x=f(x); y=f(f(y))); for (k=1, oo, if (x==y=f(y), return (k)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Aug 17 2019
STATUS
approved