Skip to main content\(\newcommand{\im}{{\mathrm{im}}}
\newcommand{\given}{{\, :\,}}
\newcommand{\hanoi}{\mathrm{hanoi}}
\newcommand{\lcm}{{\mathrm{lcm}}}
\newcommand{\ID}{{\mathrm{ID}}}
\newcommand{\chr}{{\mathtt{chr}}}
\newcommand{\ord}{{\mathtt{ord}}}
\newcommand{\set}[1]{\left\lbrace #1 \right\rbrace}
\newcommand{\seq}[2]{( #1 )_{#2}}
\newcommand{\gr}[1]{\left( #1 \right)}
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\size}[1]{\# #1}
\newcommand{\id}[1]{\mathrm{id}_{#1}}
\newcommand{\ip}[1]{\left\langle #1 \right\rangle}
\newcommand{\floor}[1]{\left\lfloor #1\right\rfloor}
\newcommand{\ceiling}[1]{\left\lceil #1\right\rceil}
\newcommand{\indemph}[1]{{\textbf{\emph{#1}}\index{#1}}}
\renewcommand{\implies}{\to}
\renewcommand{\iff}{\leftrightarrow}
\newcommand{\lxor}{\oplus}
\newcommand{\cP}{\wp}
\newcommand{\pset}{\cP}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\barr}[1]{\overline{#1}}
\newcommand{\sage}{\textsc{Sage}}
\newcommand{\magma}{\textsc{Magma}}
\newcommand{\bob}{\text{Bob}}
\newcommand{\true}{\text{T}}
\newcommand{\false}{\text{F}}
\newcommand{\ahat}{\hat{a}}
\newcommand{\ah}{\ahat}
\newcommand{\bhat}{\hat{b}}
\newcommand{\abar}{\bar{a}}
\newcommand{\cA}{\mathcal{A}}
\newcommand{\cF}{\mathcal{F}}
\newcommand{\cW}{\mathcal{W}}
\newcommand{\todo}[1]{{\color{red} TODO: #1}}
\renewcommand{\div}{\operatorname{div}}
\newcommand{\gexp}[3]{#1^{#2 #3}}
\newcommand{\gexpp}[3]{\displaystyle\left(#1\right)^{#2 #3}}
\newcommand{\glog}[3]{\log_{#1}^{#3}#2}
\def\dbend{{!!!}}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Subsection 1.4.1 Even and odd integers
We give definitions of certain types of integers so that we have some objects to play with.
Definition 1.4.1.1.
An integer
\(n\) is
even if there exists an integer
\(k\) such that
\(n = 2k\) .
Proof Technique 1.4.1.2. Show \(n\) is even.
Suppose \(n\) is an integer, and we want to prove \(n\) is even.
-
Find
\(k\) such that
\(n = 2k\text{.}\)
-
Show
\(k\) is an integer.
-
Conclude
\(n\) is even, by definition.
Example 1.4.1.3. Twelve is even.
The integer
\(12\) is even because
\(12 = 2 \cdot 6\text{,}\) and
\(6\) is an integer.
Example 1.4.1.4. Zero is even.
The integer
\(0\) is even because
\(0 = 2 \cdot 0\text{,}\) and
\(0\) is an integer.
Definition 1.4.1.5.
An integer
\(n\) is
odd if there exists an integer
\(k\) such that
\(n = 2k + 1\) .
Proof Technique 1.4.1.6. Show \(n\) is odd.
Suppose \(n\) is an integer, and we want to prove \(n\) is odd.
-
Find
\(k\) such that
\(n = 2k + 1\text{.}\)
-
Show
\(k\) is an integer.
-
Conclude
\(n\) is odd, by definition.
Example 1.4.1.7. Twenty three is odd.
The integer
\(23\) is odd because
\(23 = 2 \cdot 11 + 1\text{,}\) and
\(11\) is an integer.
Example 1.4.1.8. Negative twenty seven is odd.
The integer
\(-27\) is odd because
\(-27 = 2 \cdot (-14) + 1\text{,}\) and
\(-14\) is an integer.
In
TheoremΒ 5.1.1.15 we show that every integer is even or odd and that no integer is both. Thus we have: