%% Standard start of a latex document
\documentclass[letterpaper,12pt]{article}
%% Always use 12pt - it is much easier to read

%% Set some names and numbers here so we can use them below
\newcommand{\myname}{Ashok Kumar} %%%%%%%%%%%%%%% ---------> Change this to your name
\newcommand{\mynumber}{0.5772156649} %%%%%%%%%%%%%%% ---------> Change this to your student number
\newcommand{\hw}{2} %%%%%%%%%%%%%%% --------->  set this to the homework number

%%%%%%
%% There is a bit of stuff below which you should not have to change 
%%%%%%

%% AMS mathematics packages - they contain many useful fonts and symbols.
\usepackage{amsmath, amsfonts, amssymb}

%% The geometry package changes the margins to use more of the page, I suggest 
%% using it because standard latex margins are chosen for articles and letters, 
%% not homework.
\usepackage[paper=letterpaper,left=25mm,right=25mm,top=3cm,bottom=25mm]{geometry}
%% For details of how this package work, google the ``latex geometry documentation''.

%%
%% Fancy headers and footers - make the document look nice
\usepackage{fancyhdr} %% for details on how this work, google ``fancyhdr documentation''
\pagestyle{fancy}
%% 
%% The header
\lhead{Mathematics 220} % course name as top-left
\chead{Homework \hw} % homework number in top-centre
\rhead{ \myname \\ \mynumber }
%% This is a little more complicated because we have used `` \\ '' to force a line-break between the name and number.
%%
%% The footer
\lfoot{\myname} % name on bottom-left
\cfoot{Page \thepage} % page in middle
\rfoot{\mynumber} % student number on bottom-right
%%
%% These put horizontal lines between the main text and header and footer.
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
%%%

%%%%%%
%% We shouldnt have to change the stuff above, but if you want to add some newcommands and things like that, then putting them between here and the ``\begin{document}'' is a good idea.
%%%%%%
%%%%%%

%% These are some useful macros that I use for this material.
\renewcommand{\neg}{ {\sim} }
\newcommand{\limp}{ {\;\Rightarrow\;} }
\newcommand{\liff}{ {\;\Leftrightarrow\;} }
\newcommand{\st}{ {\mbox{ s.t. }} }
\newcommand{\es}{ {\varnothing}}
\newcommand{\pow}[1]{ \mathcal{P}\left(#1\right) }
\newcommand{\set}[1]{ \left\{ #1 \right\} }
\newcommand{\ds}{\displaystyle}

%% I also use the enumerate package because it makes the enumerate environment 
%% a bit nicer
\usepackage{enumerate}

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

\begin{document}
Here is a template for your solutions to homework 2. You do not have to use 
exactly this format. You should also check I put in all the questions and 
parts. I think I did.

\begin{itemize} 
\item[1.40]
\begin{enumerate}[(a)] %% Look up the latex enumerate package for the syntax
 \item 
 \item
 \item
\end{enumerate}

\item[1.42]
\begin{enumerate}[(a)]
 \item 
 \item
\end{enumerate}

\item[1.46]
\begin{enumerate}[(a)]
 \item 
 \item
 \item
 \item
 \item
\end{enumerate}

\item[1.54]

\item[1.60]

\item[2.6]
\begin{enumerate}[(a)]
 \item 
 \item
 \item
\end{enumerate}

\item[2.16]
\begin{enumerate}[(a)]
 \item 
 \item
 \item
 \item
 \item
\end{enumerate}



\item[2.20] % this is going to require a table --- see the tabular environment
The required truth table is
\begin{center}
\begin{tabular}{|c|c||c|c|}
\hline
$P$ & $Q$ & blah $\limp$ etc & another column? \\
\hline
blah & blah & blah & blah \\
\hline
blablabla & etc & etc &I'm bored now \\
\hline
\end{tabular}
\end{center}

\item[2.29]
\begin{enumerate}[(a)]
 \item 
 \item
 \item
 \item
 \item
\end{enumerate}

\item[2.32]
\begin{enumerate}[(a)]
 \item 
 \item
 \item
 \item
\end{enumerate}

\item[2.44]
\begin{enumerate}[(i)]
 \item 
 \item
 \item
 \item
\end{enumerate}



\end{itemize}


\end{document}
