I have created a table of the first 20 values of the number-theoretic functions and σ. What I'd like to know is whether I have done this "correctly." In other words, is the table below the best way to display the first few values of these two functions?
\documentclass[]{article}
\usepackage{booktabs}
\begin{document}
\begin{table}[ht]
\belowcaptionskip1ex
\caption{The functions $\tau$ and $\sigma$}
\centering
\begin{tabular}{c r r r r r r r r r r r r r r r r r r r r}
\hline
\toprule
{$n$} & {$1$} & {$2$} & {$3$} & {$4$} & {$5$} & {$6$} & {$7$} & {$8$} & {$9$} & {$10$}
& {$11$} & {$12$} & {$13$} & {$14$} & {$15$} & {$16$} & {$17$} & {$18$} & {$19$} & {$20$} \\
\midrule
$\tau(n)$ & $1$ & $2$ & $2$ & $3$ & $2$ & $4$ & $2$ & $4$ & $3$ & $4$ & $2$
& $6$ & $2$ & $4$ & $4$ & $5$ & $2$ & $6$ & $2$ & $6$ \\
$\sigma(n)$ & $1$ & $3$ & $4$ & $7$ & $6$ & $12$ & $8$ & $15$ & $13$ & $18$
& $12$ & $28$ & $14$ & $24$ & $24$ & $31$ & $18$ & $39$ & $20$ & $42$ \\
\bottomrule
\end{tabular}
\label{Table:tauandsigma}
\end{table}
\end{document}

{}necesarry that you have for the first row,. – Willoughby Mar 02 '21 at 16:08