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.

A174132 2*3^(n-1)-(-1)^n.

Original entry on oeis.org

3, 5, 19, 53, 163, 485, 1459, 4373, 13123, 39365, 118099, 354293, 1062883, 3188645, 9565939, 28697813, 86093443, 258280325, 774840979, 2324522933, 6973568803, 20920706405, 62762119219, 188286357653, 564859072963
Offset: 1

Views

Author

Vincenzo Librandi, Jan 27 2011

Keywords

Crossrefs

Cf. A154992.

Programs

  • Magma
    [2*3^(n-1)-(-1)^n: n in [1..30]]; // Vincenzo Librandi, Aug 21 2014
  • Mathematica
    Table[(2 3^(n-1) - (-1)^n), {n, 30}] (* or *) CoefficientList[Series[(3 - x)/((1 + x)(1 - 3 x)), {x, 0, 30}], x] (* Vincenzo Librandi, Aug 21 2014 *)

Formula

From Bruno Berselli, Jan 28 2011 - Jan 30 2011: (Start)
G.f.: x*(3-x)/((1+x)*(1-3*x)).
a(n) = A062547(A042963(n-1)).
a(n) = 2*sum[a(i), i=1..n-1]-2*(-1)^n+1 for n>1. (End)
Showing 1-1 of 1 results.