OFFSET
0,3
COMMENTS
A floretion-generated sequence: 'i + 0.5('ij' + 'ik' + 'ji' + 'jk' + 'ki' + 'kj')
Starting with offset 1 the sequence appears to be the INVERT transform of (1, 1, 0, -1, 1, 0, -1, 1, 0, -1, 1, 0, ...). - Gary W. Adamson, Aug 27 2016
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Creighton Dement, Online Floretion Multiplier [broken link]
Index entries for linear recurrences with constant coefficients, signature (0,1,2).
FORMULA
a(n) = a(n-2) + 2*a(n-3) for n>2. - Colin Barker, Apr 29 2019
MATHEMATICA
CoefficientList[Series[(1+x+x^2)/(1-x^2-2x^3), {x, 0, 50}], x] (* Harvey P. Dale, Mar 09 2011 *)
LinearRecurrence[{0, 1, 2}, {1, 1, 2}, 50] (* G. C. Greubel, Jun 27 2018 *)
PROG
(PARI) a(n)=([0, 1, 0; 0, 0, 1; 2, 1, 0]^n*[1; 1; 2])[1, 1] \\ Charles R Greathouse IV, Aug 27 2016
(PARI) Vec((1 + x + x^2) / (1 - x^2 - 2*x^3) + O(x^40)) \\ Colin Barker, Apr 29 2019
(Magma) I:=[1, 1, 2]; [n le 3 select I[n] else Self(n-2) + 2*Self(n-2): n in [1..30]]; // G. C. Greubel, Jun 27 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Creighton Dement, Apr 08 2009
STATUS
approved