\documentclass[12pt]{article}
\usepackage{amsmath, amssymb, amsthm}
\DeclareMathOperator{\lcm}{lcm}

\usepackage[hidelinks]{hyperref}

\newenvironment{solution}{%
    \vspace{1em} % Add one line of vertical space
    \noindent\textit{Solution :}%
}{\par}

\title{MA 407 Homework}
\author{Vasudev Menon}
\date{}

\begin{document}

\maketitle

\tableofcontents % Generates a table of contents
\newpage

\section*{Homework 1}
\addcontentsline{toc}{section}{Homework 1}
\input{homework1.tex}
\newpage

\section*{Homework 2}
\addcontentsline{toc}{section}{Homework 2}
\input{homework2.tex}
\newpage

\section*{Homework 3}
\addcontentsline{toc}{section}{Homework 3}
\input{homework3.tex}
\newpage

\section*{Homework 4}
\addcontentsline{toc}{section}{Homework 4}
\input{homework4.tex}
\newpage

\section*{Homework 5}
\addcontentsline{toc}{section}{Homework 5}
\input{homework5.tex}
\newpage

\section*{Homework 6}
\addcontentsline{toc}{section}{Homework 6}
\input{homework6.tex}
\newpage

\section*{Homework 7}
\addcontentsline{toc}{section}{Homework 7}
\input{homework7.tex}
\newpage

\section*{Homework 8}
\addcontentsline{toc}{section}{Homework 8}
\input{homework8.tex}
\newpage

\section*{Homework 9}
\addcontentsline{toc}{section}{Homework 9}
\input{homework9.tex}
\newpage

\section*{Homework 10}
\addcontentsline{toc}{section}{Homework 10}
\input{homework10.tex}
\newpage

\end{document}
