Problems > Stacking Pentagons > Editorial

Stacking Pentagons — Solution & Editorial

Back to the Problem

The closed form K²(K+1)/2 follows from summing k(3k−1)/2 with the square and triangular formulas.

Complexity: O(1)