Program to find the Nth term of the series 3 , 7 , 13 , 21 , 31. ... . | C # code to find the Nth term of given series . ; Function to calculate sum ; Return Nth term ; Driver Code ; declaration of number of terms ; Get the Nth term
using System ; class GFG { static long getNthTerm ( long N ) { return ( ( int ) Math . Pow ( N , 2 ) + N + 1 ) ; } static public void Main ( ) { long N = 11 ; Console . Write ( getNthTerm ( N ) ) ; } }