login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A151889
a(1)=2, a(2)=3; a(2k-1)=2a(2k-2)+a(2k-3), a(2k)=3a(2k-2)+2a(2k-3), k >= 2.
1
2, 3, 8, 13, 34, 55, 144, 233, 610, 987, 2584, 4181, 10946, 17711, 46368, 75025, 196418, 317811, 832040, 1346269, 3524578, 5702887, 14930352, 24157817, 63245986, 102334155, 267914296, 433494437, 1134903170, 1836311903
OFFSET
1,1
FORMULA
a(2k-1) = Fib(3k-1), a(2k) = Fib(3k).
G.f.: -(x^3+3*x+2)*x/(x^4+4*x^2-1). - Alois P. Heinz, Jun 20 2013
MATHEMATICA
LinearRecurrence[{0, 4, 0, 1}, {2, 3, 8, 13}, 30] (* Harvey P. Dale, Dec 31 2021 *)
PROG
(PARI) a(n) = if (n==1, 2, if (n==2, 3, if (n%2, 2*a(n-1)+a(n-2), 3*a(n-2)+2*a(n-3)))) \\ Michel Marcus, Jun 20 2013
CROSSREFS
Cf. A000045.
Sequence in context: A025082 A317911 A374301 * A366020 A294151 A294566
KEYWORD
nonn
AUTHOR
Antonia Redondo Buitrago (aredondo(AT)sabuco.com), Jul 23 2009
STATUS
approved