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.

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

Original entry on oeis.org

1, 2, 5, 13, 35, 97, 275, 793, 2315, 6817, 20195, 60073, 179195, 535537, 1602515, 4799353, 14381675, 43112257, 129271235, 387682633, 1162785755, 3487832977, 10462450355, 31385253913, 94151567435, 282446313697, 847322163875, 2541932937193, 7625731702715, 22877060890417, 68630914235795, 205892205836473
Offset: 0

Views

Author

Paul Barry, Jun 25 2003

Keywords

Comments

Binomial transform of A005578.
Binomial transform is A085282.

Crossrefs

Programs

  • Magma
    [3^n/3+2^n/2+0^n/6: n in [0..40]]; // Vincenzo Librandi, May 29 2011
    
  • Mathematica
    a[n_]:=3^n/3 + 2^n/2; Flatten[Join[{1, Array[a, 50]}]] (* or *)
    CoefficientList[Series[(1 - 3*x + x^2)/((1-2*x)*(1-3*x)), {x, 0, 50}], x] (* Stefano Spezia, Sep 09 2018 *)
    LinearRecurrence[{5,-6},{1,2,5},40] (* Harvey P. Dale, Jun 14 2022 *)
  • SageMath
    def A085281(n): return 2^(n-1) +3^(n-1) +int(n==0)/6
    [A085281(n) for n in range(41)] # G. C. Greubel, Nov 11 2024

Formula

a(n) = 3^(n-1) + 2^(n-1) + 0^n/6.
a(n) = A007689(n-1), n > 0. - R. J. Mathar, Sep 12 2008
E.g.f.: (1/6)*(1 + 3*exp(2*x) + 2*exp(3*x)). - G. C. Greubel, Nov 11 2024

A087433 Expansion of g.f.: (1-2*x)*(1-4*x+x^2)/((1-x)*(1-3*x)*(1-4*x)).

Original entry on oeis.org

1, 2, 6, 20, 70, 252, 926, 3460, 13110, 50252, 194446, 758100, 2973350, 11716252, 46333566, 183739940, 730176790, 2906358252, 11582386286, 46200404980, 184414199430, 736494536252, 2942491360606, 11759505089220, 47006639297270
Offset: 0

Views

Author

Paul Barry, Sep 02 2003

Keywords

Comments

Binomial transform of A087432. a(n+1) = 2*A085282(n).
Counts closed walks of length 2n at a vertex of the cyclic graph on 12 nodes C_12. - Herbert Kociemba, Jun 06 2004

Crossrefs

Programs

  • Magma
    [0^n/6+1/3+3^n/3+4^n/6: n in [0..30]]; // Vincenzo Librandi, Aug 12 2011
  • Mathematica
    CoefficientList[Series[(1-2x)(1-4x+x^2)/((1-x)(1-3x)(1-4x)),{x,0,30}],x] (* Harvey P. Dale, Nov 26 2014 *)

Formula

G.f.: (1-2*x)*(1-4*x+x^2)/((1-x)*(1-3*x)*(1-4*x)).
a(n) = 0^n/6 + 1/3 + 3^n/3 + 4^n/6.
a(n) = 8*a(n-1) - 19*a(n-2) + 12*a(n-3). - Wesley Ivan Hurt, Jul 11 2023

Extensions

Definition corrected by Herbert Kociemba, Jun 06 2004
Showing 1-2 of 2 results.