\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}

\usepackage[margin=1in]{geometry}
\usepackage{enumitem}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{xcolor}
\usepackage{verbatim}

% THEOREM ENVIRONMENTS
\theoremstyle{definition}
\newtheorem*{theorem}{{Theorem}}
\newtheorem*{lemma}{{Lemma}}
\newtheorem*{proposition}{{Proposition}}
\newtheorem*{definition}{{Definition}}
\newtheorem*{corollary}{{Corollary}}
\newtheorem*{example}{{Example}}
\newtheorem*{remark}{{Remark}}
\newtheorem*{claim}{{Claim}}
\newtheorem*{question}{{Question}}

\theoremstyle{plain}
\newtheorem*{reminder}{{\textit{Reminder}}}
\newtheorem*{hint}{{\textit{Hint}}}

% ENVIRONMENTS FOR CITING BOOK STATEMENTS
\newcommand{\prop}[1]{\paragraph{Proposition #1}}
\newcommand{\axm}[1]{\paragraph{Axiom #1}}
\newcommand{\thm}[1]{\paragraph{Theorem #1}}


% COMMANDS
\newcommand{\solution}{{\color{blue} \textsc{\ \\ Solution.\ \ }}}
\newcommand{\revisedsolution}{{\color{blue} \textsc{\ \\ Revised Solution.\ \ }}}
\newcommand{\Z}{\mathbb{Z}} % the integers
\newcommand{\N}{\mathbb{N}} % natural numbers
\newcommand{\R}{\mathbb{R}} % real nubers
\newcommand{\Q}{\mathbb{Q}} % rational numbers
\newcommand{\divides}{\ \vert \ }
\newcommand{\st}{ \ : \ } % such that
\newcommand{\inv}{^{-1}} % inverse
\newcommand{\img}{\mathrm{im}} % image
\newcommand{\into}{\hookrightarrow} % injection
\newcommand{\onto}{\twoheadrightarrow} % surjection
\newcommand{\map}[1]{\xrightarrow{#1}} % named map
\newcommand{\id}{\mathrm{id}} % identity map

\newcommand{\card}{\mathrm{card~}} % cardinality of
\newcommand{\power}{\mathcal{P}} % powerset

% SOME ENVIRONMENTS

\newcommand{\exheading}[1]{\section*{Exercise #1}}
\newcounter{exnum}
% \setcounter{exnum}{1} % default 0 start
\newcommand{\exercise}{
    \stepcounter{exnum} 
    \exheading{\theexnum}
    }

\newcommand{\bea}{\begin{enumerate}[label={(\alph*)}]}
\newcommand{\ee}{\end{enumerate}}



%%%%
\title{MAT 108: Problem Set 9}
\author{(ADD NAME)}
\date{Due 3/14/23 at 11:59 pm on Canvas}

\begin{document}

\maketitle


\paragraph{Reminders:}
\begin{itemize}

%\item Put your name at the top!
\item Your homework submission must be typed up in full sentences, with proper mathematical formatting. Handwritten homework submissions will receive a score of 0. Solutions containing incomplete sentences or poor formatting will lose points.
\item You will receive feedback on PS8 by next Tuesday, 3/14. PS8 revisions are due Friday, 3/17 at 11:59 pm. Underneath your old solution, type 
\vspace{-3mm}
    \begin{verbatim}
        \revisedsolution
    \end{verbatim}
\vspace{-7mm}
and then type your revised solution.
\item All assignments for this course, except the final exam, must be submitted by Friday, 3/17 at 11:59 pm; no extensions will be possible beyond this time.
\end{itemize}


\paragraph{Grading for this problem set} 
This problem set will be graded for \emph{completion}: an honest attempt given to solve the problem will be given full marks. The solutions will be posted two days after the set is due so that you can verify your own answers. 


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\exercise 

Describe an algorithm for ``counting'' the countable set $\N^3 = \N \times \N \times \N$. In other words, describe how one could construct a bijective function $\N \to \N^3$. 

\emph{Your description doesn't need to be 100\% rigorous; this would take a long time to write down. However, your description needs to be clear enough so that a hypothetical classmate who hasn't thought about this problem would be able to understand how to count $\N^3$, and understand why your counting method would reach any given element in $\N^3$ in finite time.}

\paragraph{Hint.} 
Think about how we ``counted'' $\N \times \N$ or $\Z \times \Z$ in class. 

\solution



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\exercise 

Prove that the open interval $(-\frac{\pi}{2}, \frac{\pi}{2})$ has the same cardinality as $\R$. 

\paragraph{Hint.}
You need to find a bijection between the two sets. Do you know of a function from calculus class that gives a bijection $(-\frac{\pi}{2}, \frac{\pi}{2}) \to \R$? 

\begin{remark}
Once we know that one open interval has the same cardinality as $\R$, by scaling and translating using a linear function, we can show that any open interval $(a,b) \subset \R$ (where $a < b$) has the same cardinality as $\R$. 
\end{remark}


\solution





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\exercise 

Prove that for each $n \in \N$, $\card \power([n]) = \card [2^n]$. 


\solution





\end{document}
