Second | Java implementation to find N - th term in the series ; Function to find N - th term in the series ; Driver code
class GFG { static void findNthTerm ( int n ) { System . out . println ( Math . pow ( 2 , n ) - 2 * n ) ; } public static void main ( String [ ] args ) { int N = 4 ; findNthTerm ( N ) ; } }