function powers1 ( n )

%% POWERS1 prints powers of 2 up to 2^N.

  for i = -2 : n
    p = 2 ^ i;
    fprintf ( 1, '  %d  %d\n', i, p );
  end

  return
end
