P19861 [GeeksforGeeks] Power of pow odd numbers1103
普及-
题目描述

Given a single integer N, your task is to find the sum of the square of the first N odd natural Numbers.

Example 1:
Input: 2
Output: 10
Explanation: 1^{2 + }3^{2}^{ }= 10
Example 2:
Input: 3
Output: 35
Explanation: 1^{2} + 3^{2} + 5^{2} = 35

Your Task:
You don't need to read or print anything. Your task is to complete the function sum_of_square_oddNumbers() which takes N as the input parameter and returns the sum of the first N odd natural numbers.

Expected Time Complexity: O(1)
Expected Space Complexity: O(1)

Constraints:
1 <= N <= 10000

输入格式

见题面

输出格式

见题面

样例输入
2
样例输出
10