\documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amssymb, mathtools} \title{Gauss ha 8 anni, solzuione} \author{Jacopo Basso Ricci} \date{\today} \begin{document} \maketitle Scriviamo la somma $S$ in modo intelligente: \vspace{10px} \begin{tabular}{c c c c c c c c c} &$S = $&$ 1 +$&$ 2 + $&$ 3 +$&$ \dots +$&$ 98 + $&$ 99 + $&$ 100$\\ $+$&$S = $&$ 100 + $&$ 99 + $&$ 98 + $&$ \dots +$&$ 3 + $&$ 2 + $&$ 1$\\[0.5ex] \hline &$2S =$&$101 + $&$101 + $&$101 + $&$ \dots + $&$101 + $&$101 + $&$101$ \end{tabular} \vspace{5mm} Notiamo quindi che \[ 2S = 101 * 100\] \[ S = \frac{101 * 100}{2} = 101 * 50 = 5050 \] Soluzione \boxed{ S = 5050} \end{document}