The left hand side of this equation is detA.
Since m, n, and p are divisible by k, then each of the summands on the right hand side is divisible by k.
We conclude that k divides detA.
Notice that although our method works, it can get very tedious when the size of the matrix becomes large. This necessitates looking for a di¤erent approach.