OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (7,0,1,-7).
FORMULA
G.f.: x*(2 + 3*x^2)/((x - 1)*(7*x - 1)*(1 + x + x^2)). - R. J. Mathar, Apr 29 2015
E.g.f.: (101*exp(7*x) - 95*exp(x) - exp(-x/2)*(6*cos(sqrt(3)*x/2) - 46sqrt(3)*sin(sqrt(3)*x/2)))/342. - Stefano Spezia, Oct 07 2025
MAPLE
a:= proc(n) option remember; `if`(n=0, 0,
a(n-1)*7+[3, 2, 0][1+irem(n, 3)])
end:
seq(a(n), n=1..23); # Alois P. Heinz, Oct 07 2025
MATHEMATICA
LinearRecurrence[{7, 0, 1, -7}, {2, 14, 101, 709}, 23] (* Stefano Spezia, Oct 07 2025 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved
