Company: ge vernova_27sep
Difficulty: medium
Calculate Nth Term in a Given Series Problem Description Consider the following series, which has a relation between X^n number and (X+1)^n number where X is a positive integer. The series starts with the terms: 90, 240, 450, 720, ... If N indicates a position in the series, write a program that accepts N values as input and prints the Nth position value in the series as an output. Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings anywhere in the program, as these contribute to the standard output, and test cases will fail. The series can be described by the formula `30n^2 + 60n`, where `n` is the 1-based position in the series. Input Format The input will contain one integer N. Output Format The output should consist of the Nth value in the sequence. Constraints `1 Position starts from 1 Examples Example 1: Input: 5 Output: 1050 Explanation: Given N = 5, the 5th position value in the given series is 1050, which is calculated as `30*(5^2) + 60*5 =