求方程XY-X-Y=4的整数解

问题描述:

求方程XY-X-Y=4的整数解

由题意得
XY-X-Y-4=0

(X-1)(Y-1)=5
所以有
X-1=5
Y-1=1

X-1=1
Y-1=5

X-1=-5
Y-1=-1

X-1=-1
Y-1=-5
解得:
X=6`````2`````-4`````0
Y=2`````6`````0`````-4