\documentclass[numbers=enddot,12pt,final,onecolumn,notitlepage]{scrartcl}%
\usepackage{amsfonts}
\usepackage[headsepline,footsepline,manualmark]{scrlayer-scrpage}
\usepackage[all,cmtip]{xy}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{framed}
\usepackage{comment}
\usepackage{color}
\usepackage{hyperref}
\usepackage{ifthen}
\usepackage[sc]{mathpazo}
\usepackage[T1]{fontenc}
\usepackage{needspace}
\usepackage{enumitem}
\usepackage{tabls}
\usepackage{graphicx}%
\setcounter{MaxMatrixCols}{30}
%TCIDATA{OutputFilter=latex2.dll}
%TCIDATA{Version=5.50.0.2960}
%TCIDATA{LastRevised=Monday, October 05, 2026 21:31:36}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
%TCIDATA{<META NAME="SaveForMode" CONTENT="1">}
%TCIDATA{BibliographyScheme=Manual}
%BeginMSIPreambleData
\providecommand{\U}[1]{\protect\rule{.1in}{.1in}}
%EndMSIPreambleData
\newcounter{exer}
\theoremstyle{definition}
\newtheorem{theo}{Theorem}[section]
\newenvironment{theorem}[1][]
{\begin{theo}[#1]\begin{leftbar}}
{\end{leftbar}\end{theo}}
\newtheorem{lem}[theo]{Lemma}
\newenvironment{lemma}[1][]
{\begin{lem}[#1]\begin{leftbar}}
{\end{leftbar}\end{lem}}
\newtheorem{prop}[theo]{Proposition}
\newenvironment{proposition}[1][]
{\begin{prop}[#1]\begin{leftbar}}
{\end{leftbar}\end{prop}}
\newtheorem{defi}[theo]{Definition}
\newenvironment{definition}[1][]
{\begin{defi}[#1]\begin{leftbar}}
{\end{leftbar}\end{defi}}
\newtheorem{remk}[theo]{Remark}
\newenvironment{remark}[1][]
{\begin{remk}[#1]\begin{leftbar}}
{\end{leftbar}\end{remk}}
\newtheorem{coro}[theo]{Corollary}
\newenvironment{corollary}[1][]
{\begin{coro}[#1]\begin{leftbar}}
{\end{leftbar}\end{coro}}
\newtheorem{conv}[theo]{Convention}
\newenvironment{convention}[1][]
{\begin{conv}[#1]\begin{leftbar}}
{\end{leftbar}\end{conv}}
\newtheorem{quest}[theo]{Question}
\newenvironment{question}[1][]
{\begin{quest}[#1]\begin{leftbar}}
{\end{leftbar}\end{quest}}
\newtheorem{warn}[theo]{Warning}
\newenvironment{warning}[1][]
{\begin{warn}[#1]\begin{leftbar}}
{\end{leftbar}\end{warn}}
\newtheorem{conj}[theo]{Conjecture}
\newenvironment{conjecture}[1][]
{\begin{conj}[#1]\begin{leftbar}}
{\end{leftbar}\end{conj}}
\newtheorem{exam}[theo]{Example}
\newenvironment{example}[1][]
{\begin{exam}[#1]\begin{leftbar}}
{\end{leftbar}\end{exam}}
\newtheorem{exmp}[exer]{Exercise}
\newenvironment{exercise}[1][]
{\begin{exmp}[#1]\begin{leftbar}}
{\end{leftbar}\end{exmp}}
\newenvironment{statement}{\begin{quote}}{\end{quote}}
\newenvironment{fineprint}{\begin{small}}{\end{small}}
\iffalse
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\newenvironment{convention}[1][Convention]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\newenvironment{question}[1][Question]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\fi
\let\sumnonlimits\sum
\let\prodnonlimits\prod
\let\cupnonlimits\bigcup
\let\capnonlimits\bigcap
\renewcommand{\sum}{\sumnonlimits\limits}
\renewcommand{\prod}{\prodnonlimits\limits}
\renewcommand{\bigcup}{\cupnonlimits\limits}
\renewcommand{\bigcap}{\capnonlimits\limits}
\setlength\tablinesep{3pt}
\setlength\arraylinesep{3pt}
\setlength\extrarulesep{3pt}
\setlength\textheight{22.5cm}
\setlength\textwidth{14.8cm}
\newenvironment{verlong}{}{}
\newenvironment{vershort}{}{}
\newenvironment{noncompile}{}{}
\excludecomment{verlong}
\includecomment{vershort}
\excludecomment{noncompile}
\newcommand{\id}{\operatorname{id}}
\newcommand{\rev}{\operatorname{rev}}
\newcommand{\conncomp}{\operatorname{conncomp}}
\newcommand{\conn}{\operatorname{conn}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\powset}[2][]{\ifthenelse{\equal{#2}{}}{\mathcal{P}\left(#1\right)}{\mathcal{P}_{#1}\left(#2\right)}}
\newcommand{\set}[1]{\left\{ #1 \right\}}
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\tup}[1]{\left( #1 \right)}
\newcommand{\ive}[1]{\left[ #1 \right]}
\newcommand{\verts}[1]{\operatorname{V}\left( #1 \right)}
\newcommand{\edges}[1]{\operatorname{E}\left( #1 \right)}
\newcommand{\arcs}[1]{\operatorname{A}\left( #1 \right)}
\newcommand{\underbrack}[2]{\underbrace{#1}_{\substack{#2}}}
\newcommand{\are}{\ar@{-}}
\newcommand{\arebi}[1][]{\ar@{<-}@/_/[#1] \ar@/^/[#1]}
\ihead{Math 331, Fall 2026: homework set 2}
\ohead{page \thepage}
\cfoot{}
\begin{document}

\begin{center}
\textbf{Math 331, Fall 2026: homework set 2}

due date: Wednesday 14 October 2026 at 3:30 PM on Canvas.

Please solve \textbf{5} of the 10 exercises!
\end{center}

As discussed in \S 1.14, we write all semigroups (including monoids and
groups) multiplicatively unless we say otherwise.

\begin{exercise}
Let $S$ be a semigroup, written multiplicatively. Let $a$ and $b$ be two
elements of $S$ that commute.

\begin{enumerate}
[label=\textbf{(\alph*)},ref=\alph*,leftmargin=*,topsep=4pt,partopsep=0pt,itemsep=4pt,parsep=0pt]

\item Prove that $a^{i}b=ba^{i}$ for each positive integer $i$.

\item Prove that $a^{i}b^{j}=b^{j}a^{i}$ for all positive integers $i$ and $j$.

\item Prove that $\left(  ab\right)  ^{n}=a^{n}b^{n}$ for all positive
integers $n$.
\end{enumerate}
\end{exercise}

\begin{exercise}
Let $a$ be an invertible element of a monoid $M$. Prove that $o\left(
a^{-1}\right)  =o\left(  a\right)  $. (In particular, this means that
$o\left(  a\right)  $ and $o\left(  a^{-1}\right)  $ are either both finite or
both infinite.)
\end{exercise}

\begin{exercise}
Find a nonabelian monoid of size $3$.

[\textbf{Hint:} Start with a nonabelian semigroup of size $2$.]
\end{exercise}

\begin{exercise}
Let $S$ be a semigroup. Prove that we can obtain a monoid $S\cup\left\{
1\right\}  $ from $S$ by adjoining a new element -- let us call it $1$ -- and
setting $s\ast1:=s$ and $1\ast s:=s$ and $1\ast1:=1$ for all $s\in S$. (This
is called \textbf{adjoining a neutral element} to $S$. Note that if $S$
already had a neutral element $1_{\operatorname*{old}}$, then the new $1$ will
dethrone $1_{\operatorname*{old}}$, since $1\ast1_{\operatorname*{old}}$ is no
longer $1$.)
\end{exercise}

\begin{exercise}
Let $S$ be a monoid. Let $a\in S$ have an inverse. Prove that%
\[
\left(  a^{n}\right)  ^{m}=a^{nm}\ \ \ \ \ \ \ \ \ \ \text{for all integers
}n\text{ and }m.
\]


[\textbf{Hint:} Make sure your argument allows any or both of $n$ and $m$ to
be negative.]
\end{exercise}

\begin{exercise}
Let $G$ be a group. Prove that $G$ is abelian if and only if all $a,b\in G$
satisfy $\left(  ab\right)  ^{-1}=a^{-1}b^{-1}$.
\end{exercise}

\begin{exercise}
Let $S$ be a monoid, written multiplicatively. Let $a$ and $b$ be two elements
of $S$ that commute and have inverses.

\begin{enumerate}
[label=\textbf{(\alph*)},ref=\alph*,leftmargin=*,topsep=4pt,partopsep=0pt,itemsep=4pt,parsep=0pt]

\item Prove that $a^{i}b=ba^{i}$ for each integer $i$.

\item Prove that $a^{i}b^{j}=b^{j}a^{i}$ for all integers $i$ and $j$.

\item Prove that $\left(  ab\right)  ^{n}=a^{n}b^{n}$ for all integers $n$.
\end{enumerate}

[\textbf{Hint:} You are allowed to use all preceding exercises even if you
didn't solve them.]
\end{exercise}

\begin{exercise}
Let $G$ be a group. Let $u,v\in G$. Prove that $o\left(  uv\right)  =o\left(
vu\right)  $.
\end{exercise}

\begin{exercise}
Let $f:\mathbb{N}\rightarrow\mathbb{N}$ be the map that sends each
$n\in\mathbb{N}$ to $n+1$. (Recall that $\mathbb{N}=\left\{  0,1,2,\ldots
\right\}  $.)

Let $g:\mathbb{N}\rightarrow\mathbb{N}$ be the map that sends each
$n\in\mathbb{N}$ to $\max\left\{  n-1,0\right\}  $ (that is, it sends
$0,1,2,3,4,\ldots$ to $0,0,1,2,3,\ldots$, respectively).

Prove that $g\circ f=\operatorname*{id}$ but $f\circ g\neq\operatorname*{id}$.
Conclude that the preceding exercise does not generalize to monoids. (What is
the monoid here?)
\end{exercise}

\begin{exercise}
Consider the two permutations $u=t_{1,2}t_{3,4}t_{5,6}$ and $v=t_{2,3}t_{4,5}$
in the symmetric group $S_{6}=S_{\left\{  1,2,3,4,5,6\right\}  }$. Here,
$t_{i,j}$ denotes the transposition that swaps two given elements $i$ and $j$.

\begin{enumerate}
[label=\textbf{(\alph*)},ref=\alph*,leftmargin=*,topsep=4pt,partopsep=0pt,itemsep=4pt,parsep=0pt]

\item Compute $uv$.

\item Compute $o\left(  u\right)  $ and $o\left(  v\right)  $ and $o\left(
uv\right)  $.
\end{enumerate}
\end{exercise}


\end{document}