How do I use Fermat's Little Theorem to solve for x in F19?

In summary: ThanksThanks for your help! I don't see how that 510 gets there. The answer should be 2^{-100}=2^{-10}.
  • #1
PolyFX
31
0

Homework Statement


Solve 3x + 50 = 11 in F53

Homework Equations


Extended Euclidean Algorithm

The Attempt at a Solution



To find 3-1 mod 53 using the euclidean algorithm:

gcd(53,3)

1)53/3 = 17 + 2R

53 = 17 * 3 + 2
2 = 53 - 17 * 3

3/2 = 1 + 1R

3 = 1 * 2 + 1
1 = 3 - 1 * 2 = 3 - 2Now going from reverse;

1 = 3 - (53 - 17 * 3)
= 3 - 53 + 17 * 3
= 18*3 - 53

3-1 = 18 mod 53

3x + 50 = 11
3x = 11 - 50 mod53 ==> 3x = -39 mod 53
3x = 14 mod 53

I'm stuck after this step. How do I solve for x?

-Thanks
 
Physics news on Phys.org
  • #2
When your at 3x=14, just multply both sides by [tex]18=3^{-1}[/tex]. You should get there then...
 
  • #3
micromass said:
When your at 3x=14, just multply both sides by [tex]18=3^{-1}[/tex]. You should get there then...

Hi micromass,

So

3x = 14 mod 53
18 * 3x = 18 * 14 mod 53

Is it safe to assume that 18 * 3x = x since 3*3-1 = 1?

therefore

x = 18 * 14 mod 53
= 252 mod 53
= 40 mod 53

Is this the correct approach?

-Thanks
 
  • #4
PolyFX said:
Hi micromass,

So

3x = 14 mod 53
18 * 3x = 18 * 14 mod 53

Is it safe to assume that 18 * 3x = x since 3*3-1 = 1?

therefore

x = 18 * 14 mod 53
= 252 mod 53
= 40 mod 53

Is this the correct approach?

-Thanks

It looks fine. Check it. Put x=40 in your original equation. Does it work?
 
  • #5
Dick said:
It looks fine. Check it. Put x=40 in your original equation. Does it work?

Haha of course. Yep, I plugged in 40 back into the original equation and I got

3x + 50 = 11 mod 53
3(40) + 50 = 11 mod 53
120 => 11 mod 53


However, I have another question

Say you're given something like this

"Solve 7x + 2 = 2-100 in F19"

I tried doing this the same way as the previous problem but once again I am stuck. Here is what I have so far.


Find 7-1 mod 19

gcd(19,7)

19/7 = 2 + 5R

19 = 2 * 7 + 5
5 = 19 - 2 * 7


7/5 = 1 + 2 R

7 = 1 * 5 + 2
2 = 7 - 1*5

5/2 = 2 + 1
5 = 2 * 2 + 1
1 = 5 - 2 * 2

Going from reverse:

1 = 5 - 2 * 2
= 5 - 2 * (7 - 5)
= 5 - 2*7 + 2*5
= 3*5 - 2*7
3*(19-2*7) - 2*7
=3*19 - 6*7 -2*7
=3*19 -8*7

Therefore 7-1 = -8 = 11 mod 19

7x = 2-100 - 2 mod 19

This is where I'm having problems. What do I do next?
 
  • #6
Just multiply both sides by [tex]7^{-1}[/tex].
Also, [tex]2^{100}[/tex] can be simplified by using Fermat's little theorem.
 
  • #7
micromass said:
Just multiply both sides by [tex]7^{-1}[/tex].
Also, [tex]2^{100}[/tex] can be simplified by using Fermat's little theorem.
Hi, I'm a little lost as to how to use Fermats Little Theorem to simplify.

2-100 mod 19

Since 19 is prime then that should mean that 218 mod 19 = 1.

So,

2-100 mod 19:

= 218 * -5 + (-10) mod 19
=(218)-5 * 510 mod 19
= 1-5 * 510 mod 19
= 510 mod 19

I need some assistance after this part however, I don't believe it is correct either.-Thanks
 
  • #8
PolyFX said:
Hi, I'm a little lost as to how to use Fermats Little Theorem to simplify.

2-100 mod 19

Since 19 is prime then that should mean that 218 mod 19 = 1.

So,

2-100 mod 19:

= 218 * -5 + (-10) mod 19
=(218)-5 * 510 mod 19
= 1-5 * 510 mod 19
= 510 mod 19

I need some assistance after this part however, I don't believe it is correct either.


-Thanks

I don't see how that 510 gets there. The answer should be [tex]2^{-100}=2^{-10}[/tex].

Now, 210 is easily calculatable, so finding its inverse should also pose no problem...
 

Related to How do I use Fermat's Little Theorem to solve for x in F19?

1. What are finite fields?

Finite fields, also known as Galois fields, are mathematical structures that consist of a finite set of elements and two operations, addition and multiplication. They are commonly used in algebraic coding theory, cryptography, and other fields of mathematics.

2. Why is it important to solve for X in finite fields?

Solving for X in finite fields is important because it allows us to find solutions to equations in a finite field, which can help us understand the behavior of systems with a finite number of elements. It is also necessary for many practical applications, such as error-correcting codes and cryptography.

3. How do you solve for X in finite fields?

To solve for X in a finite field, you must first determine the field's characteristics, which is the smallest prime number that the field contains. Then, you can use various algebraic techniques, such as substitution and elimination, to solve for X in the given equation.

4. Can you solve for X in any finite field?

Yes, it is possible to solve for X in any finite field, as long as the field's characteristics are known. However, the methods used to solve for X may vary depending on the specific characteristics of the field.

5. What are some real-world applications of solving for X in finite fields?

Solving for X in finite fields has many practical applications, such as in error-correction codes for digital communications, cryptography for secure communication and data protection, and in the design of computer algorithms. It is also used in various areas of engineering, physics, and computer science.

Similar threads

  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • Precalculus Mathematics Homework Help
Replies
5
Views
890
Replies
3
Views
7K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Computing and Technology
Replies
15
Views
5K
  • Advanced Physics Homework Help
Replies
11
Views
1K
Back
Top