OFFSET
0,1
LINKS
FORMULA
a(n+1) = 5*2^n - a(n) for n >= 0, with a(0) = 4.
a(n+2) = 5*2^n + a(n) for n >= 0, with a(0) = 4, a(1) = 1.
a(n+3) = 15*2^n - a(n) for n >= 0, with a(0) = 4, a(1) = 1, a(2) = 9.
a(2*n+1) = A321421(n).
a(n) = a(n-1) + 2*a(n-2) for n >= 2. - Pontus von Brömssen, May 09 2021
G.f.: (4 - 3*x)/(1 - x - 2*x^2). - Stefano Spezia, May 10 2021
a(n) = abs(A156550(n)) - (-1)^n.
a(n+3) = a(n) + 7*A084214(n+1) for n >= 0, with a(0) = 4.
a(n) = A084214(n+1) + 3*(-1)^n for n >= 0.
MATHEMATICA
LinearRecurrence[{1, 2}, {4, 1}, 28] (* Amiram Eldar, May 10 2021 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, May 09 2021
STATUS
approved