求x^2-y^2=1979的整数解

问题描述:

求x^2-y^2=1979的整数解

x^2-y^2 = 1979(x+y)(x-y) = 1979因1979是质数,所以当 x+y = 1979 ,x-y = 1 时,x=990 ,y=989当 x+y = 1 ,x-y = 1979 时,x=990 ,y=-989当 x+y = -1979 ,x-y = -1 时,x=-990 ,y=-989当 x+y = -1 ,x-y = -1979 时,x=-99...