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.

A305861 a(n) = 32*3^n - 2^(n+5) + 5.

Original entry on oeis.org

5, 37, 165, 613, 2085, 6757, 21285, 65893, 201765, 613477, 1856805, 5603173, 16875045, 50756197, 152530725, 458116453, 1375397925, 4128290917, 12389067045, 37175589733, 111543546405, 334664193637, 1004059689765, 3012313287013, 9037208296485, 27112161760357
Offset: 0

Views

Author

Vincenzo Librandi, Jun 15 2018

Keywords

Crossrefs

Cf. A000918.

Programs

  • Magma
    [32*3^n-2^(n+5)+5: n in [0..30]];
    
  • Mathematica
    Table[32 3^n - 2^(n + 5) + 5, {n, 0, 30}]
  • PARI
    a(n) = 32*3^n - 2^(n+5) + 5; \\ Michel Marcus, Jul 03 2018

Formula

G.f.: (5 + 7*x - 2*x^2)/((1 - x)*(1 - 2*x)*(1 - 3*x)).
a(n) = 6*a(n-1) - 11*a(n-2) + 6*a(n-3).