function k = aadet(a,b,n)
% It returns the value predicted by the formula for det(A).
k = (-a)^(n-1)*(2+b*(n-1));
