Generating the first ' n ' terms of Moser - de Bruijn Sequence
public static void moserDeBruijn ( int n ) { for ( int i = 0 ; i < n ; i ++ ) Console . Write ( gen ( i ) + " ▁ " ) ; Console . WriteLine ( ) ; }