Recall that given,
$$x^3+y^3+z^3 = (z+1)^3$$
we do the substitution $z = 3 n^2x + (3 n^2 + 1)(y - 1)$ like Adam Bailey in this post to get the ellipse,
$$x^2 - x y + y^2 - (27 n^4 - 1) x - (27n^4 + 18 n^2 + 2 ) y + (27n^4 + 9 n^2 + 1 ) = 0$$
after removing a trivial factor. I found two triples of polynomial solutions to this. The first triple $(x,y) = (a_j,a_k)$,
\begin{align} (a_1,\, a_2) &= (3n + 3n^2 + 9n^3,\, 1 + 6n^2 - 9n^3)\\ (a_3,\, a_4) &= (-3n + 3n^2 - 18n^3 + 27n^4,\, 1 - 3n + 15n^2 - 9n^3 + 54n^4)\\ (a_5,\, a_6) &= (12n^2 + 9n^3 + 54n^4,\, 1 + 3n + 15n^2 + 18n^3 + 27n^4)\end{align}
These three lattice points are the vertices of the first triangle. And the second triple $(x,y) = (b_j,b_k)$ ,
\begin{align} (b_1,\, b_2) &= (-9n^3,\, 1 - 3n + 9n^2 - 18n^3 + 27n^4)\\ (b_3,\, b_4) &= (-3n + 9n^2 - 9n^3 + 54n^4,\, 1 + 18n^2 + 9n^3 + 54n^4)\\ (b_5,\, b_5) &= (3n + 9n^2 + 18n^3 + 27n^4,\, 1 + 3n + 9n^2 + 9n^3)\qquad\qquad\end{align}
are the vertices of the second triangle. Naturally, these satisfy,
$$(a_j)^3+(a_{j+1})^3+(u_j)^3 = (u_j+1)^3$$ $$(b_j)^3+(b_{j+1})^3+(v_j)^3 = (v_j+1)^3$$
for integer polynomials $u_j,\,v_j.$ I found these empirically, but the natural question to ask is: can we derive one triangle from the other? Note the curious relationships,
\begin{align} \alpha &= a_1 + a_3 + a_5 = b_1 + b_3 + b_5 = 3(27n^4+6n^2)\\ \beta &= a_2 + a_4 + a_6 = b_2 + b_4 + b_6 = 3(27n^4+12n^2+1)\end{align}
\begin{align} \frac23(\alpha+\beta)\, &= a_1 + a_2 + b_3 + b_4\\ &= a_3 + a_4 + b_5 + b_6\\ &= a_5 + a_6 + b_1 + b_2 \,=\, 2(54n^4+18n^2+1)\end{align}
In a previous post, I asked if $(\alpha,\beta)$ had a geometric interpretation and Jan-Magnus Økland answered that $\big(\dfrac{\alpha}3,\dfrac{\beta}3\big)$ in fact is the center of the ellipse. And this post, it is stated that "if the center is known, then 3 points are enough to uniquely define an ellipse". A triangle, in other words.
To illustrate, let $n=\pm2$ and we get the same ellipse,
$$x^2 - x y + y^2 - 431 x - 506 y + 469 = 0$$
graphed below by the Desmos calculator with relevant lattice points,
The 3 blue points determine the first triangle, while the 3 green points determine the second triangle. By reflecting these $6$ points along the semi-major and semi-minor axes, then one will get $6\times4 = 24$ points. (However, the Alpertron calculator says this has a total of $48$.)
Question: Is there a general way to derive the second triangle from the first triangle using some basic principles of conic sections?
P.S. The reason I ask is I found three families of ellipses for $x^3+y^3+z^3=(z+1)^3$, each with a pair of triangles with polynomial vertices. It can't be coincidence they come in pairs.
xA:9*n^3+3*n^2+3*n;yA:(-9*n^3)+6*n^2+1;xB:-3*n+3*n^2-18*n^3+27*n^4;yB:1-3*n+15*n^2-9*n^3+54*n^4;xC:12*n^2+9*n^3+54*n^4;yC:1+3*n+15*n^2+18*n^3+27*n^4; xO:(xA+xB+xC)/3;yO:(yA+yB+yC)/3;
solve([a*(xA-xO)^2+2*b*(xA-xO)*(yA-yO)+c*(yA-yO)^2-1,a*(xB-xO)^2+2*b*(xB-xO)*(yB-yO)+c*(yB-yO)^2-1,a*(xC-xO)^2+2*b*(xC-xO)*(yC-yO)+c*(yC-yO)^2-1],[a,b,c]); # [[a = 1/(729*n^8+486*n^6+108*n^4+9*n^2), b = -1/(1458*n^8+972*n^6+216*n^4+18*n^2), c = 1/(729*n^8+486*n^6+108*n^4+9*n^2)]]
– Jan-Magnus Økland Jan 21 '24 at 20:45R=QQ[n][a,b,c][x,y,z]
(mons, cofs)=coefficients(x^3+y^3+(a*x+b*y+c)^3-(a*x+b*y+c+1)^3-(x+y-1)*(y^2-x*y-27*n^4*y-18*n^2*y-2*y+x^2-27*n^4*x+x+27*n^4+9*n^2+1))
primaryDecomposition ideal cofs -- {ideal(b+c+1,a+c,c-3*n^2), ideal(b+c,a+c+1,c+3*n^2+1)}
solve([b+c+1,a+c,c-3*n^2],[a,b,c]); # [[a = -3*n^2,b = (-3*n^2)-1,c = 3*n^2]]
solve([b+c,a+c+1,c+3*n^2+1],[a,b,c]); # [[a = 3*n^2,b = 3*n^2+1,c = (-3*n^2)-1]]
So, from the first, we recover $z=3n^2x+(3n^2+1)y-3n^2-1$ or $-3n^2(x+y-1)-(y-z-1)=0.$ – Jan-Magnus Økland Jan 21 '24 at 20:46