: simple problem 3x = 1 (mod 16), find all possible values of x mod 16

  • Thread starter Thread starter bobthebanana
  • Start date Start date
Click For Summary
To solve the equation 3x = 1 (mod 16), it is established that 3 is relatively prime to 16, ensuring a unique solution exists. The approach involves rewriting the equation as 3x = 1 + 16k, where k is any integer. A hint suggests looking for a solution to 3x ≡ 15 (mod 16) and then adjusting the result. Brute force testing values of x from 0 to 17 can also reveal the answer, while noting that the sequence will repeat. Ultimately, the solution can be found efficiently by testing multiples of 16 and dividing by 3.
bobthebanana
Messages
21
Reaction score
0
URGENT: simple problem... 3x = 1 (mod 16), find all possible values of x mod 16

simple problem... 3x = 1 (mod 16), find all possible values of x mod 16

so this is what I've come to:
3x = 1 + 16k, where k is any integer

i'm stuck though, any help?

thanks
 
Mathematics news on Phys.org
3 is relatively prime to 16, thus the elements 3x1, 3x2, 3x3...3x15 are all distinct, and simply form a permutation of the original multiplicative group. That is to say...there is only a single answer to your problem.

You can see that also by: 3x \equiv 3y Mod {16} \rightarrow {x} \equiv {y} Mod {16.}

Then all you have to do is find that one number. Hint(1): It can't be a multiple of 2. Hint(2): Look for a solution of 3x \equiv {-1}\equiv{15} Mod 16 and then subtract that number from 16.
 
Last edited:
You can just brute force this one by trying 3x mod 16, with x = 0 to 17 and look for a repeating pattern. All modulo sequences like this will repeat, but may not include all the numbers from 0 to M-1 (where M is the modulus), for example an even number times X modulo an even number will never produce an odd result, cutting out half the numbers in the range, and the cycle repeats at a faster "rate" (2X mod 8 for X = 0->n = 0 2 4 6 0 2 4 6 ...).
 
Last edited:
Adding 1 to the multiples of 16 up to 32 and dividing by 3 until obtention of an integer is an easier solution, I believe.
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
7
Views
13K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K