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-2 of 2 results.

A190441 a(n) = 4*a(n-1) + 39*a(n-2), with a(0)=0, a(1)=1.

Original entry on oeis.org

0, 1, 4, 55, 376, 3649, 29260, 259351, 2178544, 18828865, 160278676, 1375440439, 11752630120, 100652697601, 860963365084, 7369308666775, 63054805905376, 539622261625729, 4617626476812580, 39515774110653751, 338150529038305624, 2893717306468718785
Offset: 0

Views

Author

Bruno Berselli, May 25 2011

Keywords

Crossrefs

Cf. A015611, A190943 (with similar closed forms).

Programs

  • Magma
    [n le 2 select n-1 else 4*Self(n-1)+39*Self(n-2): n in [1..22]];
    
  • Mathematica
    a = {0, 1}; Do[AppendTo[a, 4 a[[-1]] + 39 a[[-2]]], {20}]; a (* Bruno Berselli, Dec 26 2012 *)
    CoefficientList[Series[x / (1 - 4 x - 39 x^2), {x, 0, 25}], x] (* Vincenzo Librandi, Aug 19 2013 *)
    LinearRecurrence[{4,39},{0,1},30] (* Harvey P. Dale, Aug 21 2021 *)
  • Maxima
    a[0]:0$ a[1]:1$ a[n]:=4*a[n-1]+39*a[n-2]$ makelist(a[n], n, 0, 17);
    
  • PARI
    x='x+O('x^30); concat([0], Vec(x/(1-4*x-39*x^2))) \\ G. C. Greubel, Dec 30 2017

Formula

G.f.: x/(1-4*x-39*x^2).
a(n) = ((2+sqrt(43))^n - (2-sqrt(43))^n)/(2*sqrt(43)).

A190943 a(n) = 8*a(n-1) + 27*a(n-2), with a(0)=0, a(1)=1.

Original entry on oeis.org

0, 1, 8, 91, 944, 10009, 105560, 1114723, 11767904, 124240753, 1311659432, 13847775787, 146197010960, 1543466033929, 16295047567352, 172033963454899, 1816237991957696, 19174820948943841, 202436993374408520, 2137216112616751867
Offset: 0

Views

Author

Bruno Berselli, May 24 2011

Keywords

Crossrefs

Cf. A000045, A046717, A015533 (for type of recurrence).
Cf. A015611, A190441 (for type of closed formula).

Programs

  • Magma
    [n le 2 select n-1 else 8*Self(n-1)+27*Self(n-2): n in [1..17]];
    
  • Mathematica
    a = {0, 1}; Do[AppendTo[a, 8 a[[-1]] + 27 a[[-2]]], {18}]; a (* Bruno Berselli, Dec 26 2012 *)
    CoefficientList[Series[x / (1 - 8 x - 27 x^2), {x, 0, 25}], x] (* Vincenzo Librandi, Aug 19 2013 *)
  • Maxima
    a[0]:0$ a[1]:1$ a[n]:=8*a[n-1]+27*a[n-2]$ makelist(a[n], n, 0, 17);
    
  • PARI
    x='x+O('x^30); concat([0], Vec(x/(1-8*x-27*x^2))) \\ G. C. Greubel, Dec 30 2017

Formula

G.f.: x/(1-8*x-27*x^2).
a(n) = ((4+sqrt(43))^n - (4-sqrt(43))^n)/(2*sqrt(43)).
Showing 1-2 of 2 results.