I found an example of how to solve equation over $\mathbb{Z}$
Example
Solve the equation over $\mathbb{Z}$ : $$xy + 1 = 3x + y. $$ $$ xy = 1 + 3x + y \Longleftrightarrow (x-1) (y-3) = 2 $$ and $\textrm{Div} (2) = \{-2, -1,1,2\}$.
We can then describe the set of pairs $(x, y)$ solutions $$\textrm{S} = (1,3) + \{(-2, -1), (- 1, -2), (1,2), (2,1)\}$$
My thoughts:
From the equation $(1-x) (y-3) = 2$ I can see that $(x-1)\mid 2$ and $(y-3)\mid 2$ then $(x-1)\in \textrm{Div}(2) $ and $(y-3)\in \textrm{Div}(2) $ or $\textrm{Div} (2) = \{-2, -1,1,2\}$ thus
- $x-1=-2 \text{ and } y-3=-2 \Longrightarrow (x=-1,y=1)$
- $x-1=-1 \text{ and } y-3=-1 \Longrightarrow (x=-2,y=2)$
- $x-1=1 \text{ and } y-3=1 \Longrightarrow (x=2,y=4)$
- $x-1=2 \text{ and } y-3=2 \Longrightarrow (x=3,y=5)$
Thus the set of pairs $(x, y)$ solutions $\textrm{S}=\{ (x=-1,y=1),(x=-2,y=2),(x=2,y=4),(x=3,y=5)\}$
Am I right if not I really need help to understand the example
Thanks a lot.
Both $x-1$ and $y-3$ divide 2 but they also need to multiply to give $2$. So you should only consider $$ 2=2\times 1=1\times 2=(-2)\times(-1)=(-1)\times(-2). $$ These correspond to the 4 solutions given in the official solution.
Edit to answer OP's question:
The $(1,3)$ is just a short-hand notation. From what I have written above (and similar comments by others), you can write $$ (x-1,y-3)\in\{(-2,-1),(-1,-2),(1,2),(2,1)\}. $$ This is equivalent to $$ (x,y)\in(1,3)+\{(-2,-1),(-1,-2),(1,2),(2,1)\}\equiv S. $$ Recall that for any set $A$, we define $a+A=\{a+x:x\in A\}$ (supposing that such addition makes sense).