Program to find the Nth term of the series 0 , 5 , 18 , 39 , 67 , 105 , 150 , 203 , ... | calculate Nth term of series ; driver code declaration of number of terms
function nthTerm ( n ) { return 4 * Math . pow ( n , 2 ) - 7 * n + 3 ; } let N = 4 ; document . write ( nthTerm ( N ) ) ;