Program to print the Sum of series | calculate Nth term of series ; Get the value of N ; Get the sum of the series
function findSum ( N ) { return ( N * ( N + 1 ) * ( 2 * N - 5 ) + 4 * N ) / 2 ; } var N = 3 ; document . write ( findSum ( N ) ) ;