Find out if the inverse exists for the following, give reasoning behind your answer. If you conclude that the inverse exists then find the B ́ezout coefficients and the inverse of the modulo. [Hint: Example 2 of section 4.4 in the book]
(a) - (3 points) 678 modulo 2970
(b) - (3 points) 137 modulo 2350
"g.c.d {\\color{Red} (a, b)} = 1"
Solution (a)
To check the inverse for 678 modulo 2970 exists or not, we can write
"2978 = 678 \u00d7 4 + 258\\\\\n678 = 258 \u00d7 2 + 162\\\\\n258 = 162 \u00d7 1 + 96\\\\\n162 = 96 \u00d7 1 = 66\\\\\n96 = 66 \u00d7 1 + 30\\\\\n66 = 30 \u00d7 2 + 6 \\\\\n30 = 6 \u00d7 5 + 0 \\\\"
Hence "g.c.d (2978, 678) = 6 \u2260 1"
Therefore, the inverse of 678 modulo 2970 does not exist.
Solution (a)
To check the inverse for 137 modulo 2350 exists or not, we can write
"2350 = 137 \u00d7 17 + 21\\\\\n\n137 = 21 \u00d7 6 + 11\\\\\n\n21 = 11 \u00d7 1 + 10\\\\\n\n11 = 10 \u00d7 1 + 1 \\\\"
Hence "g.c.d (2350, 137) = 1"
Therefore, an inverse of 137 modulo 2350 exists.
Now to find the inverse we proceed as follows.
"11 + 10 (\u2013 1) = 1\\\\\n\n21 + 11 (\u2013 1) = 10\\\\\n\n137 + 21 (\u2013 6) = 11\\\\\n\n2350 + 137 (\u2013 17) = 21"
Therefore,
"11 + (21 + 11 (\u2013 1)) (\u2013 1) = 1\\\\\n\n11 \u2013 21 + 11 = 1 \\\\\n\n11 \u00d7 2 + 21 (-1) = 1"
Then
"(137 + 21 (-6)) \u00d7 2 + 21 (-1) = 1\\\\\n\n137 \u00d7 2 + 21 \u00d7 (-13) = 1"
And finally
"137 \u00d7 2 + (2350 + 137 \u00d7 (-17))(-13) =1 \\\\\n\n2350 \u00d7 2(-13) + 137 \u00d7 2(223) = 1"
Hence Bezout coefficients are (-13) and (223)
And the invers of 137 modulo 2350 is "223"
Comments
Leave a comment