%%% Template for Math 4580 homework, after Eric J. Malm's hmcpset class
%
%%% PREAMBLE -----------------------------------------------------------
% Do make any changes before \begin{document}, except to add macros
%
\documentclass[12pt]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{boxedminipage}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{mathpazo}
\usepackage{fancyhdr}

\setlength{\headheight}{15pt}
\setlength{\parindent}{0pt}

% include this to have lists enumerated by letters
\renewcommand{\labelenumi}{(\alph{enumi})}
\renewcommand{\labelenumii}{\roman{enumii}.}
\renewcommand{\labelenumiii}{\Alph{enumiii}.}



\newcommand{\collaborators}[1]{\begin{center}\large\sffamily{I collaborated with #1}\end{center}}

\newenvironment{problem}[1][]{%
  \bigskip% put space before problem statement box %
  \noindent\begin{boxedminipage}{\columnwidth}%
  \def\@tempa{#1}%
  \ifx\@tempa\empty\else%
    \textbf{#1}\hspace{0.5em}%
  \fi%
}{%
  \end{boxedminipage}%
}



\pagestyle{fancyplain}
\lhead{\textbf{\NAME}}
\chead{\textbf{\COURSE: HW\ \HWNUM}}
\rhead{\textbf{\DUEDATE}}
\cfoot{}


%%% MACROS -----------------------------------------------------------
% You may add more macros to this list
%
\newcommand{\NN}{\mathbb{N}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\CC}{\mathbb{C}}

\newcommand{\GL}{\operatorname{GL}}
\newcommand{\Aut}{\operatorname{Aut}}
\newcommand{\id}{\operatorname{id}}




















\begin{document}
%%% NAME AND ASSIGNMENT NUMBER -----------------------------------------------------------
% Edit the values below to identify yourself and the assignment
%

\newcommand\NAME{Name:}  % your name
\newcommand\HWNUM{9}  % the homework number
\newcommand\DUEDATE{9/29/2023}  % the due date
\newcommand\COURSE{Math 4580}  % the course number

%%% COLLABORATORS -----------------------------------------------------------------------------------
% If you worked with other students on this assignment, acknowledge them here
% If you did not collaborate with anyone, comment out this line
%

%\collaborators{Ferdinand Georg Frobenius and Emmy Noether}


%%% PROBLEMS AND SOLUTIONS -------------------------------------------------------------------
% Include all problems statements
% For solutions, use the \begin{proof} environment
% Note that \begin{proof}[Solution] will replace the label "Proof" with "Solution", etc.
%

\begin{problem}[1]
List all subgroups of $\ZZ_{45}$, giving a generator for each. Draw the subgroup lattice.
\end{problem}

%\begin{proof}
%
%\end{proof}


\newpage


\begin{problem}[2 (Judson 4.24 -- modified)]
Let $p$ and $q$ be distinct prime numbers.
\begin{enumerate}
\item How many generators does $\ZZ_{pq}$ have?
\item How many generators does $\ZZ_{p^2}$ have?
\end{enumerate}
\end{problem}

%\begin{proof}
%
%\end{proof}



\end{document}