S(x) := x(x + 1)/2題目所求:找出所有a、b滿足S(a) - S(b) = Ca(a+1)/2 - b(b+1)/2 = Ca^2 + a - b^2 - b = 2C(a+0.5)^2 - (b-0.5)^2 = 2C(a+b+1)(a-b) = 2C把2C做因分,假設p、q (p > q)是2C的一組因分a = (p + q - 1)/2b = (p - q - 1)/2