function z = buggy(x)
n = length(x);
z = (1:n)./x;