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.

A139818 Squares of Jacobsthal numbers.

Original entry on oeis.org

0, 1, 1, 9, 25, 121, 441, 1849, 7225, 29241, 116281, 466489, 1863225, 7458361, 29822521, 119311929, 477204025, 1908903481, 7635439161, 30542106169, 122167725625, 488672300601, 1954686406201, 7818751217209, 31274993684025
Offset: 0

Views

Author

Paul Curtz, May 17 2008

Keywords

Comments

Run length transform gives A246035. - N. J. A. Sloane, Feb 26 2015

Crossrefs

Cf. A001045, A246035. First differences give (apart from signs) A083086.

Programs

  • Magma
    [1/9-(2/9)*(-2)^n+(1/9)*4^n: n in [0..35]]; // Vincenzo Librandi, Aug 09 2011
    
  • Mathematica
    LinearRecurrence[{3, 6, -8}, {0, 1, 1}, 25] (* Jean-François Alcover, Jan 09 2019 *)
  • PARI
    concat (0, Vec(x*(1-2*x)/((1-x)*(1+2*x)*(1-4*x)) + O(x^30))) \\ Michel Marcus, Mar 04 2015

Formula

a(n) = 3*a(n-1) + 6*a(n-2) - 8*a(n-3).
a(n) = (A001045(n))^2.
G.f.: x*(1-2*x)/((1-x)*(1+2*x)*(1-4*x)).

Extensions

More terms from R. J. Mathar, Dec 12 2009