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.

A109265 Row sums of Riordan array (1-x-x^2,x(1-x)).

Original entry on oeis.org

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

Views

Author

Paul Barry, Jun 24 2005

Keywords

Examples

			G.f. = 1 - 2*x^2 - 2*x^3 + 2*x^5 + 2*x^6 - 2*x^8 - 2*x^9 + 2*x^11 + 2*x^12 + ...
		

Crossrefs

Programs

  • Magma
    m:=25; R:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-x-x^2)/(1-x+x^2))); // G. C. Greubel, Aug 04 2018
  • Mathematica
    CoefficientList[Series[(1-x-x^2)/(1-x+x^2), {x, 0, 60}], x] (* G. C. Greubel, Aug 04 2018 *)
    LinearRecurrence[{1,-1},{1,0,-2},120] (* Harvey P. Dale, Apr 08 2019 *)
  • PARI
    {a(n) = n+=2; if( n<3, n==2, 2 * (n%3>0) * (-1)^(n\3))}; /* Michael Somos, Apr 15 2015 */
    

Formula

G.f.: (1-x-x^2)/(1-x+x^2).
a(n) = -a(n+3) if n>0. - Michael Somos, Apr 15 2015
a(n) = A257076(n+1). - Michael Somos, Apr 15 2015
Convolution inverse of A006355. - Michael Somos, Apr 15 2015
a(n) = A130772(n+1) = A184334(n+2) if n>0. - Michael Somos, Sep 01 2015

A132380 Period 8: repeat [0, 0, 1, 1, 0, 0, -1, -1].

Original entry on oeis.org

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

Views

Author

Paul Curtz, Nov 10 2007

Keywords

Crossrefs

Cf. A109247.

Programs

Formula

O.g.f.: x^2*(1+x)/(1+x^4). - R. J. Mathar, Apr 06 2008
For n > 0, a(n) = A109247(n)/-3. - Antti Karttunen, Aug 12 2017
a(n) = (1/2)*(1-(-1)^floor(n/2))*(-1)^floor(n/4). - Wesley Ivan Hurt, Aug 31 2019

A109246 Riordan array (1-x-2x^2,x(1-x)).

Original entry on oeis.org

1, -1, 1, -2, -2, 1, 0, -1, -3, 1, 0, 2, 1, -4, 1, 0, 0, 3, 4, -5, 1, 0, 0, -2, 2, 8, -6, 1, 0, 0, 0, -5, -2, 13, -7, 1, 0, 0, 0, 2, -7, -10, 19, -8, 1, 0, 0, 0, 0, 7, -5, -23, 26, -9, 1, 0, 0, 0, 0, -2, 14, 5, -42, 34, -10, 1, 0, 0, 0, 0, 0, -9, 19, 28, -68, 43, -11, 1, 0, 0, 0, 0, 0, 2, -23, 14, 70, -102, 53, -12, 1, 0, 0, 0, 0, 0, 0, 11, -42, -14
Offset: 0

Views

Author

Paul Barry, Jun 23 2005

Keywords

Comments

Matrix inverse of A109244. Row sums are A109247. Diagonal sums are A109248.

Examples

			Rows begin
1;
-1,1;
-2,-2,1;
0,-1,-3,1;
0,2,1,-4,1;
0,0,3,4,-5,1
		
Showing 1-3 of 3 results.