|
|
MATHEMATICA
| m = 5 M = {{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {1, m, 0, - m) Expand[Det[M - x*IdentityMatrix[4]]] (*-1 - 5 x + 5 x^3 + x^4*) NSolve[Det[M - x*IdentityMatrix[4]] == 0, x] v[1] = {0, 1, 1, 2}; v[n_] := v[n] = M . v[n - 1] digits = 50; aa = Table[Abs[v[n][[1]], {n, 1, digits}]
Clear[M, m, v, aa] (*A107389*)m = 5; M = {{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {1, m, 0, - m}}; Expand[Det[M - x*IdentityMatrix[4]]] ; NSolve[Det[M - x*IdentityMatrix[4]] == 0, x] ; v[1] = {0, 1, 1, 2}; v[n_] := v[n] = M . v[n - 1]; digits = 50; aa = Table[Abs[v[n][[1]]], {n, 1, digits}]
|