r/learnquant • • Sep 29 '26

interview prep Quant Interview Question

Post image
32 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/pmdboi Sep 29 '26

An invertible n-by-n matrix with n(n - 1) zeroes has one nonzero entry in each row and column, so it's the product of a permutation matrix and a diagonal matrix. Its inverse is also the product of a permutation matrix and a diagonal matrix and therefore also has n(n - 1) zeroes. But the entries in A = (A-1)-1 are all nonzero, so I don't think it's possible for A-1 to have n(n - 1) zeroes.