Count Iblis said:
Do you see that the list of positions of the ones always has to be a permutation of the row numbers for the determinant to be nonzero?
That's an excellent point, Iblis. I have been trying to work out the patterns and it is absurdly difficult for me. I wonder if the OP knows about odd and even permutations? In evaluating a determinant, the odd permutations are subtracted from the even permutations: in other words, imagine you are just multiplying the elements along the diagonal, and then swapping rows in and out to change the diagonal elements: each time you swat a pair of rows, you change the sign of the product. I've done the first six matrices (up to 6x6) and I think there's a simple pattern. I know this is a homework thread but it seems prohibitively difficult for the precalculus level...so I'm going to show my work for the 5x5 matrix. Also because I am showing off...
Here goes:
There are 120 possible permutations of the five rows and they can be listed in seven different classes according to how many elements they move. I'm going to use the group theory notation where (123) means 1 goes to 2, 2 goes to 3, 3 goes back to 1, and 4 and 5 are unmoved:
Class 1: Similar to (12345) where everything moves: 24 permutations
Class 2: Similar to (1234) (5) where only four rows move: 30 permutations
Class 3: Similar to (123) where only 3 rows move: 20 permutations
Class 4. Similar to (123)(45) where all 5 rows move (with incomplete mixing!) 20 permutations
Class 5: Similar to (12)(34) where 4 rows move: 15 permutations
Class 6: similar to (12) where only 2 rows move: 10 permutations
Class 7: the identity e, where nothing moves: 1 permuation
A quick check shows I've accounted for all 120 possible permutations of 5 rows. Interesting that each class has a definite parity...members of Class 2, for instance, can all be generated by a composition of 3 simple swaps, hence Clas 2 has odd parity.
Since we need to clear all the zeroes out of the diagonal, we need only be interested in those classes for which every row gets moved. So only Class 1 and Class 4 need be counted. The 24 permutations in Class 1 are even, so they give a net of +24; the 20 permutations in Class 4 are odd so they net -20. Total = 4, which is the determinant of the 5x5 matrix.