I can make the following table:
\documentclass{article}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{amsmath}
\begin{document}
\begin{center}
\begin{tabular}{|c||c|c||c|c||c|c||c|c||c|c||c|c|}
\hline
Caixa & $a_{i}$&$n_{i}$ & $a_{i}$&$n_{i}$ & $a_{i}$&$n_{i}$ & $a_{i}$&$n_{i}$ & $a_{i}$&$n_{i}$ & $a_{i}$&$n_{i}$ \\
\hline
10&10&1&10&1&10&1&10&1&10&0&0&1\\
\hline
9&8&1&8&1&8&1&8&1&8&1&9&1\\
\hline
8&6&1&6&1&6&1&6&1&6&1&7&1\\
\hline
7&4&1&4&1&4&1&4&1&4&1&5&1\\
\hline
6&2&1&2&1&2&1&2&1&2&1&3&1\\
\hline
5&0&1&5&2&5&2&5&2&5&2&1&1\\
\hline
4&2&2&1&2&1&2&1&2&1&2&3&2\\
\hline
3&1&3&0&3&0&3&3&3&3&4&2&3\\
\hline
2&1&6&0&6&2&7&1&7&1&7&2&0\\
\hline
1&1&17&1&19&1&2&1&2&1&21&1&17\\
\hline
\textbf{TOTAL}&35&&37&&39&&39&&41&&33&\\
\hline
\end{tabular}
\end{center}
\end{document}
But I would like to paint the columns as shown in the figure.



{}on the gui. – Dec 02 '16 at 00:45