OFFSET
0,2
FORMULA
a(n) = A052959(n-1). - R. J. Mathar, Aug 18 2008
EXAMPLE
a(8)=21 because P^8=[1,0;0,1], F^8=[13,21;21,34] and so P^8+F^8=[14,21;21,34].
MAPLE
with(linalg): a:=proc(n) local P, F, v, k: P[1]:=matrix(2, 2, [0, 1, 1, 0]): F[1]:=matrix(2, 2, [0, 1, 1, 1]): v:=matrix(2, 1, [0, 1]): for k from 2 to n do P[k]:=multiply(P[1], P[k-1]): F[k]:=multiply(F[1], F[k-1]) od: evalm(P[n]+F[n])[1, 2] end: 0, seq(a(n), n=1..44);
MATHEMATICA
v[0] = {0, 1}; w[0] = {0, 1}; M2 = {{0, 1}, {1, 0}}; Mf = {{0, 1}, {1, 1}} v[n_] := v[n] = M2.v[n - 1] w[n_] := w[n] = Mf.w[n - 1] a = Table[(w[n] + v[n])[[1]], {n, 0, 50}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jun 17 2005
STATUS
approved