The number of distinct integer solutions (x, y) of the equation , is
Show solution
Correct answer: 8
What we want: the number of integer pairs with .
Step 1 — Use a clean identity. For any real , (Quick reason: if , both and carry the sign of , so their absolute values add to ; symmetrically it's when is larger.) So the equation becomes
Step 2 — Read off the integer condition. We need both and , with at least one equal to . So , but not both zero.
Step 3 — Count. The grid has points; drop , leaving .
Answer: 8
💡 Teacher tip: splitting into four sign-cases is slow and error-prone. Collapsing it to turns the whole thing into counting points on a tiny grid.