Program to print the Sum of series | calculate Nth term of series ; Get the value of N ; Get the sum of the series
< ? php function findSum ( $ N ) { return ( $ N * ( $ N + 1 ) * ( 2 * $ N - 5 ) + 4 * $ N ) / 2 ; } $ N = 3 ; echo findSum ( $ N ) . " STRNEWLINE " ; ? >