Earlier quoted context omitted.
If you bring overflow into the mix things become a lot more complicated. You likely don't even need 32 bits, the numbers 2 and 3 might be enough (I don't know for sure or if there's a quick way to check).
Well, if you "bring overflow into the mix", what you get depends on your behavior when overflowing. If you say that you want to be doing modular arithmetic instead of arithmetic, it doesn't look like 2 and 3 are enough. You're looking for a solution to 2ᵃ * 3ᵇ ≡ n (mod 2⁶⁴) If n is even, we can supply any number of 2 factors by fiddling with a. We can assume without loss of generality that n is odd and a = 0. Now we…
I did say things would get complicated.