OFFSET
1,3
MATHEMATICA
m0 = Inverse[{{0, I}, {I, 1}}];
M[0] = {{0, -1}, {-1, -1}}.m0;
M[1] = {{1, 0}, {-1, -1}}.m0;
M[2] = {{-1, 0}, {-1, -1}}.m0;
M[3] = {{0, 1}, {-1, -1}}.m0;
M[4] = I*{{0, -1}, {-1, -1}}.m0;
M[5] = I*{{1, 0}, {-1, -1}}.m0;
M[6] = I*{{-1, 0}, {-1, -1}}.m0;
M[7] = I*{{0, 1}, {-1, -1}}.m0;
v[0] = {1, 1};
v[n_] := v[n] = M[Mod[n, 7]].v[n - 1];
ar = Table[Re[v[n][[1]]], {n, 0, 50}]
CROSSREFS
KEYWORD
uned,obsc,less,sign
AUTHOR
Roger L. Bagula, Oct 13 2008
STATUS
approved