Find explicit bijection from N to N x N

  • Thread starter Thread starter complexnumber
  • Start date Start date
  • Tags Tags
    Bijection Explicit
Click For Summary
SUMMARY

The discussion focuses on finding an explicit bijection from the set of natural numbers \(\mathbb{N}\) to the Cartesian product \(\mathbb{N} \times \mathbb{N}\). The proposed solution involves traversing a matrix representation of \(\mathbb{N} \times \mathbb{N}\) diagonally and deriving a formula for the mapping. The formula presented is \(n = \left(\sum^{x+y-2}_{k=1} k \right) + x\), but participants express uncertainty about its validity for retrieving the corresponding \((x,y)\) pair from a given \(n\). The discussion emphasizes the need for a clear formula that directly maps \(n\) to \((x,y)\).

PREREQUISITES
  • Understanding of bijections in set theory
  • Familiarity with Cartesian products
  • Basic knowledge of summation notation and sequences
  • Experience with mathematical proofs and functions
NEXT STEPS
  • Research Cantor's pairing function for bijections between \(\mathbb{N}\) and \(\mathbb{N} \times \mathbb{N}\)
  • Explore diagonalization techniques in combinatorial mathematics
  • Study the properties of triangular numbers and their applications in mappings
  • Investigate alternative methods for constructing bijections in set theory
USEFUL FOR

Mathematicians, computer scientists, and students studying discrete mathematics or set theory, particularly those interested in bijections and combinatorial structures.

complexnumber
Messages
61
Reaction score
0

Homework Statement



Find a linear ordering of \mathbb{N} \times \mathbb{N} and
use it to construct an explicit bijection f : \mathbb{N} \to \mathbb{N} \times \mathbb{N}.

Homework Equations


The Attempt at a Solution



I know how to find a bijection by graphically by drawing the \mathbb{N} \times \mathbb{N} in a matrix and then traverse the elements diagonally. However, I cannot find a formula that maps an n to a (x,y) pair.
 
Physics news on Phys.org
Your idea about traversing the elements of the N X N matrix diagonally is good.

Now, we want to write down that idea in a formula form.

Let's start with the first few n:
n=1:(1,1)
n=2:(1,2)
n=3:(2,1)
n=4:(1,3)
n=5:(2,2)
n=6:(3,1)

Now let's consider the pairs in the left column of the matrix, where the pair is (x,1). What pattern is there to these x-values: {1,3,6,10,15...}?
Next consider the pairs that make up a diagonal, for example {(1,3),(2,2),(3,1)}. What pattern is there in these?

Can you use those two patterns to write down an expression for the ordered pair that corresponds to a particular n value?
 
Thanks for your reply. I found a bijection from \mathbb{N} \times \mathbb{N} to \mathbb{N} by
<br /> \begin{align*}<br /> n = \left(\sum^{x+y-2}_{k=1} k \right) + x<br /> \end{align*}<br />

However, is this a bijection from \mathbb{N} to \mathbb{N} \times \mathbb{N} asked by the question? Given a n I cannot use this equation to find a (x,y) pair.
 

Similar threads

Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
9
Views
2K