function pval = comb ( x )
n = length ( x );
pval = mod ( [1:n], 2 );
