Prove that 2xmodn is a bijection for all odd n

  • Thread starter Thread starter freshman2013
  • Start date Start date
  • Tags Tags
    Bijection
Click For Summary

Homework Help Overview

The discussion revolves around the function f(x) = 2x mod n and whether it is a bijection for all odd n. Participants are exploring the implications of the function's properties, particularly in relation to the greatest common divisor and the existence of inverses.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Some participants express confidence in the bijection property based on testing with odd n and the gcd condition, while others question the validity of generalizing this to all functions mod a prime number. There is a discussion about the potential pitfalls of assuming coprimality implies bijectiveness.

Discussion Status

The conversation is ongoing, with participants raising concerns about the reasoning behind the bijection claim and exploring counterexamples. There is no explicit consensus, but some guidance is being offered regarding the specific function under consideration.

Contextual Notes

Participants are grappling with the implications of the function's properties and the assumptions made in the proof attempts. The discussion highlights the need for careful consideration of the characteristics of different functions mod n.

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?
 

Similar threads

Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K