Pretty much every thing is in the title, really! I'm trying to come up with an efficient algorithm to factorize large integer as an homework for a parallel programming course.
I've seen a few pages explaining the algorithms, but just can't wrap my head around the notation enough to actually implement the thing.
For exemple, in the very beginning, to demonstrate inefficiency of Fermat's Factirization for primes whose factors are nearer 1 than from the square root we have for n=1649:
41^2 - n = 32
42^2 - n = 115
43^2 - n = 200
...
and then
41^2 ≡ 32 (mod n),
43^2 ≡ 200 (mod n),
we have
41^2 * 43^2 ≡ 80^2 (mod n),
that is,
(41 * 43)^2 ≡ 80^2 (mod n).
What does the (mod n) stands for?
I understand the modulo operator, as used in many programming language, but I'm not sure whether this is what is meant here as I can't figure what are his operands, in that context…
Thank you very much,
Pascal
Best Answer
A useful way to think about $a \equiv b$ (mod $n$) is "$a$ and $b$ have the same remainder when divided by $n$".