Square Pyramidal Number Formula


Equation for calculate square pyramidal number is,

Square Pyramidal Number (Pn) = ( n × (n+1) × (2n+1) ) / 6

Where, n - Non-Negative Number