Prior to that solved a similar equation. Solutions like wrote. Then I thought to solve a similar equation.
Diophantine equation: $X^2+XY+Y^2=Z^2+1$
Some solutions are unpretentious parameterization.
Solutions can be written using the solutions of Pell's equation: $p^2-(3k^2-6k+1)s^2=\pm1$
And the solutions are of the form:
But quickly found out that you can draw more formula. Therefore, so as not to draw every time different formulas. Thought can draw right formula in general?
That is, draw the solution of equation: $X^2+XY+Y^2=Z^2+q$
$q$ - what some given integer.
So what can be interesting ideas to solve this equation in general form?