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.

Showing 1-1 of 1 results.

A106570 a(n) = 4*a(n-1) + 3*a(n-2), with a(0)=0, a(1)=3.

Original entry on oeis.org

0, 3, 12, 57, 264, 1227, 5700, 26481, 123024, 571539, 2655228, 12335529, 57307800, 266237787, 1236874548, 5746211553, 26695469856, 124020514083, 576168465900, 2676735405849, 12435447021096, 57771994301931, 268394318271012
Offset: 0

Views

Author

Roger L. Bagula, May 30 2005

Keywords

Crossrefs

Programs

  • Magma
    [n le 2 select 3*(n-1) else 4*Self(n-1) + 3*Self(n-2): n in [1..41]]; // G. C. Greubel, Sep 07 2021
    
  • Maple
    a[0]:=0: a[1]:=3: for n from 2 to 24 do a[n]:=4*a[n-1]+3*a[n-2] od: seq(a[n], n=0..40);
  • Mathematica
    LinearRecurrence[{4,3}, {0,3}, 41] (* G. C. Greubel, Sep 07 2021 *)
  • Sage
    [3*lucas_number1(n,4,-3) for n in (0..40)] # G. C. Greubel, Sep 07 2021

Formula

G.f.: 3*x/(1 - 4*x - 3*x^2).
a(n) = 4*a(n-1) + 3*a(n-2), a(0)=0, a(1)=3.
a(n) = 3*A015530(n).

Extensions

Edited by N. J. A. Sloane, Apr 30 2006
New name by G. C. Greubel, Sep 07 2021
Showing 1-1 of 1 results.