Finding Multiplicative Inverse of 23 in Z_31

In summary: The reasoning is correct, using the extended Euclidean algorithm and working backwards to express 1 as a linear combination of 23 and 31. In summary, the division algorithm can be used to find the multiplicative inverse of an integer in Z_m, as long as certain conditions are satisfied such as a and m being relatively prime. The extended Euclidean algorithm can be used to find the inverse, by reorganizing the steps and working backwards.
  • #1
Benny
584
0
There's something that's been bothering me with the division algorithm for a while.

a = dq + r where r < |d| and a,d,q,r are integers. This can be used to find the multiplicative inverse of an integer in Z_m where m is an integer if certain conditions are satisfied. For example if I had two integers 23 and 31, they are relatively prime. So I can find the multiplicative inverse of 31 in Z_23 as follows.

31 = 1 * 23 + 8
.
.
.
3*31 - 1 = 4 * 23
[tex]3 \times 31 \equiv 1\left( {\bmod 23} \right)[/tex]

So the multiplicative inverse of 31 in Z_23 is 3. How would I go about doing the opposite? That is, finding the multiplicative inverse of 23 in Z_31? With the 'reverse' problem, having done a few questions of this type, I've noticed a pattern where 'multiples' of 31 and 23 in the final equation 3 * 31 - 1 = 4*23 are taken in some combination(can't really recall it right now) and this gives the answer to the 'reverse' problem. I'm not sure if that is just a coincidence or if it is actually meant to work so can someone help me find the multiplicative inverse of 23 in Z_31? The two integers are relatively prime so it should exist. Any help appreciated.
 
Physics news on Phys.org
  • #2
What you really want to use are GCDs.
 
  • #3
What you've suggested seems to be what I should be looking at. I come to this conclusion because I have also used the division algorithm to find GCDs. However I still can't make the connection with how to find the multiplicative inverse of 23 in Z_31.

Some of the steps I omitted in my original post are as follows:

31 = 1*23 + 8
23 = 2*8 + 7
8 = 1*7 + 1
7= 7*1 + 0

I'm not sure what I can do here. I'd prefer to be able to use the division algorithm to find the multiplicative inverse if that's possible. Finding GCDs for pairs of 'small' numbers by factorising them is fairly easily but for pairs of large numbers this becomes very difficult. I know that by some theorem, if d is the gcd of two integers a and b then [tex]d = \alpha a + \beta b[/tex] where alpha, beta, a, b and d are integers. But that seems to simply reduce to using the equation 3*31 - 1 = 4 * 23, which is what I had in the first place. I've thought about this but I can't come to a logical conclusion. Could you please provide me with further assistance?
 
  • #4
Some of the steps I omitted in my original post are as follows:
Those are essentially the steps of the (extended) Euclidean algorithm for computing GCDs -- it's very cheap to do.

Notice that you can reorganize as

8 = 31 - 23
7 = 23 - 2*8
1 = 8 - 7

and work backwards to get an expression for 1 as a linear combination of 23 and 31. (You might be able to do the bookkeeping in a slightly more clever way)
 
  • #5
Hmm from my original post I have 3*31 - 1 = 4*23.

What I want is the 'roles' of 31 and 23 switched around. 31 is 23 + 8 and 23 is 31 - 8 so 3*(23+8) - 1 = 4*(31-8) => 3*23 - 1 = 4*31 - 7*8 = 4*31 - 7*(31-23) = > -4 * 23 - 1 = -3*31.

In other words:

[tex] - 4 \times 23 \equiv 1\left( {\bmod 31} \right)[/tex]

So the multiplicative inverse of 23 in Z_31 is [tex] - 4 \equiv 27\left( {\bmod 31} \right)[/tex]. Is the reasoning correct?
 
  • #6
Yes, the multiplicative inverse of 23 is -4, modulo 31.
 

1. What is the definition of a multiplicative inverse in Z31?

A multiplicative inverse in Z31 is a number that, when multiplied by a given number, results in the identity element 1. In other words, it is a number that "undoes" the multiplication operation in the ring of integers modulo 31.

2. Why is finding the multiplicative inverse of 23 in Z31 important?

Finding the multiplicative inverse of 23 in Z31 is important because it allows us to solve equations involving 23 in the ring of integers modulo 31. It also helps us to understand the structure and properties of this algebraic system.

3. How do you find the multiplicative inverse of 23 in Z31?

To find the multiplicative inverse of 23 in Z31, we can use the Extended Euclidean Algorithm. This algorithm involves finding the greatest common divisor of 23 and 31, and then using that to calculate the inverse using a specific formula.

4. Does every number in Z31 have a multiplicative inverse?

Yes, every number in Z31 has a multiplicative inverse, with the exception of 0. This is because 0 does not have a multiplicative inverse in any ring, including Z31.

5. Is the multiplicative inverse of 23 the same as the reciprocal of 23 in Z31?

Yes, the multiplicative inverse of 23 in Z31 is the same as the reciprocal of 23. This is because the reciprocal of a number is just another term for its multiplicative inverse.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Special and General Relativity
Replies
18
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
3K
  • Advanced Physics Homework Help
Replies
2
Views
470
  • Introductory Physics Homework Help
Replies
3
Views
4K
  • Precalculus Mathematics Homework Help
Replies
27
Views
2K
  • Introductory Physics Homework Help
Replies
5
Views
1K
  • Precalculus Mathematics Homework Help
Replies
16
Views
2K
  • Differential Geometry
Replies
5
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
Back
Top