OFFSET
0,5
COMMENTS
M is the 'Fibonacci matrix' F = [[1,2,1][1,1,0][1,0,0]] taken to the third power and flipped on a vertical axis.
Sequence identities:
2a(3n-2) + a(3n-1) = a(3n+1)
2a(3n) + a(3n+1) = a(3n+3)
a(3n-2) + a(3n-1) + a(3n+1) = a(3n+2)
a(3n) + a(3n+1) + a(3n-3) = a(3n+2)
a(3n-1) * a(3n) + a(3n+1) * a(3n-2) = a(6n-2).
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,4,0,0,-1).
FORMULA
a(n) = 4*a(n-3)-a(n-6).
G.f.: x*(3*x^4-2*x^3+x^2+1) / (x^6-4*x^3+1). - Colin Barker, Nov 04 2014
EXAMPLE
M^0 = the 3 X 3 identity matrix = [[1,0,0][0,1,0][0,0,1]]. M[3,1] = 0; M[1,1] = 1; M[1,3] = 0. So the first triple is r = a(0) = 0; s = a(1) = 1; t = a(2) = 0.
M^1 = [[4,12,9][2,7,6][1,4,4]], so r = a(3) = 1; s = a(4) = 2; t = a(5) = 3.
MATHEMATICA
CoefficientList[Series[x (3 x^4 - 2 x^3 + x^2 + 1) / (x^6 - 4 x^3 + 1), {x, 0, 70}], x] (* Vincenzo Librandi, Nov 04 2014 *)
LinearRecurrence[{0, 0, 4, 0, 0, -1}, {0, 1, 0, 1, 2, 3}, 40] (* Harvey P. Dale, Jan 17 2017 *)
PROG
(PARI) concat(0, Vec(x*(3*x^4-2*x^3+x^2+1)/(x^6-4*x^3+1) + O(x^100))) \\ Colin Barker, Nov 04 2014
(Magma) I:=[0, 1, 0, 1, 2, 3]; [n le 6 select I[n] else 4*Self(n-3)-Self(n-6): n in [1..40]]; // Vincenzo Librandi, Nov 04 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Russell Walsmith, Nov 03 2014
STATUS
approved
