function s=c(n) % n is a nonnegative integer
                % find and return as a string binary representation of n
if(n==0)
    s='0';
elseif(n==1)
    s='1';
else
    s=[c(floor(n/2)),c(mod(n,2))];
end
