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

A111912 Expansion of x*(2 +3*x +x^2 -2*x^5 -x^7 -x^8)/((1-x)*(1+x)*(1-x^4+x^8)).

Original entry on oeis.org

0, 2, 3, 3, 3, 5, 4, 6, 3, 5, 1, 5, 0, 2, -3, 1, -3, -1, -4, -2, -3, -1, -1, -1, 0, 2, 3, 3, 3, 5, 4, 6, 3, 5, 1, 5, 0, 2, -3, 1, -3, -1, -4, -2, -3, -1, -1, -1, 0, 2, 3, 3, 3, 5, 4, 6, 3, 5, 1, 5, 0, 2, -3, 1, -3, -1, -4, -2, -3, -1, -1, -1
Offset: 0

Views

Author

Creighton Dement, Aug 20 2005

Keywords

Comments

Sequence has period 24.

Crossrefs

Programs

  • Magma
    R:=PowerSeriesRing(Integers(), 75);
    Coefficients(R!( x*(2+3*x+x^2-2*x^5-x^7-x^8)/((1-x)*(1+x)*(1-x^4+x^8)) )); // G. C. Greubel, Feb 12 2021
  • Maple
    seq(coeff(series((x*(-2-3*x-x^2+2*x^5+x^7+x^8)/((x-1)*(x+1)*(x^8-x^4+1))),x,n+1),x,n),n=0..75); # Muniru A Asiru, Jun 06 2018
  • Mathematica
    LinearRecurrence[{0,1,0,1,0,-1,0,-1,0,1}, {0,2,3,3,3,5,4,6,3,5}, 75] (* G. C. Greubel, Feb 12 2021 *)
  • PARI
    Vec(x*(-2-3*x-x^2+2*x^5+x^7+x^8)/((x-1)*(x+1)*(x^8-x^4+1))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
    
  • Sage
    def A111912_list(prec):
        P. = PowerSeriesRing(ZZ, prec)
        return P( x*(2+3*x+x^2-2*x^5-x^7-x^8)/((1-x)*(1+x)*(1-x^4+x^8)) ).list()
    A111912_list(75) # G. C. Greubel, Feb 12 2021
    

A111914 Expansion of -x^2*(x^4-2*x^3+x^2-2*x+1)*(x+1)^2 / ((x-1)*(x^8-x^4+1)).

Original entry on oeis.org

0, 0, 1, 1, -1, -3, -4, -4, -5, -7, -9, -9, -8, -8, -9, -9, -7, -5, -4, -4, -3, -1, 1, 1, 0, 0, 1, 1, -1, -3, -4, -4, -5, -7, -9, -9, -8, -8, -9, -9, -7, -5, -4, -4, -3, -1, 1, 1, 0, 0, 1, 1, -1, -3, -4, -4, -5, -7, -9, -9, -8, -8, -9, -9, -7, -5, -4, -4, -3, -1, 1, 1, 0, 0, 1, 1, -1, -3, -4, -4, -5, -7, -9, -9, -8, -8, -9, -9, -7, -5, -4, -4
Offset: 0

Views

Author

Creighton Dement, Aug 20 2005

Keywords

Comments

It appears that (a(n)) has period 24.

Crossrefs

Programs

  • PARI
    concat([0,0], Vec(x^2*(1 + x)^2*(1 - 2*x + x^2 - 2*x^3 + x^4) / ((1 - x)*(1 - x^4 + x^8)) + O(x^40))) \\ Colin Barker, May 18 2019

Formula

a(n) = a(n-1) + a(n-4) - a(n-5) - a(n-8) + a(n-9) for n > 8. - Colin Barker, May 18 2019

A111915 Expansion of -x^2*(x-1)*(x^2-x+1)*(x+x^2+1)/(1-x^4+x^8).

Original entry on oeis.org

0, 0, 1, -1, 1, -1, 2, -2, 1, -1, 1, -1, 0, 0, -1, 1, -1, 1, -2, 2, -1, 1, -1, 1, 0, 0, 1, -1, 1, -1, 2, -2, 1, -1, 1, -1, 0, 0, -1, 1, -1, 1, -2, 2, -1, 1, -1, 1, 0, 0, 1, -1, 1, -1, 2, -2, 1, -1, 1, -1, 0, 0, -1, 1, -1, 1, -2, 2, -1, 1, -1, 1, 0, 0, 1, -1, 1, -1, 2, -2, 1, -1, 1, -1, 0, 0, -1, 1, -1, 1, -2, 2, -1, 1, -1, 1, 0, 0, 1, -1
Offset: 0

Views

Author

Creighton Dement, Aug 20 2005

Keywords

Comments

It appears that a(n) has period 24.
This is true, as (1-x^4+x^8) is the cyclotomic polynomial for n=24. - Joerg Arndt, Feb 03 2017

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[-x^2*(x - 1)*(x^2 - x + 1)*(x + x^2 + 1)/(1 - x^4 + x^8), {x, 0, 100}], x] (* Wesley Ivan Hurt, Feb 03 2017 *)
  • PARI
    a(n)=[0, 0, 1, -1, 1, -1, 2, -2, 1, -1, 1, -1, 0, 0, -1, 1, -1, 1, -2, 2, -1, 1, -1, 1][n%24+1] \\ Charles R Greathouse IV, Feb 03 2017

Formula

G.f.: -x^2*(x-1)*(x^2-x+1)*(x+x^2+1)/(1-x^4+x^8).
Showing 1-3 of 3 results.