First, we apply the Euclidean algorithm to find the GCD:
- \(47 = 39 \times 1 + 8\quad \textcircled{1}\)
- \(39 = 8 \times 4 + 7 \quad \textcircled{2}\)
- \(8 = 7 \times 1 + 1 \quad \textcircled{3}\)
Now, we express each remainder from the equations above:
- From \(\textcircled{3}: 1 = 8 - 7 \times 1\)
- From \(\textcircled{2}: 7 = 39 - 8 \times 4\)
- From \(\textcircled{1}: 8 = 47 - 39 \times 1\)
Finally, we "back-substitute" to express \(1\) as a combination of \(47\) and \(39\):$$\begin{aligned}1 &= 8 - (39 - 8 \times 4) \times 1 &&( \text{substituting } 7 \text{ using } \textcircled{2}) \\
1 &= 8 \times 5 - 39 &&( \text{simplifying}) \\
1 &= (47 - 39 \times 1) \times 5 - 39 &&( \text{substituting } 8 \text{ using } \textcircled{1}) \\
1 &= 47 \times 5 - 39 \times 5 - 39 & &(\text{expanding}) \\
1 &= 47 \times 5 + 39 \times (-6) & &(\text{final form})\end{aligned}$$Thus, a solution is \(u=5\) and \(v=-6\).