\documentclass[11pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[headsepline]{scrpage2}
\usepackage[paper=A4,pagesize,DIV=11]{typearea}
\usepackage{lastpage}
\usepackage{ifthen}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{mathtools}
\mathtoolsset{centercolon=true,mathic=true}
\usepackage{microtype}
\usepackage[pdftex]{hyperref}

%% Add additional packages as required (try to keep this short)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% CHANGE THIS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\sheetnumber}{1}
\renewcommand{\author}[1]{\def\@author{#1}}
\author{} % Put your name here if you want it published
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Leave this as it is
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Shortcuts:
\newcommand{\NN}{\ensuremath{\mathbb{N}}}
\newcommand{\ZZ}{\ensuremath{\mathbb{Z}}}
\newcommand{\QQ}{\ensuremath{\mathbb{Q}}}
\newcommand{\QQb}{\ensuremath{\overline{\QQ}}}
\newcommand{\RR}{\ensuremath{\mathbb{R}}}
\newcommand{\CC}{\ensuremath{\mathbb{C}}}
\newcommand{\CCb}{\ensuremath{\overline\CC}}

\makeatletter\let\Re\@undefined\makeatother
\makeatletter\let\Im\@undefined\makeatother
\DeclareMathOperator{\Re}{Re}           %% real part
\DeclareMathOperator{\Im}{Im}           %% imaginary part
\DeclareMathOperator{\ii}{i}            %% imaginary unit

\DeclareMathOperator{\lcm}{lcm}         %% least common multiple (\gcd is predefined)
\DeclareMathOperator{\LCF}{LCF}         %% leading coefficient

\DeclareMathOperator{\quo}{quo}         %% quotient
\DeclareMathOperator{\rem}{rem}         %% remainder

\DeclareMathOperator{\Res}{Res}         %% resultant
\newcommand{\Resx}{\ensuremath{\Res^{(x)}}}
\newcommand{\Resy}{\ensuremath{\Res^{(y)}}}
\DeclareMathOperator{\Sres}{Sres}       %% subresultant
\newcommand{\Sresx}{\ensuremath{\Sres^{(x)}}}
\newcommand{\Sresy}{\ensuremath{\Sres^{(y)}}}

\DeclareMathOperator{\C}{\mathcal{C}}   %% curve
\DeclareMathOperator{\V}{\mathcal{V}}   %% vanishing set
\newcommand{\Vx}{\ensuremath{\V^{(x)}}}
\newcommand{\Vy}{\ensuremath{\V^{(y)}}}
\newcommand{\VC}{\ensuremath{\V_\CC}}
\newcommand{\VCx}{\ensuremath{\V_\CC^{(x)}}}
\newcommand{\VCy}{\ensuremath{\V_\CC^{(y)}}}
\newcommand{\VR}{\ensuremath{\V_\RR}}
\newcommand{\VRx}{\ensuremath{\V_\RR^{(x)}}}
\newcommand{\VRy}{\ensuremath{\V_\RR^{(y)}}}

\makeatletter\let\O\@undefined\makeatother
\DeclareMathOperator{\O}{\mathcal{O}}   %% Landau notation
\DeclareMathOperator{\Ot}{\O\tilde{~}}  %% Landau-tilde notation

\DeclareMathOperator{\Sh}{Sh}
\makeatletter\let\Box\@undefined\makeatother
\DeclareMathOperator{\Box}{{\setlength{\unitlength}{1ex}\framebox(0.8,1.5){}}} %% box function
\DeclareMathOperator*{\dsum}{\ensuremath{\sum\nolimits^\prime}} %% distinct sum

\newcommand{\cvec}[2]{\ensuremath{\binom{#1}{#2}}}
\newcommand{\tcvec}[2]{\ensuremath{\tbinom{#1}{#2}}}

\let\tmpphi\varphi
\let\varphi\phi
\let\phi\tmpphi

%% \usepackage{pgf}
%% \providecommand{\mpilogo}{\pgfimage[height=2\baselineskip]{../../../presentation-logo}}

\providecommand{\mpilogo}{\begingroup%
  \setlength{\fboxrule}{0.5pt}%
  \setlength{\fboxsep}{-0.5pt}%
  \framebox{%
    \rule{0pt}{2\baselineskip}%
    \raisebox{0.7\height}{%
      \parbox{12.172835556\baselineskip}{%
        \centering
        MPI LOGO\\(not your business)}}}%
  \endgroup%
}

\newcommand{\disclaimer}{
  \vfill
  \begin{minipage}{\textwidth}\bfseries\small
    \rule{\textwidth}{1pt}\\
    Sample solutions are checked for correctness, but come without warranty.\\
    If you discover any errors, please contact us.\\
    Sample solutions are not intended to be a replacement for attending the tutorials!
  \end{minipage}
}

\renewcommand{\maketitle}{
  \phantomsection
  \addcontentsline{toc}{section}{Computer Algebra 2011: Sample solutions to assignment sheet \sheetnumber}
  \section*{Computer Algebra\\
    Sample solutions to assignment sheet \sheetnumber}
  \ifthenelse{\equal{\@author}{}}{}{\textbf{by \@author}}
  \vspace{1em}
}

\setlength{\headheight}{3.5\baselineskip}
\pagestyle{scrheadings}
\renewcommand{\headfont}{\bfseries}
\ihead{Computer Algebra (summer term 2011)\\
  Sample solutions to assignment sheet \sheetnumber}
\ohead{\mpilogo}
\cfoot[\thepage\ of \pageref{LastPage}]{\thepage\ of \pageref{LastPage}}

\hypersetup{
  pdftitle={Computer Algebra 2011: Sample solutions to assignment sheet \sheetnumber},
  pdfauthor={},
  bookmarksopen=true,
  bookmarksnumbered=true
}
\ifthenelse{\equal{\@author}{}}{}{%
  \hypersetup{pdfauthor={\@author}}}

\setcounter{section}{\sheetnumber}
\setlength{\parindent}{0em}

\begin{document}
\maketitle

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PLUG IN YOUR SOLUTIONS BELOW
%%
%% The sample solutions are not intended to be a replacement for
%% attending the tutorials. You are supposed to provide
%% solutions, not an in-depth educational book chapter.
%%
%% By the way, note that participating in the tutorials is
%% mandatory.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\subsection{Title of the first exercise}

Your solution.

\subsection{Title of the second exercise}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\subsection{(...)}

\disclaimer

\end{document}
