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.

Previous Showing 11-13 of 13 results.

A125250 Square array, read by antidiagonals, where A(1,1) = A(2,2) = 1, A(1,2) = A(2,1) = 0, A(n,k) = 0 if n < 1 or k < 1, otherwise A(n,k) = A(n-2,k-2) + A(n-1,k-2) + A(n-2,k-1) + A(n-1,k-1).

Original entry on oeis.org

1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 2, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 1, 5, 1, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 3, 11, 3, 0, 0, 0, 0, 0, 0, 1, 13, 13, 1, 0, 0, 0, 0, 0, 0, 0, 9, 26, 9, 0, 0, 0, 0, 0, 0, 0, 0, 4, 32, 32, 4, 0, 0, 0, 0, 0, 0, 0, 0, 1, 26, 63, 26, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 80, 80, 14, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Gerald McGarvey, Jan 15 2007

Keywords

Comments

It appears that the main diagonal (1,1,2,5,11,...) is A051286 (Whitney number of level n of the lattice of the ideals of the fence of size 2 n) that the diagonals (0,1,2,5,13,...) adjacent to the main diagonal are A110320 (Number of blocks in all RNA secondary structures with n nodes) and that the n-th antidiagonal sum = A094686(n-1) (a Fibonacci convolution). The n-th row sum = A002605(n).

Examples

			Array starts as:
1 0 0 0  0  0  0 ...
0 1 1 0  0  0  0 ...
0 1 2 2  1  0  0 ...
0 0 2 5  5  3  1   0 ...
0 0 1 5 11 13  9   4   1   0...
0 0 0 3 13 26 32  26  14   5   1  0 ...
0 0 0 1  9 32 63  80  71  45  20  6  1 0 ...
0 0 0 0  4 26 80 153 201 191 135 71 27 7 1 0 ...
...
		

Crossrefs

Programs

  • Mathematica
    T[n_, k_] := Sum[Binomial[i, n-i] Binomial[i, k-i], {i, Floor[(n+1)/2], k}];
    Table[T[n-k, k], {n, 0, 13}, {k, 0, n}] // Flatten (* Jean-François Alcover, Nov 12 2019 *)
  • PARI
    A=matrix(22,22);A[1,1]=1;A[2,2]=1;A[2,1]=0;A[1,2]=0;A[3,2]=1;A[2,3]=1; for(n=3,22,for(k=3,22,A[n,k]=A[n-2,k-2]+A[n-1,k-2]+A[n-2,k-1]+A[n-1,k-1])); for(n=1,22,for(i=1,n,print1(A[n-i+1,i],", ")))

Formula

A(1,1) = A(2,2) = 1, A(1,2) = A(2,1) = 0, A(n,k) = 0 if n < 1 or k < 1, otherwise A(n,k) = A(n-2,k-2) + A(n-1,k-2) + A(n-2,k-1) + A(n-1,k-1).
From Peter Bala, Nov 07 2017: (Start)
T(n,k) = Sum_{i = floor((n+1)/2)..k} binomial(i,n-i)* binomial(i,k-i).
Square array = A026729 * transpose(A026729), where A026729 is viewed as a lower unit triangular array. Omitting the first row and column of square array = A030528 * transpose(A030528).
O.g.f. 1/(1 - t*(1 + t)*x - t*(1 + t)*x^2) = 1 + (t + t^2)*x + (t + 2*t^2 + 2*t^3 + t^4)*x^2 + .... Cf. A109466 with o.g.f. 1/(1 - t*x - t*x^2).
The n-th row polynomial R(n,t) satisfies R(n,t) = R(n,-1 - t).
R(n,t) = (-1)^n*sqrt(-t*(1 + t))^n*U(n, 1/2*sqrt(-t*(1 + t))), where U(n,x) denotes the n-th Chebyshev polynomial of the second kind.
The sequence of row polynomials R(n,t) is a divisibility sequence of polynomials, that is, if m divides n then R(m,t) divides R(n,t) in the polynomial ring Z[t].
R(n,1) = A002605; R(n,2) = A057089. (End)

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

