2

Is $\mathbb{N}\rightarrow \mathbb{N\times N},f(x)=(x,x)$ onto?

I am not sure how to tell. Say $b\in N\times N$ this means the codomain is all the different combinations of the natural numbers.

But the domain is only the natural numbers multiplied, like $3\times 7$

Ivo Terek
  • 77,665
Fernando Martinez
  • 6,698
  • 19
  • 74
  • 108

1 Answers1

3

Firstly, $\mathbb{N} \times \mathbb{N}$ denotes the set of pairs of natural numbers. That is, $$ \mathbb{N} \times \mathbb{N} = \{ (a,b) \mid a, b \in \mathbb{N} \}. $$ It does not denote the set of products of numbers in $\mathbb{N}$.

Secondly, the definition of "onto" is that all elements of the codomain are in the range. That is, for any $(a,b) \in \mathbb{N}\times\mathbb{N}$ it is possible for $f(x) = (a,b)$ for some $x$.

If $a \neq b$, this is not possible, so it's not onto.