Did you know that the number of cannonballs in a square pyramid with n {\displaystyle n} cannonballs along each edge is n ( n + 1 ) ( 2 n + 1 ) 6 {\displaystyle {\frac {n(n+1)(2n+1)}{6}}} ? SOMEFACTS.com