Find the Nth Hogben Numbers | C # program to print N - th Hogben Number ; Function returns N - th Hogben Number ; Driver code
using System ; class GFG { public static int HogbenNumber ( int a ) { int p = ( int ) ( Math . Pow ( a , 2 ) - a + 1 ) ; return p ; } public static void Main ( ) { int N = 10 ; Console . Write ( HogbenNumber ( N ) ) ; } }