Original entry on oeis.org

1, -1, 1, -2, 4, -5, 9, -15, 23, -38, 62, -99, 161, -261, 421, -682, 1104, -1785, 2889, -4675, 7563, -12238, 19802, -32039, 51841, -83881, 135721, -219602, 355324, -574925, 930249, -1505175, 2435423, -3940598, 6376022, -10316619, 16692641, -27009261, 43701901, -70711162, 114413064, -185124225
Offset: 0

Views

Author

Paul Curtz, Jun 28 2013

Keywords

Comments

a(n) and its differences:
. 1, -1, 1, -2, 4, -5, 9, -15, 23, -38, ...
. -2, 2, -3, 6, -9, 14, -24, 38, -61, 100, ...
. 4, -5, 9, -15, 23, -38, 62, -99, 161, -261, ...
. -9, 14, -24, 38, -61, 100, -161, 260, -422, 682, ...
. 23, -38, 62, -99, 161, -261, 421, -682, 1104, -1785, ...
. -61, 100, -161, 260, -422, 682, -1103, 1786, -2889, 4674, ...
. 161, -261, 421, -682, 1104, -1785, 2889, -4675, 7563, -12238, ...
The third row is the first shifted .
The main diagonal is A001077(n). The fourth is -A001077(n+1). By "shifted" antidiagonals there are one 1, two 2's (-2 of the first row and 2), generally A001651(n) (-1)^n *A001077(n).
a(n+1)/a(n) tends to A001622 (the golden ratio) as n -> infinity.

Programs

  • Magma
    m:=50; R:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-x+x^3)/(1-x^2+2*x^3-x^4))); // Bruno Berselli, Jul 04 2013
  • Mathematica
    a[0] = 1; a[1] = -1; a[n_] := a[n] = a[n-2] - a[n-1] - {-1, 0, 1, 1, 0, -1}[[Mod[n+1, 6] + 1]]; Table[a[n], {n, 0, 41}] (* Jean-François Alcover, Jul 04 2013 *)

Formula

a(0)=1, a(1)=-1; for n>1, a(n) = a(n-2) - a(n-1) + A010892(n+2).
a(n) = a(n-2) -2*a(n-3) +a(n-4).
a(n) = A226956(-n).
a(n+1) = A039834(n) - (-1)^n*A094686(n).
a(n+6) - a(n) = 2*(-1)^n* A000032(n+3).
a(2n+1) = -A226956(2n+1).
G.f. ( -1+x-x^3 ) / ( (x^2-x-1)*(1-x+x^2) ). - R. J. Mathar, Jun 29 2013
2*a(n) = A010892(n+2)+A061084(n+1). - R. J. Mathar, Jun 29 2013

A113727 A Pell convolution.

Original entry on oeis.org

1, 0, 4, 4, 17, 32, 88, 200, 497, 1184, 2876, 6924, 16737, 40384, 97520, 235408, 568353, 1372096, 3312564, 7997204, 19306993, 46611168, 112529352, 271669848, 655869073, 1583407968, 3822685036, 9228778012, 22280241089, 53789260160
Offset: 0

Views

Author

Paul Barry, Nov 08 2005

Keywords

Comments

Convolution of A000129(n+1) and (n+1)*(-1)^n.

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{0,4,4,1},{1,0,4,4},30] (* Harvey P. Dale, May 24 2014 *)

Formula

G.f.: 1/((1-2x-x^2)(1+2x+x^2)); a(n)=4a(n-2)+4a(n-3)+a(n-4); a(n)=sum{k=0..floor(n/2), C(n-k, k)2^(n-2k)*(1+(-1)^(n-k))/2}.
a(n) = A000129(n+1)/2 +(n+1)*(-1)^n/2. - R. J. Mathar, Sep 20 2012
Previous Showing 11-13 of 13 results.