function mat = matquasiper5(n)

mat = [];


for k = 1:(n-1)
        mat(k+1,k) = -1;
end

for k = 1:(n-1)
        mat(k,k+1) = -1;
end

for  k = 1:n
        mat(k,k) = 2+potw(k,n);
end

res = mat;

end