Schröder–Bernstein theorem · Exercise-SCHRODER-BERNSTEIN-THEOREM-007

Step-by-step solved exercise: Cardinals

Let \(\displaystyle g\colon \mathbb{Z}\to\mathbb{N}\) be given by \(\displaystyle g(z)=2z\) if \(\displaystyle z\ge 0\) and \(\displaystyle g(z)=-2z-1\) if \(\displaystyle z<0\). What is \(\displaystyle g(-2)\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. Since \(\displaystyle -2\) is negative, the branch \(\displaystyle z<0\) applies.

    \[\displaystyle z=-2<0\]
  2. The formula for that branch is \(\displaystyle -2z-1\).

    \[\displaystyle g(z)=-2z-1\]
  3. Substituting \(\displaystyle z=-2\) gives \(\displaystyle -2(-2)-1=4-1\).

    \[\displaystyle g(-2)=-2(-2)-1=4-1\]
  4. Therefore, \(\displaystyle g(-2)=3\).

    \[\displaystyle g(-2)=3\]

Answer

\(\displaystyle 3\)

🎯 Build my path to this exercise