1

Not sure whether factoral is even the right word to use in this context but I'm looking for how you write 'the sum of all the squares' eg

3 = 14 (3^2 + 2^2 + 1^2)

4 = 30 (4^2 + 3^2 + 2^2 + 1^2)

PerryW
  • 123
  • Factorial means a product of consecutive integers, while you are asking about a summation of (consecutive) integers squared. My advice is to learn to use summation notation (capital sigma or \sum in TeX/MathJax). – hardmath Jun 04 '14 at 03:05
  • Thanks everyone - I got there. I admit I was hoping for something as simple as a variation on n! but at least it's made me learn the basics (thank-you wikipedia) of capital sigma – PerryW Jun 04 '14 at 04:47

2 Answers2

3

The sum of squares actually has a closed form: $$ 1^2 + 2^2 + \cdots + n^2 = \sum_{i=1}^n i^2 = \frac{n(n+1/2)(n+1)}{3}. $$ Because the sum is closed, there is no designated notation for it. Something like the factorial function, on the other hand, does have a designated notation because it does not have any simple closed form. The factorial function also comes up more often than the sum of squares does.

user134824
  • 12,212
2

Yes, these are called pyramidal numbers, or sometimes "square pyramidal" numbers. You can think of the "squares" stacked on top of each other, getting smaller and smaller to the apex like an ancient Egyptian monument.

ex0du5
  • 1,366
  • 8
  • 14