I have sphere $(x-1)^2 + (y-2)^2 + (z-3)^2 = 81$. To select two points $A$, $B$ on sphere so that coordinates of $A$, $B$ are six different integer numbers and $AB = 18$, $xyz \neq 0$ I tried.
ClearAll[a, b, r, c];
a = 1;
b = 2;
c = 3;
r = 9; ss = Subsets[{x, y, z} /.
Solve[{(x \[Minus] a)^2 + (y \[Minus] b)^2 + (z \[Minus] c)^2 ==
r^2, x y z != 0}, {x, y, z}, Integers], {2}];
t = Select[ss, And @@ Unequal @@@ Subsets[Flatten[#], {2}] &];
Select[t, Apply[EuclideanDistance, #] == 18 &]
My question: besides $AB = 18$, are there any other integers of $AB$?