cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

Original entry on oeis.org

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

Views

Author

Antonia Redondo Buitrago (aredondo(AT)sabuco.com), Jul 23 2009

Keywords

Comments

Because of G.f. in Formula section, numbers k + 1 such that A054347(k)/k is an integer. - Ctibor O. Zizka, Apr 02 2025

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{0,4,0,1},{2,3,8,13},30] (* Harvey P. Dale, Dec 31 2021 *)
  • 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

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