For n = 1, det[1] = 1.
For n = 2, det([[4,-1],[1,4]]) = 17, and the continued fraction expansion is 17/4 = [2^2,2^2].
For n = 3, det([[9,-1,0],[1,9,-1],[0,1,9]]) = 747, and the continued fraction expansion is 747/det([[9,-1],[1,9]]) = 747/82 = [3^2,3^2,3^2].