Bounds (and range) of a nonlinear difference equation
I'm interested in the following set of nonlinear difference equations:
$$x_{n+1} = \frac{c + x_n}{x_{n-1}},\; x_1 = x_0 = 1 \qquad \textrm{for } c > 0$$
For $c=1$ the sequence is periodic with period 5 and range {1,2,3}. For other values of $c$ the sequence appears to be oscillatory. For small $c$, the supremum seems to be slightly more than $1+2c$, while for larger $c$ it seems to approach $3c$.
Is there a simple formula for the bounds of the sequence in this general case? What about the range? Are the sequences periodic? Are they dense within the bounds?
From experimentation with complex orbits, it looks like the points travel on a curve which is symmetric in $x,y$ and has degree $2$ in $x$. So the curves have equations of the form $a_0 + a_1(x+y) + a_2xy + a_3(x+y)^2 + a_4xy(x+y) + a_5x^2y^2 = 0$.
It is very unlikely that $a_5$ is nonzero because this would give lots of genus $3$ curves (assuming they're not all singular), with a transformation that gives infinitely many rational points on them except when the orbits are periodic, and that can only happen for a countable number of curves. So it would contradict Faltings's theorem. So first I assume $a_5=0$.
Then, since the map $(x,y) \mapsto ((c+y)/x,y)$ preserves them, for a given $y$, the two corresponding $x$ solutions multiply to $c+y$, which means the equation is of the form $b_2(y)x^2 + b_1(y)x + b_0(y)$ where $b_0(y)=(c+y)b_2(y)$, and so $(a_0+a_1y+a_3y^2) = (c+y)(a_3+a_4y) = ca_3+(ca_4+a_3)y+a_4y^2$.
Therefore $a_3=a_4, a_1=(c+1)a_4$ and $a_0=ca_4$, which gives $a_4(c + (c+1)(x+y) + (x+y)^2+xy(x+y)) + a_2xy = 0$,
which means $\frac{c+(c+1)(x+y)+(x+y)^2+xy(x+y)}{xy} = -a_2/a_4$ is constant.
So, the transformation $(x,y) \mapsto (y,(c+y)/x)$ conserves the quantity $\frac{c(1+x+y) + (x+y)(1+x)(1+y))}{xy}$ whenever $xy(c+y) \neq 0$
For almost all fixed values of $c$ and $k$, the curve $\frac{c(1+x+y) + (x+y)(1+x)(1+y))}{xy} = k$ should be an elliptic curve, of which this map is an automorphism. (so most likely a translation of infinite order)
If you start from $(1,1)$, then the curve you obain has the equation $c(1+x+y)+(x+y)(1+x)(1+y) = (3c+8)xy$, or $f(x,y) = c+(c+1)x+(c+1)y+xx-(3c+6)xy+yy+xxy+xyy = 0$.
To get the highest point, you need to intersect it with the curve $\frac{df}{dx} = 0$, so
$c+1+2x-(3c+6)y+2xy+y^2=0$
You get $(2+2y)x = (3c+6)y-(c+1+y^2)$.
Plugging this into the original equation gives you a degree $5$ equation on $y$. $y= -1$ will always be a root because the curve has an horizontal asymptote there, leaving $4$ other real roots, among which you want the second and third largest.
If (like me) you're interested in the dynamics and orbits shapes of this map in the other parts of the plane,
when $k = -1$ the equation factors into $(x+y+1)(c+xy+x+y)$, so a line and an hyperbola, both genus $0$ curves. The map switches one with the other, and doing it twice is doing an automorphism of any of those two curves. Dynamics of automorphisms of genus $0$ curves are well understood. If $c > 3/4$ the two fixpoints are real, so a point gets attracted into a $2$-cycle. If $c < 3/4$ then they are complex, so the map acts more like a "rotation" of the curves. If $c = 3/4$ we get a double (real) fixpoint, so it's more like a "translation".
when $k = -c$ the equation factors into $(x+1)(y+1)(c+x+y)$, so three lines. The line $y=-1$ is sent onto the line $x=-1$ then to $x+y=-c$ then to $y=-1$ again. In this case, the discriminant is $(c-2)²-3$, so the behaviours change at $c= 2\pm \sqrt 3$
when $k = \infty$ the equation becomes $xy=0$ (or $xyz = 0$ if you're working in the projective plane), so three lines. The line $y=0$ is sent to the line $x=0$ then to the blowup of a point at infinity, then to the line at infinity $(z=0)$ then to another blowup then back to $y=0$. This long trip sends $(x,0)$ to $(x/c,0)$. Thus we get an attractive $5$-cycle most of the time.
There are another two values of $k$ (the roots of $8-k-13c+10ck-ck^2+16c^2$) where the curve is singular (there is a node where the small loops disappear), and so the smooth locus of the curve has genus $0$ that is fixed by the transformation.
For any other values of $k$, the curve is an elliptic curve (with one or two real components), and the map is some infinite order translation in the generic case.
If you compute the $j$ invariants, those special values of $k$ correspond to poles, and their order is the number of genus $0$ curves the transformation cycles through. The map $k \mapsto j(C_k)$ is then a rational function of degree $5+3+2+1+1 = 12$.
All the curves go through the points $(-1,0),(-1,c),(0,-1),(0,-c)$, have common vertical and horizontal asymptotes (so they all go to the same point on the two blowups I mentioned before), plus they each have their own oblique asymptote, so that's another common point on the line at infinity.
If you blow up the projective plane at those $4$ finite points, those $3$ points at infinity, then blowup again at the two common asymptotes, the original map should maybe become a nice automorphism of a smooth elliptic surface
As for periodicity, I expect the set of $c$ where this happens is dense (and those values of $c$ are all algebraic). One would need to investigate how the $j$-invariant and the translation varies while $k$ and $c$ varies.
Computational evidence suggest the following conjectures.
For $1\ne c>0$ a sequence $\{z_n\}=\{(x_n,x_{n+1})\}$ is a dense set of a smooth curve which bounds a convex shape. When $c$ tends to infinity this shape tends to an isosceles right angled triangle with sides of order $c$, when $c$ tends to zero the shape tends to an ellipse, see the graphs.
$c=2^{-2}, 2^{-1},\dots, 2^7$ (I remark that the diameter of the shape is not a monotone function of $c$):
$c=2^{8}, \dots, 2^{11}$:
$c=2^{-3}, \dots, 2^{-22}$:
Everybody feel free to find the equations of the curves and to prove the conjectures, I'll try to do this too. In particular, if these equations are polynomial then their coefficients can be found by solving the respective system of linear equations.