I've been exploring some constructions in geometry recently and have been looking at the following algorithm:
- Start with an arbitrary triangle (red)
- Construct 3 squares from each of the sides of the triangle where the squares do not intersect
- Connect the centers of each square to form a new triangle (green)
- Repeat ad infinitum
It appears that this process will converge to an equilateral triangle after infinite repetitions. I'm curious as to why that is. I started brute forcing the calculation algebraically with arbitrary coordinates for the vertices of the original triangle, but it gets messy quickly. I'm wondering if there's a more elegant explanation.








Let the side lengths of the original triangle be $BC=a,AC=b,AB=c$, and let its area be $K$. Let the center of the square from side $BC$ be $S_{a}$, etc. and let $S_{b}S_{c}=x, S_{a}S_{c}=y,S_{a}S_{b}=z$.
Note that $\angle S_{b}AS_{c} = \frac{\pi}{4}+\angle A + \frac{\pi}{4} = \angle A + \frac{\pi}{2}$. Thus, by the Law of Cosines:
$$\begin{align}x^{2} &= AS_{b}^{2}+AS_{c}^{2} - 2AS_{b}AS_{c}\cos(\angle S_{b}AS_{c}) \\ &= \frac{b^{2}}{2} + \frac{c^{2}}{2} - bc\cos\left(\angle A + \frac{\pi}{2}\right)\\ & = \frac{b^{2}}{2} + \frac{c^{2}}{2} + bc\sin(\angle A)\\ &= \frac{b^{2}}{2} + \frac{c^{2}}{2} + 2K\end{align}$$
We find $y^{2},z^{2}$ similarly. You might already see that the differences between the sidelengths are being "smoothed out".
To formalize this, let's measure the "equilateralness" of a triangle as $\text{eq}(\triangle ABC) = (a^{2}-b^{2})^{2} + (b^{2}-c^{2})^{2} + (c^{2}-a^{2})^{2}$. You can check that this is zero iff $\triangle ABC$ is equilateral, and positive otherwise. We have:
$$\begin{align}\text{eq}(\triangle S_{a}S_{b}S_{c}) &= (x^{2}-y^{2})^{2} + (x^{2}-z^{2})^{2} + (y^{2}-z^{2})^{2}\\ &= \left(\frac{a^{2}-b^{2}}{2}\right)^{2} + \left(\frac{a^{2}-c^{2}}{2}\right)^{2} + \left(\frac{b^{2}-c^{2}}{2}\right)^{2}\\ &= \frac{1}{4}\text{eq}(\triangle ABC)\end{align}$$
Thus, the equilateralness converges geometrically to 0, as desired. Note that this could also signify the triangle shrinking to a point, but we can rule this out because the perimeter is increasing.