This problem has a geometric origin which I'll outline below, but I believe the concepts and explanation are algebraic.
Given a function on triples $$K((x,y,z))=x+y+z+2\sqrt{xy+yz+zx}$$
we build a general recursion as follows.
Start with an integer triple $X=(a,b,c)$, and a set $S=\{a,b,c\}$.
Compute $k=K(X)$ and add $k$ to $S$. Writing $X$ as $(X_0,X_1,X_2)$, repeat step 2 for the triples $X=(k,X_1,X_2),(X_0,k,X_2),(X_0,X_1,k)$ respectively.
In general, the members of $S$ will contain nested radicals. For example, if we start with the triple $(1,2,3)$ and use a restricted recursion $x_{n+1}=K((1,2,x_n)),x_1=3$ we get
$$ S'=\left\{3,6+2 \sqrt{11},9+2 \sqrt{11}+2 \sqrt{2+3 \left(6+2 \sqrt{11}\right)},\\12+2 \sqrt{11}+2 \sqrt{2+3 \left(6+2 \sqrt{11}\right)}+2 \sqrt{2+3 \left(9+2 \sqrt{11}+2 \sqrt{2+3 \left(6+2 \sqrt{11}\right)}\right)},\dots \right\} $$
However, Mathematica is able to denest these to
$$ S'=\left\{3,6+2 \sqrt{11},15+4 \sqrt{11},30+6 \sqrt{11},\dots\right\} $$
suggesting the conjectures that
- starting with initial triple $(1,2,3)$, $S'\subset S\subset\mathbb Z[\sqrt {11}]$
- starting with integer triple $(a,b,c)$, $S\subset \mathbb Z[\sqrt n]$, where $n=ab+bc+ca.$
Question: is the latter conjecture $S\subset \mathbb Z[\sqrt n]$ true, and if so why?
Bonus question: is there some characterization or invariant of the triples generated in the general recursion?
I've done some hand and computer calculations to understand why the radicals denest in particular cases, but I'm guessing that if the conjecture is true it will be "obvious" to someone more versed in this area.
Some background and observations:
- This problem originates in playing with the construction of Apollonian gaskets and the function $K()$ comes from a theorem of Descartes concerning the curvatures of 4 mutually tangent circles.
- In the case that $n=ab+bc+ca$ is a square, then all the numbers generated will be integers. And this leads to integral Apollonian circle packings. But I have not seen any discussions of the case when curvatures are in some $\mathbb Z[\sqrt n]$.
- see also this demo
Although the other answers here get to the crux of the problem, as the accepted answer I'd like to cite Sarnak, Integral Apollonian Packings, pg 297.
Let the initial triple be $(a,b,c)$, and $\Delta=ab+bc+ca$.
Then all members of $S$ generated by the recursion can be expressed as sums of $a,b,c,$ and $\sqrt{\Delta}$ with integer coefficients.
This is easily shown using some of the observations in the other answers, or the material in the paper.
The nice thing is that the integer coefficients are independent of the initial values. And the generated values are all in $\mathbb Z[\sqrt{\Delta}]$. This potentially speeds up the generation of Apollonian Gaskets that motivated this question.