function mat = detn(n,l,va,vb,e,k)

t = full(gallery('tridiag',l,1,0,1));
v = fiboe(n,va,vb,e);

for j = 1:(l-k)
    t(j,j) = v(k+j);
end

mat = det(t);

end
