OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,0,1,-4).
FORMULA
From R. J. Mathar, Apr 27 2015: (Start)
G.f.: x*(1+x)*(2*x+1) / ( (x-1)*(4*x-1)*(1+x+x^2) ).
a(n) ~ (10/21)*4^n = (10/21)*A000302(n). - Stefano Spezia, Oct 15 2023
MATHEMATICA
LinearRecurrence[{4, 0, 1, -4}, {1, 7, 30, 121}, 30] (* Paolo Xausa, Oct 16 2023 *)
PROG
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -4, 1, 0, 4]^(n-1)*[1; 7; 30; 121])[1, 1] \\ Charles R Greathouse IV, Feb 13 2017
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
a(24)-a(26) from Stefano Spezia, Oct 15 2023
STATUS
approved