# Square Pyramidal Calculation

Calculates the square pyramidal number for entered non-negative real number (n) using following formula :
Square pyramidal number (Pn) = (n(n + 1)(2n + 1))/6
The first few square pyramidal number are 1, 5, 14, 30, 55, 91, 140, 204 ...

 Non-Negative Number (n) = Square Pyramidal Number (Pn) =