How to find the first integer making two progressions have gcd $> 1$

51 Views Asked by At

Is there a technique to efficiently find the first positive integer, $r$, that makes:

$$\gcd(97+r, 106-r) > 1\text{?}$$