Company: ge vernova_27sep
Difficulty: medium
Calculate Nth Term in a Given Series Problem Description Consider the following series, in which each term is related to the term before it. In other words, there is a fixed relation between the X -th term and the (X+1) -th term, where X is a positive integer: 90, 240, 450, 720, ... If N indicates a position in the series, write a program that accepts N as input and prints the value at the N -th position of the series. Positions start from 1: the value at position 1 is 90 , at position 2 it is 240 , and so on. (inferred -- the source shows only the first four terms and two examples. The series is taken to continue by the single rule that produces all four printed terms; that rule also reproduces both examples, positions 5 and 7, exactly.) Function Description Complete the function PrintResults in the editor. It has the following parameter: int N : a 1-based position in the series It returns a 64-bit integer ( long long in C++, long in Java): the value at position N of the series. (infe