Zermelo
Junior Member
- Joined
- Jan 7, 2021
- Messages
- 148
Greetings everyone.
In my cryptography class, we did some modular equations,for example
[imath]8\cdot x = 20 (\mod26)[/imath]
And the notes just give the solutions, without showing work.
I know that if [imath]m[/imath] is prime, then [imath](Z_m,+_m,\cdot_m)[/imath] is a field, so every number (apart from zero) has a multiplicative and additive inverse, so every equation of the type [imath]a\cdot x + b = c (\mod m)[/imath] can be solved "algebraically", by adding the additive inverse of b and multiplying by the multiplicative inverse of a.
But if m isn't prime, then no number a such that (a, m)>1 has a multiplicative inverse, like in our example [imath]8\cdot x = 20 (\mod26)[/imath]. How does one proceed with such equations? Is there a smart way, or do I just need to brute-force test all possibilities, or look at the multiplicative table for mod 26?
In my cryptography class, we did some modular equations,for example
[imath]8\cdot x = 20 (\mod26)[/imath]
And the notes just give the solutions, without showing work.
I know that if [imath]m[/imath] is prime, then [imath](Z_m,+_m,\cdot_m)[/imath] is a field, so every number (apart from zero) has a multiplicative and additive inverse, so every equation of the type [imath]a\cdot x + b = c (\mod m)[/imath] can be solved "algebraically", by adding the additive inverse of b and multiplying by the multiplicative inverse of a.
But if m isn't prime, then no number a such that (a, m)>1 has a multiplicative inverse, like in our example [imath]8\cdot x = 20 (\mod26)[/imath]. How does one proceed with such equations? Is there a smart way, or do I just need to brute-force test all possibilities, or look at the multiplicative table for mod 26?