A General Theory for N = pA + qB with p ≡ 1 (mod q) | Synapse