Having trouble with understanding this.
$$d \equiv 7^{-1} \pmod {360}$$
So far i have got
$$360 = 7 \cdot 51 + 3$$
$$7 = 3 \cdot 2 + 1$$
$$3 = 3 \cdot 1 + 0$$
Now i am stuck on the next step have looked at a few videos but have had no luck
Having trouble with understanding this.
$$d \equiv 7^{-1} \pmod {360}$$
So far i have got
$$360 = 7 \cdot 51 + 3$$
$$7 = 3 \cdot 2 + 1$$
$$3 = 3 \cdot 1 + 0$$
Now i am stuck on the next step have looked at a few videos but have had no luck
From your first two equations,
$\begin{array}{rcl} 3&=&360-7\cdot51\\ 1&=&7-3\cdot 2\end{array}$
Now substitute: $$1 = 7-3\cdot 2=7-(360-7\cdot 51)\cdot 2 = 7\cdot 103-360\cdot 2$$ Considering this last equation $\mod{360}$, we get $1\equiv 7\cdot 103 \pmod{360}$. So $7^{-1}\equiv 103\pmod{360}$
Another format for doing this problem is $$\begin{array}{c|r|r} &x&7x\pmod{360} \\ \hline &0&360 \\ &1 & 7\\ \text{Row 3}=\text{Row 1}-51\cdot\text{Row 2}& -51&3\\ \text{Row 4} =\text{Row 2} - 2\cdot\text{Row 3} & 103 & 1 \end{array}$$