I am having some trouble getting the correct answer on linear congruences. Any help would be appreciated!
Consider the following:
Solve $25x = 15 $ (mod 29)
The gdc(25,29) = 1. Therefore, x has one solution. Using the extended Euclidean algorithm we know that:
$25x_0 + 29y_0 = 1 $
We get that:
$29 = 25(1) + 4$
$25 = 4(6) + 1$
Therefore:
$1 = 25 - 4(6)$
$1 = 25 - 6(29 - 25)$
$1 = 25(7) + 29(-6)$
Multiplying by 15 we get that
$15 = 25(7*15) + 29(-6*15)$
Now $x_0 = 7*15 = 105$ which is $18$ (mod 29)
I know that my process is wrong because 18 does not satisfy the linear congruence.