If GCD of the sequence is K
if ( GCDArr ( ans ) == k ) { cout << " [ " ; int m = ans . size ( ) ; for ( int i = 0 ; i < m - 1 ; i ++ ) cout << ans [ i ] << " , ▁ " ; cout << ans [ m - 1 ] << " ] " ; return true ; }