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-2 of 2 results.

A010920 Pisot sequence T(3,13), a(n) = floor( a(n-1)^2/a(n-2) ).

Original entry on oeis.org

3, 13, 56, 241, 1037, 4462, 19199, 82609, 355448, 1529413, 6580721, 28315366, 121834667, 524227237, 2255632184, 9705479209, 41760499493, 179686059838, 773148800711, 3326685824041, 14313982718072
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    I:=[3,13]; [n le 2 select I[n] else Floor(Self(n-1)^2/Self(n-2)): n in [1..25]]; // Bruno Berselli, Sep 03 2013
  • Mathematica
    RecurrenceTable[{a[0] == 3, a[1] == 13, a[n] == Floor[a[n - 1]^2/a[n - 2]]}, a, {n, 0, 25}] (* Bruno Berselli, Sep 03 2013 *)

Formula

Empirical G.f.: (3-2*x)/(1-5*x+3*x^2). - Colin Barker, Feb 21 2012
Empirical: a(n) = 5*a(n-1)-3*a(n-2) with n>1, a(0)=3 and a(1)=13. - Vincenzo Librandi, Apr 17 2012
The empirical g.f. and recurrence above hold for n<=6000. - Bruno Berselli, Sep 03 2013
Note the warning in A010925 from Pab Ter (pabrlos(AT)yahoo.com), May 23 2004: [A010925] and other examples show that it is essential to reject conjectured generating functions for Pisot sequences until a proof or reference is provided. - N. J. A. Sloane, Jul 26 2016

A095934 Expansion of (1-x)^2/(1-5*x+3*x^2).

Original entry on oeis.org

1, 3, 13, 56, 241, 1037, 4462, 19199, 82609, 355448, 1529413, 6580721, 28315366, 121834667, 524227237, 2255632184, 9705479209, 41760499493, 179686059838, 773148800711, 3326685824041, 14313982718072, 61589856118237, 265007332436969, 1140267093830134
Offset: 0

Views

Author

N. J. A. Sloane, Jul 13 2004

Keywords

Comments

a(n) is the number of generalized compositions of n when there are i+2 different types of i, (i=1,2,...). [Milan Janjic, Sep 24 2010]

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[(1-x)^2/(1-5x+3x^2),{x,0,30}],x] (* or *) LinearRecurrence[{5,-3},{1,3,13},30] (* Harvey P. Dale, Jun 21 2021 *)
  • PARI
    a(n)=polcoeff((1-x)^2/(1-5*x+3*x^2)+x*O(x^n),n)

Formula

a(n+2) = 5a(n+1) - 3a(n) (n >= 1); a(0) = 1, a(1) = 3, a(2) = 13.
Showing 1-2 of 2 results.