We are given the following $n\times n$ matrix, whose terms are:
- $a+b$ for the terms in the diagonal ($i=j$).
- $a$ for the rest of the elements.
I know we can simply compute this and try to find a pattern, but is there a faster way? Maybe using some properties of the determinant of a matrix?