OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..3321
Klaus Brockhaus, Illustration for A053646, A081252, A081253 and A081254
Chris J. Mitchell and Peter R. Wild, Constructing orientable sequences, arXiv:2108.03069 [math.CO], 2021. See Table 2 p. 12 but with different offset.
Index entries for linear recurrences with constant coefficients, signature (2,1,-2).
FORMULA
a(n) = floor(2^(n-1)*7/3).
G.f.: -x*(x^2 - 2)/((x - 1)*(x + 1)*(2*x - 1)).
a(n) = 2*a(n-1) for even n, otherwise a(n) = 2*a(n-1)+1, with a(1)=2. - Bruno Berselli, Jun 19 2014
EXAMPLE
MATHEMATICA
Rest@ CoefficientList[Series[-x (x^2 - 2)/((x - 1) (x + 1) (2 x - 1)), {x, 0, 31}], x]
PROG
(Python) print([7*2**n//6 for n in range(1, 50)]) # Karl V. Keller, Jr., May 22 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Mar 17 2003
EXTENSIONS
Formulas adjusted to be consistent with offset 1 by Pontus von Brömssen, Sep 27 2021
STATUS
approved