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.

A304168 a(n) = 2*3^n - 2^(n-1) (n>=1).

Original entry on oeis.org

5, 16, 50, 154, 470, 1426, 4310, 12994, 39110, 117586, 353270, 1060834, 3184550, 9557746, 28681430, 86060674, 258214790, 774709906, 2324260790, 6973044514, 20919657830, 62760022066, 188282163350, 564850684354, 1694560441670, 5083698102226, 15251127861110, 45753450692194, 137260486294310, 411781727318386
Offset: 1

Views

Author

Emeric Deutsch, May 10 2018

Keywords

Comments

For n>=2, a(n) is the number of edges of the Sierpinski Gasket Rhombus graph SR(n) (see Theorem 2.1 in the D. Antony Xavier et al. reference).

Crossrefs

Programs

  • GAP
    List([1..35],n->2*3^n-2^(n-1)); # Muniru A Asiru, May 10 2018
  • Maple
    seq(2*3^n-2^(n-1), n = 1 .. 40);
  • PARI
    Vec(x*(5 - 9*x) / ((1 - 2*x)*(1 - 3*x)) + O(x^30)) \\ Colin Barker, May 10 2018
    

Formula

From Colin Barker, May 10 2018: (Start)
G.f.: x*(5 - 9*x) / ((1 - 2*x)*(1 - 3*x)).
a(n) = 5*a(n-1) - 6*a(n-2) for n>2.
(End)