function v=v6(n)
q=zeros(6,1);
q(1)=n;
for i=1:5
 q(i+1)=floor(q(i)/2);
end 
v=zeros(6,1);
for i=1:6
  v(i)=(-1)^q(i);
end
