Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
msds
· 11y ago · 0 comments
If you diagonalize the matrix in the problem, the formula pops out pretty quickly.
Comments
[–]
hacknat
11y ago
Nice catch, is that from Knuth's book?
[–]
dbaupp
11y ago
Diagonalization is a fairly standard mathematical trick for doing matrix powers easily. If X is some matrix that can be diagonalised as
X = P^(-1) D P
then
X^n = (P^(-1) D P)^n = P^(-1) D^n P