I was solving a math problem when I came across this Question:
When is $17 \mid 77a+1$ With $a\in \mathbb N^*$
It’s easy to see that there’s infinitely many of values of $a$, you can’t try a little bit with this but you will end up with these values : $$a\in \{15,32,49,66,...\}=A$$ In this set any number it’s equal to the previous one $+17$ . I’ve found a relation with this set and the set contains all numbers divisible by $17$, let’s call it $D_{17}$ $$D_{17} =\{17,34,51,68,...\}$$ You can see that if $n \in D_{17} \iff n-2\in A$ And if $n\in A \iff n+2 \in D_{17}$.
My question is why $2$ appeared here, does there exist an equation that when we solve it we will get this $2$?