Bijective Function from N to N^2: Examples and Help

  • Thread starter Thread starter Anzewill
  • Start date Start date
Click For Summary
SUMMARY

This discussion provides a method for constructing a bijective function from the set of natural numbers (N) to the set of ordered pairs of natural numbers (N^2). The proposed approach involves visualizing a grid where natural numbers are arranged horizontally and vertically, allowing for a zigzag traversal that maps each natural number to a unique pair (m, n). Additionally, a formula is presented: (m, n) → 2^m(2n + 1) - 1, which also defines a bijective relationship between N and N^2.

PREREQUISITES
  • Understanding of bijective functions
  • Familiarity with natural numbers (N)
  • Basic knowledge of coordinate systems
  • Concept of diagonal traversal in arrays
NEXT STEPS
  • Research the properties of bijective functions in mathematics
  • Explore visual representations of functions and mappings
  • Learn about Cantor's pairing function for further insights into bijections
  • Investigate applications of bijective functions in computer science and combinatorics
USEFUL FOR

Mathematicians, educators, students studying set theory, and anyone interested in combinatorial mathematics and function theory.

Anzewill
Messages
1
Reaction score
0
Anyone can give me a example of a bijective fuction from N to N^2?
 
Physics news on Phys.org
I can't give you a simple "formula" but here is how to get a bijective function:

Write the numbers 1, 2, 3, ... horizontally and to left of "1" and slightly below write 1, 2, 3, ... vertically so that the cell below "m" and to the right of "n" is the pair (m,n). Now start at (1, 1) and "zigzag" through that array. That is, go from (1,1) horizontally to (2, 1) then diagonally, down and left, to (1,2), down to (1, 3), diagonally up and right to (2,3) and (3, 1), right to (4, 1), diagonally down to (3,2), etc.
 
Or for a simple formula try [itex](m,n)\rightarrow 2^m(2n+1)-1[/itex].
 

Similar threads

Replies
4
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
13
Views
2K
Replies
10
Views
3K
Replies
1
Views
2K
  • · Replies 23 ·
Replies
23
Views
5K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
1
Views
1K
Replies
6
Views
2K