Calculate the formula

Time Limit: 1000ms
Memory Limit: 32768KB
This problem will be judged on HDU. Original ID: 2139
64-bit integer IO format: %I64d      Java class name: Main

Description

You just need to calculate the sum of the formula: 1^2+3^2+5^2+……+ n ^2.

Input

In each case, there is an odd positive integer n.

Output

Print the sum. Make sure the sum will not exceed 2^31-1

Sample Input

3

Sample Output

10

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .