login
A123186
This sequence needs a meaningful name.
0
1, 1, 1, -2, -2, -2, 0, 0, 0, -8, -8, -8, 1112, 1112, 1112, -16336, -16336, -16336, 29760, 29760, 29760, 108608, 108608, 108608, 112587520, 112587520, 112587520, -3584451200, -3584451200, -3584451200, 17790850560, 17790850560, 17790850560, 208254684160, 208254684160
OFFSET
1,4
MATHEMATICA
M1 = {{-n, 1, 0}, {0, 1, 0}, {0, 0, 1}};
M2 = {{1, 0, 0}, {n, -n, 1}, {0, 0, 1}};
M3 = {{1, 0, 0}, {0, 1, 0}, {0, n, -n}};
M[n_] := If[Mod[n, 3] == 1, M1, If[Mod[n, 3] == 2, M2, M3]]
v[1] = {1, 0, 0}
v[n_] := v[n] = M[n].v[n - 1]
a1 = Table[v[n][[1]], {n, 1, 50}]
CROSSREFS
Sequence in context: A039967 A258133 A327152 * A127323 A327298 A132896
KEYWORD
uned,sign,easy,less
AUTHOR
STATUS
approved