OFFSET
1,2
LINKS
Karl-Heinz Hofmann, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,-2).
FORMULA
Conjecture: a(2*n) = A266753(n).
From Stefano Spezia, Dec 27 2025: (Start)
G.f.: x^2*(4 - x)/((1 - x)*(1 + x)*(1 - 2*x)).
E.g.f.: exp(-x)*(exp(x) - 1)^2*(7*exp(x) + 5)/6. (End)
MATHEMATICA
a[n_] := (7*2^n - 9 + 5*(-1)^n)/6; Array[a, 35] (* Amiram Eldar, Dec 27 2025 *)
LinearRecurrence[{2, 1, -2}, {0, 4, 7}, 34] (* Hugo Pfoertner, Jan 01 2026 *)
PROG
(Python)
def A392003(n): return (7*2**n - 9 + 5*(-1)**n) // 6
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Karl-Heinz Hofmann, Dec 26 2025
STATUS
approved
