Remix.run Logo
arcastroe 33 minutes ago

If:

a^2 = b^2 (mod m)

Then:

a^2 - b^2 = 0 (mod m)

(a + b)(a - b) = 0 (mod m)

So, (a + b) must be a multiple of one of the factors of m. And (a - b) must be a multiple of the other factor of m.

> I've often wondered what each congruence in the quadratic seive reveals.

Each congruence reveals that the sum of the bases (a plus b) contains a factor of m. And the difference of the bases (a minus b) contains another factor of m.

The only thing you have to watch out for is the trivial case when one of the factors you find through this method is "1" and the other factor is "m". That case isn't very helpful.

It's not that each congruence gives you new information. You only have to find one single non-trivial congruence. But the other (trivial) congruences you find along the way only reveal that 1*m=m, which you already knew.

dmurray a minute ago | parent [-]

> It's not that each congruence gives you new information

So it's not that each congruence gives you N bits of information, and you want kN bits in total. It's more like each congruence has a 1/k chance of giving you the full kN bits.

But in some information theory sense those are the same! Or concretely, if you were testing a large quantity of numbers in parallel, you would get information from each congruence.