\documentclass[letterpaper,12pt]{article}
\usepackage{fullpage}
\usepackage{amssymb}
\usepackage{hyperref}

% TODO: FILL IN NAME and ID HERE
\def\name{YOUR NAME HERE}
\def\id{YOUR ID HERE}
% END PART TO FILL IN

\newtheorem{theorem}{Theorem}
\newenvironment{proof}{\emph{Proof:}}{\hfill $\Box$}

\begin{document}

\newlength{\boxwidth}
\setlength{\boxwidth}{\textwidth}
\addtolength{\boxwidth}{-2cm}
\noindent\framebox[\textwidth]{\hfil
\parbox[t]{\boxwidth}{%
{\bfseries CSE\,105: Automata and Computability Theory \hfill Fall 2015}
\begin{center}\huge Homework \#1 Solutions\end{center}
\name\hfill\id%
}\hfil}
\vspace{0.7cm}

\noindent\textbf{Solution to Problem 2}

\begin{theorem}
  For any positive integer $n$,
  \[ \sum_{k=1}^n k\cdot 2^{k-1} = 1 + (n-1) \cdot 2^n. \]
\end{theorem}
\begin{proof}

% PROBLEM 2 SOLUTION GOES HERE

\end{proof}


\end{document}
