The total number of blocks within pyramids on Minecraft doesn't quite correspond with Square pyramidal numbers (on Wikipedia). Because of the blocky nature of the environment, the "even rows" of the pyramid are missed out. So, a simple 3-block-high pyramid has $1 + 9 + 25 = 35$ blocks.
Hence the sum for a pyramid of height $n$ is given by $$\sum_{k=1}^n(2k - 1)^2$$
What's the corresponding shortcut formula for this series, involving $n^3$ ?
http://www.wolframalpha.com/input/?i=sum+1+to+k+of+%282k%E2%88%921%29%5E2
Wolfram doesn't show the substitutions it used, though; I'd expect you can get Mathematica to show them.
– David B Oct 09 '15 at 13:10