Program to find Nth term of series 0 , 11 , 28 , 51 , 79 , 115 , 156 , 203 , ... . | calculate Nth term of series ; Driver code
function nthTerm ( n ) { return 3 * Math . pow ( n , 2 ) + 2 * n - 5 ; } let N = 4 ; document . write ( nthTerm ( N ) ) ;