Skip to main content
MBA Compass Logo
MBA Compassby B School Buzz
arithmetic

Sum of first n squares

intermediate
High weightage
CAT
XAT
NMAT
SNAP
CMAT
IIFT
MAT
S_{squares} = \frac{n \cdot (n+1) \cdot (2n+1)}{6}
Let n be a positive integer (count). The sum of squares 1^{2}+2^{2}+equals Each symbol: k is the running integer (unit: count), n is the upper limit (count). Intuitively the formula counts discrete square areas stacked to make three-dimensional figurate numbers; algebraically it is a polynomial of degree 3 in n, derived by induction or by telescoping identities involving cubic differences. Geometrically it relates to square pyramidal numbers — the number of unit cubes in a square pyramid of base n. Domain restrictions: n must be a nonnegative integer; for real n polynomial extension exists but combinatorial meaning is lost. Edge cases: n=0 gives 0, small n easy to verify.

Related formulas