求方程x^2=y^2+143的正整数解

问题描述:

求方程x^2=y^2+143的正整数解

x² = y ² + 143
x² - y² = 143
(x + y)(x - y) = 143
因为 143 = 1×143 = 11×13
所以
x + y = 143
x - y = 1

x + y = 13
x - y = 11
x + y = 143
x - y = 1
解得:
x = 72
y = 71
x + y = 13
x - y = 11
解得:
x = 12
y = 1