Determinant problem

Problem: Given a square, matrix whose diagonal elements are each equal to and whose non-diagonal elements are each equal to , calculate its determinant.

In symbols,

What is as a function of ?


Solution.