OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-12).
FORMULA
G.f.: 2*x*(1-2*x)/((1-3*x)*(1-4*x)). - Colin Barker, Jan 20 2012
E.g.f.: (3*exp(4*x) - 2*exp(3*x) - 1)/3. - Stefano Spezia, Apr 03 2025
MATHEMATICA
Join[{0}, Table[4^n-2*3^(n-1), {n, 30}]] (* Harvey P. Dale, Dec 29 2023 *)
(* Alternative: *)
LinearRecurrence[{7, -12}, {0, 2, 10}, 30] (* Harvey P. Dale, Dec 29 2023 *)
PROG
(Python)
def A080643(n): return (1<<(n<<1))-(3**(n-1)<<1) if n else 0 # Chai Wah Wu, Apr 02 2025
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Max Alekseyev, Feb 26 2003
STATUS
approved
