I'm following the tutorial of an online calculator to solve congruence equations
I'm doing the same as they are doing but I never get the same result, I don't know what I'm doing wrong.
the tutorial http://www.a-calculator.com/congruence/#faq-formula
$28x\equiv 14 \ $mod $6$
$28$ mod $6$ and $14$ mod $6$ I get
a = $4$ and b = $2$
the linear combination of the $gcd(4,6) =$ $4(-1) + (1)6 = 2$
putting into the formula I get
$\begin{equation*} x_0 = \frac{2(-1)}{2} \; ( \text{mod} \; 6) \end{equation*} = 5$
general solution \begin{equation*} x_n = 5 + \frac{n(6)}{2} \; ( \text{mod} \; 6) \end{equation*}
the final answer is
General form of solutions: 2 + 3k.
Solutions for x less than 6: 2,5.