for i = 1 : 15
  if ( i == 1 )
    p = 1;
    v = 2;
  else
    p = 2 * p;
    v = v * v;
  end
  fprintf ( 1, '  2^%d = %d\n', p, v );
end
