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.

A174191 Expansion of (1+x)*(2*x-1)/((1-x)*(x^2+2*x-1)).

Original entry on oeis.org

1, 2, 3, 6, 13, 30, 71, 170, 409, 986, 2379, 5742, 13861, 33462, 80783, 195026, 470833, 1136690, 2744211, 6625110, 15994429, 38613966, 93222359, 225058682, 543339721, 1311738122, 3166815963, 7645370046, 18457556053, 44560482150, 107578520351
Offset: 0

Views

Author

Clark Kimberling, Mar 11 2010

Keywords

Comments

Pisano period lengths: 1, 2, 8, 4, 12, 8, 6, 8, 24, 12, 24, 8, 28, 6, 24, 16, 16, 24, 40, 12,.. (is this A175181?) - R. J. Mathar, Aug 10 2012

Examples

			a(2) = 2*a(1) + a(0) - 2 = 2*2 + 1 - 2 = 3
a(3) = 2*a(2) + a(1) - 2 = 2*3 + 2 - 2 = 6.
		

Crossrefs

Cf. A174192, A001333 (first differences).

Programs

  • Mathematica
    LinearRecurrence[{3, -1, -1}, {1, 2, 3}, 31] (* Robert P. P. McKone, Apr 03 2022 *)

Formula

a(n) = 2*a(n-1) + a(n-2) - 2, with a(0)=1, a(1)=2.
From R. J. Mathar, Mar 17 2010: (Start)
a(n) = A052937(n-1), n > 0.
a(n) = 3*a(n-1) - a(n-2) - a(n-3). (End)
Showing 1-1 of 1 results.