Skip to main content
1 of 2

Characterizing $x y \equiv r \pmod{a^n}$ when $x, y \geq a^{n-1}$

Let $x, y \in \mathbb{Z}$ such that $x, y \geq a^{n-1}$ for some fixed positive integers $a$ and $n$. Is there a nice characterization of the remainders $r$ satisfying $x y \equiv r \pmod{a^n}$? Further, given $r$, under what conditions does $x y \bmod a^n < r$ hold?

Number theory isn't my specialty, so any pointers would be appreciated. I would ideally be looking for an answer that doesn't rely on factoring, if possible.