Program to find the Nth term of the series 0 , 5 , 14 , 27 , 44 , ... ... . . | Calculate Nth term of series ; Driver code
function nthTerm ( n ) { return 2 * Math . pow ( n , 2 ) - n - 1 ; } let N = 4 ; document . write ( nthTerm ( N ) ) ;