Statement: Given $S = az \pm b$ and $T = ak \pm b$, and $a \neq b$:
$$S \mid T \iff k \equiv \pm z \pmod S$$
This holds true only if the three instances of $\pm$ multiply to $+$, i.e., all are $+$ or exactly two are $-$. (Proof at the end.)
I assume I have not discovered something even vaguely new; in fact, this seems like it ought to be a somewhat basic theorem or property, but in going through some online texts and discussions, I don't see it anywhere. It's possible that it's related to the CRT, since we have
$$S \equiv \pm b \pmod a \\ T \equiv \pm b \pmod a \\ k \equiv \pm z \pmod S$$
But since $S$ and $T$ are different integers in the same residue class and the same moduls, but their divisibility is related to the... I guess here, $z$ and $k$ are the quotients by Eucliden division(?)... this doesn't seem to fit with the normal applications of the CRT.
Does anyone know of a name for this theorem or property, or have a reference to it/about it?
Proof: Take all of the instances of $\pm$ to be positive. We have:
$$S = az + b \\ T = ak + b$$
And the claim is that $S \mid T \iff k \equiv +z \pmod S$. Taking this equivalence between $k$ and $z$, we can rewrite $k$ as:
$$k = nS + z = n(az+b) + z$$
for some integer $n$. Then
$$T = ak+b = a(n(az+b)+z)+b \tag{1}$$ $$T = a^2nz+anb+az+b = an(az+b) + (az+b) = (az+b)(an+1) \tag{2}$$
The RHS of $(1)$ contains all three of the signs of interest. Replacing any two with negative signs gives the equivalents:
$$T = a(n(az-b)-z)+b = (az-b)(an-1)\\ T = a(n(az-b)+z)-b = (az-b)(an+1)\\ T = a(n(az+b)-z)-b = (az+b)(an-1)$$
Taking all three or any one sign as negative leads to a mismatch, requiring $S$ to be both $az+b$ and $az-b$.