$49a - 125b = 169$
$a = 125k + 6$
$b = 49k + 1$
$a$ and $b$ are natural
$\gcd(a,b) = d$
The question says: Find what $\gcd(a,b)$ could be then find $a$ and $b$ where their $\gcd$ is equal to $13$.
My solution:
Of course, $d$ possibilities is going to be $169$ divisors by applying division properties.
So $d$ is $\left \{ 1,13,169 \right \}$
What I don't understand is how the book found $a$ and $b$
The book found $a$ and $b$ like this:
$d = 13$ $\Rightarrow$ $\left\{\begin{matrix} b= 0\pmod {13} \\ a = 0 \pmod {13} \end{matrix}\right.$
\begin{Bmatrix} 125k + 6 = 0\pmod {13} \\ 49k + 1 = 0 \pmod {13} \end{Bmatrix}
So: $125k + 6 - 49k - 1 = 0\pmod {13}$
In the end we find $k = 9\pmod {13}$ which is $k = 13m + 9$ where $k$ is a natural number. Then by putting this in $a$ and $b$ we find:
$a = 1625m + 1131$
$b = 637m + 442$
where $m$ is a natural number.
I understand almost all this and I know this way.
What I don't understand is I don't think this way should be correct. Correct me if I'm wrong but doesn't $a, b = 0\pmod {13}$ for $d = 13$ only work when $13$ is the highest number in the possibilities? But here it isn't $13$ it is $169$ so I don't think it works.
Because $a,b$ can be divided by $13$ and $169$ at same time this way. So if $169$ is a divisor of both then it's already the $\gcd$ not $13$ since $13$ is a divisor of $169$ so if $a$ and $b$ were multiples of $169$ they will be both $0 \pmod {13}$ even though their $\gcd$ is going to be $169$
TL;DR: I don't think $a, b = 0\pmod {13}$ should work here and I think the book is wrong. If I'm wrong, can you explain it to me please?
The OP is correct in having concerns about the answer $$a = 1625m + 1131, b = 637m + 442.$$ In particular, there is nothing in the method shown that prevents $a$ and $b$ from having a gcd of $169$.
In fact, if $m=7$ then $a$ and $b$ do have gcd $169$. So, the correct answer must state 'for $m\ne 13l+7$'.
To see this, consider the numbers $\frac{a}{13}=49m+34$ and $\frac{b}{13}=125a+87$. We are interested in when both of these numbers are divisible by $13$.
Working modulo $13$ the numbers are $10m+8$ and $8m+9$ and it is now easy to see that $m= 7$ makes both expressions multiples of $13$. Then any $m$ of the form $13l+7$ would do just as well.