\documentclass[12pt,twoside]{article}

\def\handouttype{problemset}

\usepackage{psfig}

\input{macros-course}

\def\cent{{\not\!\mathrm{c}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\typein[\answer]{Include solutions? (y/n) }
\def\yes{y}
\ifx\answer\yes
  \typeout{}
  \typeout{Solutions *INCLUDED*.} 
  \newcommand{\reading}[1]{}
  \newcommand{\omitsolution}[1]{#1}
  \usepackage[dark,first,bottom]{draftcopy}
  \draftcopyName{Solutions}{155}
\else 
  \typeout{}
  \typeout{Solutions *NOT INCLUDED*.} 
  \newcommand{\reading}[1]{#1\vfill\mbox{}\newpage}
  \newcommand{\omitsolution}[1]{\vspace*{0.5in}}
\fi
\typeout{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\tutref}{tut5}
\newcommand{\tutnum}{5}
\newcommand{\tutdate}{March 3, 2000}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\handout{\tutref}{Mini-Quiz \tutnum}{\tutdate}

\begin{enumerate}
\item Write your name:

\bigskip

\item Let $R$ be the relation on the set $\set{1, 2, 3, 4, 5}$
  containing the ordered pairs $(1,3)$, $(2,4)$, $(3,1)$, $(3,5)$,
  $(4,3)$, $(5,1)$, $(5,2)$, and $(5,4)$.

  Find the following:

  \begin{enumerate}
%  \item $R^2$
%    \vspace*{\baselineskip}
%  \item $R^3$
%    \vspace*{\baselineskip}
  \item $R^4$
\omitsolution{%
  \begin{solution}

    \begin{equation*}
      \left[%
      \begin{array}{ccccc}
        1 & 0 & 1 & 1 & 1 \\
        1 & 1 & 1 & 1 & 0 \\
        1 & 1 & 1 & 1 & 1 \\
        1 & 0 & 1 & 1 & 1 \\
        1 & 1 & 1 & 1 & 1 \\
      \end{array}
      \right]
    \end{equation*}
    
  \end{solution}
  }

%  \item $R^5$
%    \vspace*{\baselineskip}
%  \item $R^6$
%    \vspace*{\baselineskip}
%  \item $R^*$
%    \vspace*{\baselineskip}
%  \item $(I \Or R)^2$
%    \vspace*{\baselineskip}
  \item $(I \Or R)^4$
\omitsolution{%
  \begin{solution}
    
    \begin{equation*}
      \left[%
      \begin{array}{ccccc}
        1 & 1 & 1 & 1 & 1 \\
        1 & 1 & 1 & 1 & 1 \\
        1 & 1 & 1 & 1 & 1 \\
        1 & 1 & 1 & 1 & 1 \\
        1 & 1 & 1 & 1 & 1 \\
      \end{array}
      \right]
    \end{equation*}
    
  \end{solution}
  }

%  \item $(I \Or R)^*$
%    \vspace*{\baselineskip}
  \end{enumerate}

\end{enumerate}

\end{document}

\endinput


\end{document}

\endinput
