degrade into solving system of linear congruence

来源: 2014-12-30 07:26:00 [旧帖] [给我悄悄话] 本文已被阅读:

This is a special case of quadratic congruence. The general quadratic congruence is not easy to solve with composite moduli.

But since gcd(n, n+1) = 1 and 2000=2^4x5^3. So we can solve the following four linear congruence cases instead:

1) n=0( mod125) and n+1 = 0(mod 16), n=1375 (plug into original equation, it is an extraneous one)

2) n=0 (mod16) and n+1=0(mod 125); n=624 (plug into n(n+1)/2 , is a good solution)

3) n=0(mod2000), n =0, 2000 (the one we already have)

4) n+1=(mod 2000), n =1999, this is also a good solution.