Let be an square matrix such that if either or divides , otherwise, .
You can see that and .
Find the next value of for which .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I expanded the matrix along the column 1 .
Make all the elements in the first column of A zero, except at the position ( x , 1 ) , and call the new matrix D x , 1 . The following formula can be used to calculate the determinant of D x , 1 .
∣ D x , 1 ∣ = − 1 − y ∑ ∣ D y , 1 ∣ where y is a non-trivial positive divisor of x .
Notice that the determinant of D x , 1 does not depend on the size of the matrix. So, I stored the determinants of D x , 1 in a list d . This list can then be used to find the determinant of A as follows.
∣ A ( n + 1 ) ∣ = ∣ A ( n ) ∣ + ∣ D n , 1 ∣
The value of the determinants are stored in the list a .