Uniqueness of the optimal part number for dichromatic triangles
Prove that the set R_2(s) of even integers maximizing the dichromatic-triangle optimization function g_s(r) is a singleton for every integer s≥2 except s=27; equivalently, prove that the equation g_s(r)=g_s(r+2), with r=r_2(s), has no integer solutions for s≠27.
References
We strongly suspect that, apart from for $s=27$, the set contains a single element. This is a number theoretic statement: we conjecture that the equation $g_s(r)=g_s(r+2)$, or equivalently, $$ z{(r-1-a)(r+2)}(z+1){a(r+2)} = y{(r+1-b)r}(y+1){br} $$ where $z=\lfloor\frac{s}{r-1}\rfloor$, $y=\lfloor\frac{s}{r+1}\rfloor$, $a=s-(r-1)z$, $b=s-(r+1)y$, has no solutions for any integer $s \neq 27$, where $r=r_2(s)$.
We conjecture that $R_2(s)$ is a singleton unless $s=27$ but are unable to prove this.