Hilbert Number | CPP program to find nth hilbert Number ; Utility function to return Nth Hilbert Number ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; long nthHilbertNumber ( int n ) { return 4 * ( n - 1 ) + 1 ; } int main ( ) { int n = 5 ; cout << nthHilbertNumber ( n ) ; return 0 ; }