I have been generating a lot of data for a project and I wrote in TeX commands (via print statements) so that I get rows upon rows of data entries that look like
a_{1} & a_{2} & a_{3} \\
This allows me to readily copy and paste over the data into an array environment, but when I typeset the data text runs to the bottom of the page and cuts part of it off, thereby not displaying all of it. I using the array environment and my TeX codes looks something like
\[
\begin{array}{c c c}
a_{1} & a_{2} & a_{3} \\
a_{6} & a_{7} & a_{8} \\
(many more such entries)
\end{array}
\]

longtableinstead equation environment witharray. Columns in this table of it can be set in math mode with>{$} c <{$}.