OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-5,5,-4).
FORMULA
G.f.: x*(1+2*x) / ( (x-1)*(4*x-1)*(x^2+1) ). - R. J. Mathar, Oct 13 2015
a(n) ~ (8/17)*4^n = (8/17)*A000302(n). - Stefano Spezia, Oct 16 2023
MATHEMATICA
LinearRecurrence[{5, -5, 5, -4}, {1, 7, 30, 120}, 30] (* Stefano Spezia, Oct 16 2023 *)
Table[FromDigits[PadRight[{}, n, {1, 3, 2, 0}], 4], {n, 30}] (* Harvey P. Dale, Apr 07 2026 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
a(24)-a(26) from Stefano Spezia, Oct 16 2023
Corrected and extended by Harvey P. Dale, Apr 07 2026
STATUS
approved
