Function to check if N is a super - d number
static bool isSuperdNum ( int n ) { for ( int d = 2 ; d < 10 ; d ++ ) { String subString = newString ( d ) ; if ( String . Join ( " " , ( d * Math . Pow ( n , d ) ) ) . Contains ( subString ) ) return true ; } return false ; }