a*a+168=b*b
(b+a)(b-a)=168=2*2*2*3*7
b=a+c;
a*a+168=a*a+2ac+c*c
(2a+c)c=168 则c必为偶数,令c=2d,有
(2a+2d)*2d=168
(a+d)*d=42=2*3*7
d= 1, 2, 3,6, 7, 14, 21, 42, -1, -2, -3,-6, -7, -14, -21, -42
由于a=42/d-d,则有:
a=41, 19, 11, 1, -1, -11, -19, -41, -41, -19, -11, -1, 1, 11, 19, 41,
a*a-100=1581, 261, 21, -99, -99, 21, 261, 1581, 1581, 261, 21, -99, -99, 21, 261, 1581,
去掉重复的
答案是:1581, 261, 21, -99