I have to answer the following question for an assignment:
Is the set $A=\{3^{n}\mid n\in\mathbb{Z}\}$ finite, countably infinite, or uncountable?
I've defined what I originally thought to be a proper function rule showing a bijection from $\mathbb{N}$ to $A$, but I've since realized that I'm missing some elements in the codomain.
\begin{equation*} f:\mathbb{N}\to A:\left\{ \begin{array}{ll} n\mapsto 3^{n},&\text{if $n=2k-1$ for some $k\in\mathbb{N}$}\\ n\mapsto 3^{-n},&\text{if $n=2k$ for some $k\in\mathbb{N}$} \end{array}\right. \end{equation*}
Here, I noticed that I'm missing all the odd negative numbers and all the even positive numbers.
Is this even doable this way, or do I need to draw a diagram?
I'd much prefer to have a function definition if possible.
