OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,0,1,-6).
FORMULA
a(n) = 6a(n-1) + a(n-3) - 6a(n-4).
G.f.: x/((1-x^3)*(1-6*x)) = 36/(215*(1-6*x))+(-6*x^2-x-36)/(215*(1-x^3)). - Tani Akinari, Jul 18 2014
a(n) = floor((36/215)*6^n). - Tani Akinari, Jul 18 2014
MATHEMATICA
LinearRecurrence[{6, 0, 1, -6}, {1, 6, 36, 217}, 30] (* or *)
Floor[36/215*6^Range[30]] (* Paolo Xausa, Feb 02 2024 *)
PROG
(PARI) Vec(x/((1-x^3)*(1-6*x)) + O(x^50)) \\ Tani Akinari, Jul 18 2014
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved