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.

A284703 Number of maximal matchings in the n-prism graph.

Original entry on oeis.org

1, 5, 10, 17, 51, 98, 211, 457, 964, 2095, 4489, 9638, 20723, 44469, 95550, 205225, 440777, 946808, 2033571, 4367947, 9381928, 20151345, 43283195, 92967814, 199685501, 428904403, 921243124, 1978737477, 4250128177, 9128846128, 19607840133, 42115660425
Offset: 1

Views

Author

Eric W. Weisstein, Apr 01 2017

Keywords

Comments

Sequence extrapolated to n=1 using recurrence. - Andrew Howroyd, May 16 2017

Crossrefs

Programs

  • Magma
    I:=[1,5,10,17,51,98,211,457]; [n le 8 select I[n] else Self(n-1)+2*Self(n-2)+Self(n-3)-Self(n-4)+2*Self(n-5)+Self(n-6)-Self(n-7)-Self(n-8): n in [1..40]]; // Vincenzo Librandi, May 17 2017
  • Mathematica
    LinearRecurrence[{1, 2, 1, -1, 2, 1, -1, -1}, {1, 5, 10, 17, 51, 98, 211, 457}, 40] (* Vincenzo Librandi, May 17 2017 *)
    CoefficientList[Series[(-8 x^7 - 7 x^6 + 6 x^5 + 10 x^4 - 4 x^3 + 3 x^2 + 4 x + 1) / ((x^2 - x + 1) (x^3 - x - 1) (x^3 + 2 x^2 + x - 1)), {x, 0, 33}], x] (* Vincenzo Librandi, May 17 2017 *)
    Table[2 Cos[n Pi/3] + RootSum[-1 - 2 # - #^2 + #^3 &, #^n &] +
      RootSum[-1 + #^2 + #^3 &, #^n &], {n, 20}] (* Eric W. Weisstein, May 17 2017 *)
  • PARI
    Vec((-8*x^7-7*x^6+6*x^5+10*x^4-4*x^3+3*x^2+4*x+1)/((x^2-x+1)*(x^3-x-1)*(x^3+2*x^2+x-1))+O(x^20)) \\ Andrew Howroyd, May 16 2017
    

Formula

From Andrew Howroyd, May 16 2017 (Start)
a(n) = a(n-1)+2*a(n-2)+a(n-3)-a(n-4)+2*a(n-5)+a(n-6)-a(n-7)-a(n-8) for n>8.
G.f.: x*(-8*x^7-7*x^6+6*x^5+10*x^4 -4*x^3+3*x^2+4*x+1)/((x^2-x+1)*(x^3-x-1)*(x^3+2*x^2+x-1)).
(End)

Extensions

a(1)-a(2) and a(20)-a(32) from Andrew Howroyd, May 16 2017

A338154 a(n) is the number of acyclic orientations of the edges of the n-antiprism.

Original entry on oeis.org

426, 4968, 50640, 486930, 4547088, 41796168, 380789562, 3451622904, 31194607488, 281440825122, 2536622917920, 22848990484344, 205743704494026, 1852238413383048, 16673036119790640, 150072652217086770, 1350735146332489008, 12157047307392618408
Offset: 3

Views

Author

Peter Kagey, Oct 13 2020

Keywords

Comments

Conjectured linear recurrence and g.f. confirmed by Kagey's formula. - Ray Chandler, Mar 10 2024

Examples

			For n = 3, the 3-antiprism is the octahedron (3-dimensional cross-polytope), so a(3) = A033815(3) = 426.
		

Crossrefs

Cf. A033815 (cross-polytope), A058809 (wheel), A334247 (hypercube), A338152 (demihypercube), A338153 (prism).

Programs

  • Mathematica
    A338154[n_] := Round[-2^(1-n)*((7 - Sqrt[13])^n + (7 + Sqrt[13])^n) + 9^n + 5] (* Peter Kagey, Nov 15 2020 *)

Formula

Conjectures from Colin Barker, Oct 13 2020: (Start)
G.f.: 6*x^3*(71 - 379*x + 612*x^2 - 324*x^3) / ((1 - x)*(1 - 9*x)*(1 - 7*x + 9*x^2)).
a(n) = 17*a(n-1) - 88*a(n-2) + 153*a(n-3) - 81*a(n-4) for n>6.
(End)
a(n) = -2^(1-n)*((7-sqrt(13))^n + (7+sqrt(13))^n) + 9^n + 5. - Peter Kagey, Nov 15 2020
Showing 1-2 of 2 results.