For integers , , write . Euclidean division gives and , with , hence
For and , put . Interchanging the two axes in the remaining lattice point problem gives
If , the original sum is zero; if after reduction, it is also zero. Each swap lowers the modulus as in the Euclidean algorithm, enabling logarithmically many reduction stages. For example , and the swapped sum gives the same answer.

Articles by others on the same topic (0)

There are currently no matching articles.