login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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: A191393 A025082 A317911 * A366020 A294151 A294566
KEYWORD
nonn
AUTHOR
Antonia Redondo Buitrago (aredondo(AT)sabuco.com), Jul 23 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 05:09 EDT 2024. Contains 371906 sequences. (Running on oeis4.)