Conjunto numerable · Ejercicio-CONJUNTO-NUMERABLE-TEORIA-006
Ejercicio resuelto paso a paso de Cardinales
¿Cuál de estas funciones es una biyección de \(\displaystyle \mathbb{N}\) sobre \(\displaystyle \mathbb{Z}\)?
Conjunto numerable · Ejercicio-CONJUNTO-NUMERABLE-TEORIA-006
¿Cuál de estas funciones es una biyección de \(\displaystyle \mathbb{N}\) sobre \(\displaystyle \mathbb{Z}\)?
Una biyección de \(\displaystyle \mathbb{N}\) sobre \(\displaystyle \mathbb{Z}\) debe alcanzar todos los enteros, incluidos los negativos, sin repetir valores.
Para la primera función evaluamos los primeros términos: \(\displaystyle f(0)=0\), \(\displaystyle f(1)=-1\), \(\displaystyle f(2)=1\), \(\displaystyle f(3)=-2\), \(\displaystyle f(4)=2\).
Los valores alternan entre negativos y positivos con valor absoluto creciente, así que cubren \(\displaystyle \mathbb{Z}\) sin repetirse.
Las otras funciones fallan: \(\displaystyle n-1\) nunca toma \(\displaystyle -2\), \(\displaystyle n\) no toma negativos y \(\displaystyle n^2\) tampoco.
Por tanto, \(\displaystyle (-1)^n\lceil n/2\rceil\) es la biyección buscada de \(\displaystyle \mathbb{N}\) sobre \(\displaystyle \mathbb{Z}\).
\(\displaystyle f(n)=(-1)^n\lceil n/2\rceil\)