Find Nth term of the series 0 , 2 , 4 , 8 , 12 , 18. . . | Calculate Nth term of series ; Driver Function
function nthTerm ( N ) { return parseInt ( ( N + N * ( N - 1 ) ) / 2 ) ; } let N = 5 ; document . write ( nthTerm ( N ) ) ;