Prove that 2xmodn is a bijection for all odd n

  • Thread starter Thread starter freshman2013
  • Start date Start date
  • Tags Tags
    Bijection
freshman2013
Messages
43
Reaction score
0
1. State whether or not f(x) = 2x mod n is a bijection for all odd n and prove it

Homework Equations

The Attempt at a Solution


So I'm pretty sure it is a bijection over testing it for some odd n, and the fact that gcd(2,n) = 1, thus there must exist an inverse for 2x mod n. However, I realize this proof makes no sense since I can make this argument for any function mod (a prime number) that it is a bijection, although not all functions mod prime are bijections. Any thoughts on where to go now?
 
Physics news on Phys.org
freshman2013 said:
1. State whether or not f(x) = 2x mod n is a bijection for all odd n and prove it

Homework Equations

The Attempt at a Solution


So I'm pretty sure it is a bijection over testing it for some odd n, and the fact that gcd(2,n) = 1, thus there must exist an inverse for 2x mod n. However, I realize this proof makes no sense since I can make this argument for any function mod (a prime number) that it is a bijection, although not all functions mod prime are bijections. Any thoughts on where to go now?

Why are you worried about 'all functions'? You are only dealing with the function f(x)=2x mod n. Yes, there is an inverse for multiplication by 2 mod n where n is odd. What are you worried about?
 
Dick said:
Why are you worried about 'all functions'? You are only dealing with the function f(x)=2x mod n. Yes, there is an inverse for multiplication by 2 mod n where n is odd. What are you worried about?
Forexample, I'm saying that you can argue that x^2 is coprime with n for all primes n. Then argue that x^2 mod n is bijective for all primes n. But that's not that case. E.g. x^2mod 7
x=3 x^2mod7 = 9mod7 = 2mod7
x = 4 x^2mod7 = 16mod7 = 2mod7
Thus x^2mod7 is not bijective but I can use the exact same argument from my 2xmod(n) "proof" to say that x^2mod7 is bijective. Hence, I don't think you can argue that 2x is coprime with all odd n as automatically implying that 2xmodn is bijectgive.
 
freshman2013 said:
Forexample, I'm saying that you can argue that x^2 is coprime with n for all primes n. Then argue that x^2 mod n is bijective for all primes n. But that's not that case. E.g. x^2mod 7
x=3 x^2mod7 = 9mod7 = 2mod7
x = 4 x^2mod7 = 16mod7 = 2mod7
Thus x^2mod7 is not bijective but I can use the exact same argument from my 2xmod(n) "proof" to say that x^2mod7 is bijective. Hence, I don't think you can argue that 2x is coprime with all odd n as automatically implying that 2xmodn is bijectgive.

The only thing those have in common is the digit '2'. f(x)=2x isn't like f(x)=x^2. 3^2 mod 7=2. 2=9 mod 7. But 3^9 mod 7=6. You can't reduce exponents mod n. Is that what you are asking?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top