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

A081294 Expansion of (1-2*x)/(1-4*x).

Original entry on oeis.org

1, 2, 8, 32, 128, 512, 2048, 8192, 32768, 131072, 524288, 2097152, 8388608, 33554432, 134217728, 536870912, 2147483648, 8589934592, 34359738368, 137438953472, 549755813888, 2199023255552, 8796093022208, 35184372088832
Offset: 0

Views

Author

Paul Barry, Mar 17 2003

Keywords

Comments

Binomial transform of A046717. Second binomial transform of A000302 (with interpolated zeros). Partial sums are A007583.
Counts closed walks of length 2n at a vertex of the cyclic graph on 4 nodes C_4. With interpolated zeros, counts closed walks of length n at a vertex of the cyclic graph on 4 nodes C_4. - Paul Barry, Mar 10 2004
In general, Sum_{k=0..n} Sum_{j=0..n} C(2*(n-k), j)*C(2*k, j)*r^j has expansion (1 - (r+1)*x)/(1 - (r+3)*x - (r-1)*(r+3)*x^2 + (r-1)^3*x^3). - Paul Barry, Jun 04 2005 [corrected by Jason Yuen, Jan 20 2025]
a(n) is the number of binary strings of length 2n with an even number of 0's (and hence an even number of 1's). - Toby Gottfried, Mar 22 2010
Number of compositions of n where there are 2 sorts of part 1, 4 sorts of part 2, 8 sorts of part 3, ..., 2^k sorts of part k. - Joerg Arndt, Aug 04 2014
a(n) is also the number of permutations simultaneously avoiding 231 and 321 in the classical sense which can be realized as labels on an increasing strict binary tree with 2n-1 nodes. See A245904 for more information on increasing strict binary trees. - Manda Riehl Aug 07 2014
INVERT transform of powers of 2 (A000079). - Alois P. Heinz, Feb 11 2021
a(n) is the number of elements in an n-interval of the binomial poset of even-sized subsets of positive integers, cf. Stanley reference and second formula by Paul Barry. Each multichain 0 = x_0 <= x_1 <= x_2 = 1 in such an n-interval corresponds to a closed walk described above by Paul Barry. More generally, each multichain 0 = x_0 <= x_1 <= ... <= x_k = 1 corresponds to a closed walk of length 2n on the k-dimensional hypercube, cf. A054879, A092812, A121822. - Geoffrey Critzer, Apr 21 2023

Examples

			G.f. = 1 + 2*x + 8*x^2 + 32*x^3 + 128*x^4 + 512*x^5 + 2048*x^6 + 8192*x^7 + ...
		

References

  • Richard P. Stanley, Enumerative Combinatorics, Vol 1, second edition, Example 3.18.3-f, page 323.

Crossrefs

Row sums of triangle A136158.
Cf. A000079, A081295, A009117, A016742, A054879, A092812, A121822. Essentially the same as A004171.

Programs

  • Magma
    [(4^n+0^n)/2: n in [0..30]]; // Vincenzo Librandi, Jul 26 2011
    
  • Magma
    R:=PowerSeriesRing(Rationals(), 25); Coefficients(R!( (1-2*x)/(1-4*x))); // Marius A. Burtea, Jan 20 2020
    
  • Maple
    a:= n-> 2^max(0, (2*n-1)):
    seq(a(n), n=0..30);  # Alois P. Heinz, Jul 20 2017
  • Mathematica
    CoefficientList[Series[(1-2x)/(1-4x),{x,0,40}],x] (* or *)
    Join[{1}, NestList[4 # &, 2, 40]] (* Harvey P. Dale, Apr 22 2011 *)
  • PARI
    a(n)=1<Charles R Greathouse IV, Jul 25 2011
    
  • PARI
    x='x+O('x^100); Vec((1-2*x)/(1-4*x)) \\ Altug Alkan, Dec 21 2015

Formula

G.f.: (1-2*x)/(1-4*x).
a(n) = 4*a(n-1) n > 1, with a(0)=1, a(1)=2.
a(n) = (4^n+0^n)/2 (i.e., 1 followed by 4^n/2, n > 0).
E.g.f.: exp(2*x)*cosh(2*x) = (exp(4*x)+exp(0))/2. - Paul Barry, May 10 2003
a(n) = Sum_{k=0..n} C(2*n, 2*k). - Paul Barry, May 20 2003
a(n) = A001045(2*n+1) - A001045(2*n-1) + 0^n/2. - Paul Barry, Mar 10 2004
a(n) = 2^n*A011782(n); a(n) = gcd(A011782(2n), A011782(2n+1)). - Paul Barry, Jan 12 2005
a(n) = Sum_{k=0..n} Sum_{j=0..n} C(2*(n-k), j)*C(2*k, j). - Paul Barry, Jun 04 2005
a(n) = Sum_{k=0..n} A038763(n,k). - Philippe Deléham, Sep 22 2006
a(n) = Integral_{x=0..4} p(n,x)^2/(Pi*sqrt(x(4-x))) dx, where p(n,x) is the sequence of orthogonal polynomials defined by C(2*n,n): p(n,x) = (2*x-4)*p(n-1,x) - 4*p(n-2,x), with p(0,x)=1, p(1,x)=-2+x. - Paul Barry, Mar 01 2007
a(n) = ((2+sqrt(4))^n + (2-sqrt(4))^n)/2. - Al Hakanson (hawkuu(AT)gmail.com), Nov 22 2008
a(n) = A000079(n) * A011782(n). - Philippe Deléham, Dec 01 2008
a(n) = A004171(n-1) = A028403(n) - A000079(n) for n >= 1. - Jaroslav Krizek, Jul 27 2009
a(n) = Sum_{k=0..n} A201730(n,k)*3^k. - Philippe Deléham, Dec 06 2011
a(n) = Sum_{k=0..n} A134309(n,k)*2^k = Sum_{k=0..n} A055372(n,k). - Philippe Deléham, Feb 04 2012
G.f.: Q(0), where Q(k) = 1 - 2*x/(1 - 2/(2 - 1/Q(k+1))); (continued fraction). - Sergei N. Gladkovskii, Apr 29 2013
E.g.f.: 1/2 + exp(4*x)/2 = (Q(0)+1)/2, where Q(k) = 1 + 4*x/(2*k+1 - 2*x*(2*k+1)/(2*x + (k+1)/Q(k+1))); (continued fraction). - Sergei N. Gladkovskii, Apr 29 2013
a(n) = ceiling( 2^(2n-1) ). - Wesley Ivan Hurt, Jun 30 2013
G.f.: 1 + 2*x/(1 + x)*( 1 + 5*x/(1 + 4*x)*( 1 + 8*x/(1 + 7*x)*( 1 + 11*x/(1 + 10*x)*( 1 + ... )))). - Peter Bala, May 27 2017
Sum_{n>=0} 1/a(n) = 5/3. - Amiram Eldar, Aug 18 2022
Sum_{n>=0} a(n)*x^n/A000680(n) = E(x)^2 where E(x) = Sum_{n>=0} x^n/A000680(n). - Geoffrey Critzer, Apr 21 2023

A193722 Triangular array: the fusion of (x+1)^n and (x+2)^n; see Comments for the definition of fusion.

Original entry on oeis.org

1, 1, 2, 1, 5, 6, 1, 8, 21, 18, 1, 11, 45, 81, 54, 1, 14, 78, 216, 297, 162, 1, 17, 120, 450, 945, 1053, 486, 1, 20, 171, 810, 2295, 3888, 3645, 1458, 1, 23, 231, 1323, 4725, 10773, 15309, 12393, 4374, 1, 26, 300, 2016, 8694, 24948, 47628, 58320, 41553, 13122
Offset: 0

Views

Author

Clark Kimberling, Aug 04 2011

Keywords

Comments

Suppose that p = p(n)*x^n + p(n-1)*x^(n-1) + ... + p(1)*x + p(0) is a polynomial and that Q is a sequence of polynomials
...
q(k,x)=t(k,0)*x^k+t(k,1)*x^(k-1)+...+t(k,k-1)*x+t(k,k),
...
for k=0,1,2,... The Q-upstep of p is the polynomial given by
...
U(p) = p(n)*q(n+1,x) + p(n-1)*q(n,x) + ... + p(0)*q(1,x); note that q(0,x) does not appear.
...
Now suppose that P=(p(n,x)) and Q=(q(n,x)) are sequences of polynomials, where n indicates degree. The fusion of P by Q, denoted by P**Q, is introduced here as the sequence W=(w(n,x)) of polynomials defined by w(0,x)=1 and w(n+1,x)=U(p(n,x)).
...
Strictly speaking, ** is an operation on sequences of polynomials. However, if P and Q are regarded as numerical triangles (e.g., coefficients of polynomials), then ** can be regarded as an operation on numerical triangles. In this case, row (n+1) of P**Q, for n >= 0, is given by the matrix product P(n)*QQ(n), where P(n)=(p(n,n)...p(n,n-1)......p(n,1), p(n,0)) and QQ(n) is the (n+1)-by-(n+2) matrix given by
...
q(n+1,0) .. q(n+1,1)........... q(n+1,n) .... q(n+1,n+1)
0 ......... q(n,0)............. q(n,n-1) .... q(n,n)
0 ......... 0.................. q(n-1,n-2) .. q(n-1,n-1)
...
0 ......... 0.................. q(2,1) ...... q(2,2)
0 ......... 0 ................. q(1,0) ...... q(1,1);
here, the polynomial q(k,x) is taken to be
q(k,0)*x^k + q(k,1)x^(k-1) + ... + q(k,k)*x+q(k,k-1); i.e., "q" is used instead of "t".
...
If s=(s(1),s(2),s(3),...) is a sequence, then the infinite square matrix indicated by
s(1)...s(2)...s(3)...s(4)...s(5)...
..0....s(1)...s(2)...s(3)...s(4)...
..0......0....s(1)...s(2)...s(3)...
..0......0.......0...s(1)...s(2)...
is the self-fusion matrix of s; e.g., A202453, A202670.
...
Example: let p(n,x)=(x+1)^n and q(n,x)=(x+2)^n. Then
...
w(0,x) = 1 by definition of W
w(1,x) = U(p(0,x)) = U(1) = p(0,0)*q(1,x) = 1*(x+2) = x+2;
w(2,x) = U(p(1,x)) = U(x+1) = q(2,x) + q(1,x) = x^2+5x+6;
w(3,x) = U(p(2,x)) = U(x^2+2x+1) = q(3,x) + 2q(2,x) + q(1,x) = x^3+8x^2+21x+18;
...
From these first 4 polynomials in the sequence P**Q, we can write the first 4 rows of P**Q when P, Q, and P**Q are regarded as triangles:
1;
1, 2;
1, 5, 6;
1, 8, 21, 18;
...
Generally, if P and Q are the sequences given by p(n,x)=(ax+b)^n and q(n,x)=(cx+d)^n, then P**Q is given by (cx+d)(bcx+a+bd)^n.
...
In the following examples, r(P**Q) is the mirror of P**Q, obtained by reversing the rows of P**Q.
...
..P...........Q.........P**Q.......r(P**Q)
(x+1)^n.....(x+1)^n.....A081277....A118800 (unsigned)
(x+1)^n.....(x+2)^n.....A193722....A193723
(x+2)^n.....(x+1)^n.....A193724....A193725
(x+2)^n.....(x+2)^n.....A193726....A193727
(x+2)^n.....(2x+1)^n....A193728....A193729
(2x+1)^n....(x+1)^n.....A038763....A136158
(2x+1)^n....(2x+1)^n....A193730....A193731
(2x+1)^n,...(x+1)^n.....A193734....A193735
...
Continuing, let u denote the polynomial x^n+x^(n-1)+...+x+1, and let Fibo[n,x] denote the n-th Fibonacci polynomial.
...
P.............Q.........P**Q.......r(P**Q)
Fib[n+1,x]...(x+1)^n....A193736....A193737
u.............u.........A193738....A193739
u**u..........u**u......A193740....A193741
...
Regarding A193722:
col 1 ..... A000012
col 2 ..... A016789
col 3 ..... A081266
w(n,n) .... A025192
w(n,n-1) .. A081038
...
Associated with "upstep" as defined above is "downstep" defined at A193842 in connection with fission.

Examples

			First six rows:
  1;
  1,   2;
  1,   5,   6;
  1,   8,  21,  18;
  1,  11,  45,  81,  54;
  1,  14,  78, 216, 297, 162;
		

Crossrefs

Programs

  • GAP
    Flat(List([0..10], n-> List([0..n], k-> 3^(k-1)*( Binomial(n-1,k) + 2*Binomial(n,k) ) ))); # G. C. Greubel, Feb 18 2020
  • Magma
    [3^(k-1)*( Binomial(n-1,k) + 2*Binomial(n,k) ): k in [0..n], n in [0..10]]; // G. C. Greubel, Feb 18 2020
    
  • Maple
    fusion := proc(p, q, n) local d, k;
    p(n-1,0)*q(n,x)+add(coeff(p(n-1,x),x^k)*q(n-k,x), k=1..n-1);
    [1,seq(coeff(%,x,n-1-k), k=0..n-1)] end:
    p := (n, x) -> (x + 1)^n; q := (n, x) -> (x + 2)^n;
    A193722_row := n -> fusion(p, q, n);
    for n from 0 to 5 do A193722_row(n) od; # Peter Luschny, Jul 24 2014
  • Mathematica
    (* First program *)
    z = 9; a = 1; b = 1; c = 1; d = 2;
    p[n_, x_] := (a*x + b)^n ; q[n_, x_] := (c*x + d)^n
    t[n_, k_] := Coefficient[p[n, x], x^k]; t[n_, 0] := p[n, x] /. x -> 0;
    w[n_, x_] := Sum[t[n, k]*q[n + 1 - k, x], {k, 0, n}]; w[-1, x_] := 1
    g[n_] := CoefficientList[w[n, x], {x}]
    TableForm[Table[Reverse[g[n]], {n, -1, z}]]
    Flatten[Table[Reverse[g[n]], {n, -1, z}]] (* A193722 *)
    TableForm[Table[g[n], {n, -1, z}]]
    Flatten[Table[g[n], {n, -1, z}]] (* A193723 *)
    (* Second program *)
    Table[3^(k-1)*(Binomial[n-1,k] +2*Binomial[n,k]), {n,0,10}, {k,0,n}]//Flatten (* G. C. Greubel, Feb 18 2020 *)
  • PARI
    T(n,k) = 3^(k-1)*(binomial(n-1,k) +2*binomial(n,k)); \\ G. C. Greubel, Feb 18 2020
    
  • Sage
    def fusion(p, q, n):
        F = p(n-1,0)*q(n,x)+add(expand(p(n-1,x)).coefficient(x,k)*q(n-k,x) for k in (1..n-1))
        return [1]+[expand(F).coefficient(x,n-1-k) for k in (0..n-1)]
    A193842_row = lambda k: fusion(lambda n,x: (x+1)^n, lambda n,x: (x+2)^n, k)
    for n in range(7): A193842_row(n) # Peter Luschny, Jul 24 2014
    

Formula

Triangle T(n,k), read by rows, given by [1,0,0,0,0,0,0,0,...] DELTA [2,1,0,0,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938. - Philippe Deléham, Oct 04 2011
T(n,k) = 3*T(n-1,k-1) + T(n-1,k) with T(0,0)=T(1,0)=1 and T(1,1)=2. - Philippe Deléham, Oct 05 2011
T(n, k) = 3^(k-1)*( binomial(n-1,k) + 2*binomial(n,k) ). - G. C. Greubel, Feb 18 2020

A081277 Square array of unsigned coefficients of Chebyshev polynomials of the first kind.

Original entry on oeis.org

1, 1, 1, 1, 3, 2, 1, 5, 8, 4, 1, 7, 18, 20, 8, 1, 9, 32, 56, 48, 16, 1, 11, 50, 120, 160, 112, 32, 1, 13, 72, 220, 400, 432, 256, 64, 1, 15, 98, 364, 840, 1232, 1120, 576, 128, 1, 17, 128, 560, 1568, 2912, 3584, 2816, 1280, 256, 1, 19, 162, 816, 2688, 6048, 9408, 9984, 6912
Offset: 0

Views

Author

Paul Barry, Mar 16 2003

Keywords

Comments

Formatted as a triangular array, this is [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...] DELTA [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...] (see construction in A084938 ). - Philippe Deléham, Aug 09 2005
Antidiagonal sums are in A025192. - Philippe Deléham, Dec 04 2006
Binomial transform of n-th row of the triangle (followed by zeros) = n-th row of the A142978 array and n-th column of triangle A104698. - Gary W. Adamson, Jul 17 2008
When formatted as a triangle, A038763=fusion of polynomial sequences (x+1)^n and (x+1)^n; see A193722 for the definition of fusion of two polynomial sequences or triangular arrays. Row n of A038763, as a triangle, consists of coefficients of the product (x+1)*(x+2)^n. - Clark Kimberling, Aug 04 2011

Examples

			Rows begin
  1, 1,  2,   4,   8, ...
  1, 3,  8,  20,  48, ...
  1, 5, 18,  56, 160, ...
  1, 7, 32, 120, 400, ...
  1, 9, 50, 220, 840, ...
  ...
As a triangle:
  1;
  1,  1;
  1,  3,  2;
  1,  5,  8,  4;
  1,  7, 18, 20,  8;
		

Crossrefs

Cf. A079628.
Cf. A167580 and A167591. - Johannes W. Meijer, Nov 23 2009
Cf. A053120 (antidiagonals give signed version) and A124182 (skewed version). - Mathias Zechmeister, Jul 26 2022

Programs

  • Mathematica
    (* Program generates triangle A081277 as the self-fusion of Pascal's triangle *)
    z = 8; a = 1; b = 1; c = 1; d = 1;
    p[n_, x_] := (a*x + b)^n ; q[n_, x_] := (c*x + d)^n
    t[n_, k_] := Coefficient[p[n, x], x^k]; t[n_, 0] := p[n, x] /. x -> 0;
    w[n_, x_] := Sum[t[n, k]*q[n + 1 - k, x], {k, 0, n}]; w[-1, x_] := 1
    g[n_] := CoefficientList[w[n, x], {x}]
    TableForm[Table[Reverse[g[n]], {n, -1, z}]]
    Flatten[Table[Reverse[g[n]], {n, -1, z}]] (* A081277 *)
    TableForm[Table[g[n], {n, -1, z}]]
    Flatten[Table[g[n], {n, -1, z}]] (* abs val of A118800 *)
    Factor[w[6, x]]
    (* Clark Kimberling, Aug 04 2011 *)

Formula

T(n, k) = (n+2k)*binomial(n+k-1, k-1)*2^(n-1)/k, k > 0.
T(n, 0) defined by g.f. (1-x)/(1-2x). Other rows are defined by (1-x)/(1-2x)^n.
T(n, 0) = 0 if n < 0, T(0, k) = 0 if k < 0, T(0, 0) = T(1, 0) = 1, T(n, k) = T(n, k-1) + 2*T(n-1, k); for example, 160 = 48 + 2*56 for n = 4 and k = 2. -Philippe Deléham, Aug 12 2005
G.f. of the triangular interpretation: (-1+x*y)/(-1+2*x*y+x). - R. J. Mathar, Aug 11 2015

A136158 Triangle whose rows are generated by A136157^n * [1, 1, 0, 0, 0, ...].

Original entry on oeis.org

1, 1, 1, 3, 4, 1, 9, 15, 7, 1, 27, 54, 36, 10, 1, 81, 189, 162, 66, 13, 1, 243, 648, 675, 360, 105, 16, 1, 729, 2187, 2673, 1755, 675, 153, 19, 1, 2187, 7290, 10206, 7938, 3780, 1134, 210, 22, 1, 6561, 24057, 37908, 34020, 19278, 7182, 1764, 276, 25, 1
Offset: 0

Views

Author

Gary W. Adamson, Dec 16 2007

Keywords

Comments

Triangle T(n,k), 0 <= k <= n, read by rows given by [1,2,0,0,0,0,0,0,0,0,...] DELTA [1,0,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938. - Philippe Deléham, Dec 17 2007
Equals A080419 when first column is removed (here). - Georg Fischer, Jul 25 2023

Examples

			First few rows of the triangle:
    1;
    1,    1;
    3,    4,    1;
    9,   15,    7,    1;
   27,   54,   36,   10,   1;
   81,  189,  162,   66,  13,   1;
  243,  648,  675,  360, 105,  16,  1;
  729, 2187, 2673, 1755, 675, 153, 19, 1;
  ...
		

Crossrefs

Programs

  • Magma
    A136158:= func< n,k | n eq 0 select 1 else 3^(n-k-1)*(n+2*k)* Binomial(n, k)/n >;
    [A136158(n, k): k in [0..n], n in [0..12]]; // G. C. Greubel, Dec 22 2023; Dec 27 2023
    
  • Mathematica
    A136158[n_,k_]:= If[n==0, 1, 3^(n-k-1)*(n+2*k)*Binomial[n,k]/n];
    Table[A136158[n, k], {n,0,12}, {k,0,n}]//Flatten (* G. C. Greubel, Dec 22 2023; Dec 27 2023 *)
  • PARI
    T(n,k) = if ((n<0) || (k<0), return(0)); if ((n==0) && (k==0), return(1)); if (n==1, if (k<=1, return(1))); 3*T(n-1,k) + T(n-1,k-1);
    tabl(nn) = for (n=0, nn, for (k=0, n, print1(T(n, k), ", ")); print); \\ Michel Marcus, Jul 25 2023
    
  • SageMath
    def A136158(n,k): return 1 if (n==0) else 3^(n-k-1)*((n+2*k)/n)*binomial(n, k)
    flatten([[A136158(n, k) for k in range(n+1)] for n in range(13)]) # G. C. Greubel, Dec 22 2023; Dec 27 2023

Formula

Sum_{k=0..n} T(n, k) = A081294(n).
Given A136157 = M, an infinite lower triangular bidiagonal matrix with (3, 3, 3, ...) in the main diagonal, (1, 1, 1, ...) in the subdiagonal and the rest zeros; rows of A136157 are generated from M^n * [1, 1, 0, 0, 0, ...], given a(0) = 1.
T(n, k) = A038763(n,n-k). - Philippe Deléham, Dec 17 2007
T(n, k) = 3*T(n-1, k) + T(n-1, k-1) for n > 1, T(0,0) = T(1,1) = T(1,0) = 1. - Philippe Deléham, Oct 30 2013
Sum_{k=0..n} T(n, k)*x^k = (1+x)*(3+x)^(n-1), n >= 1. - Philippe Deléham, Oct 30 2013
G.f.: (1-2*x)/(1-3*x-x*y). - R. J. Mathar, Aug 11 2015
From G. C. Greubel, Dec 22 2023: (Start)
T(n, 0) = A133494(n).
T(n, 1) = A006234(n+2).
T(n, 2) = A080420(n-2).
T(n, 3) = A080421(n-3).
T(n, 4) = A080422(n-4).
T(n, 5) = A080423(n-5).
T(n, n) = A000012(n).
T(n, n-1) = A016777(n-1).
T(n, n-2) = A062741(n-1).
Sum_{k=0..n} (-1)^k * T(n, k) = 0^n = A000007(n).
Sum_{k=0..floor(n/2)} T(n-k, k) = A003688(n).
Sum_{k=0..floor(n/2)} (-1)^k * T(n-k, k) = A001519(n). (End)
From G. C. Greubel, Dec 27 2023: (Start)
T(n, k) = 3^(n-k-1)*(n+2*k)*binomial(n,k)/n, for n > 0, with T(0, 0) = 1.
T(n, k) = (-1)^k * A164948(n, k). (End)

Extensions

More terms from Philippe Deléham, Dec 17 2007

A100175 Structured triakis tetrahedral numbers (vertex structure 4).

Original entry on oeis.org

1, 8, 30, 76, 155, 276, 448, 680, 981, 1360, 1826, 2388, 3055, 3836, 4740, 5776, 6953, 8280, 9766, 11420, 13251, 15268, 17480, 19896, 22525, 25376, 28458, 31780, 35351, 39180, 43276, 47648, 52305, 57256, 62510, 68076, 73963, 80180, 86736, 93640, 100901, 108528
Offset: 1

Views

Author

James A. Record (james.record(AT)gmail.com), Nov 07 2004

Keywords

Comments

Equals binomial transform of [1, 7, 15, 9, 0, 0, 0, ...] where (1, 7, 15, 9) = row 3 of triangle A038763. - Gary W. Adamson, Jul 19 2008
Equals convolution square of 1, 4, 7, 10, 13, 16, 19, ..., A016777. - Gary W. Adamson, Jul 28 2009

Crossrefs

Cf. A000578 (alternate vertex), A100145 for more on structured numbers.
Cf. A038763.

Programs

  • Magma
    [(3*n^3-3*n^2+2*n)/2: n in [1..50] ]; // Vincenzo Librandi, Aug 02 2011
  • Mathematica
    CoefficientList[Series[x (2x+1)^2/((x-1)^4),{x,0,50}],x] (* or *) LinearRecurrence[{4,-6,4,-1},{0,1,8,30},50] (* Harvey P. Dale, Mar 18 2023 *)

Formula

a(n) = (3*n^3 - 3*n^2 + 2*n)/2.
G.f.: x*(2*x+1)^2 / ( (x-1)^4 ).

A024462 Triangle T(n,k) read by rows, arising in enumeration of catafusenes.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 5, 7, 3, 1, 8, 22, 24, 9, 1, 11, 46, 90, 81, 27, 1, 14, 79, 228, 351, 270, 81, 1, 17, 121, 465, 1035, 1323, 891, 243, 1, 20, 172, 828, 2430, 4428, 4860, 2916, 729, 1, 23, 232, 1344, 4914, 11718, 18144, 17496, 9477, 2187, 1, 26, 301, 2040, 8946, 26460, 53298, 71928, 61965, 30618, 6561
Offset: 0

Views

Author

N. J. A. Sloane, May 03 2000

Keywords

Examples

			Triangle begins (rows indexed by n >= 0 and columns by k >= 0):
   1;
   1,  1;
   1,  2,   1;
   1,  5,   7,   3;
   1,  8,  22,  24,    9;
   1, 11,  46,  90,   81,   27;
   1, 14,  79, 228,  351,  270,   81;
   1, 17, 121, 465, 1035, 1323,  891, 243;
   1, 20, 172, 828, 2430, 4428, 4860, 2916, 729;
   ...
		

Crossrefs

Cf. A038763.
Left-edge columns (essentially) include A016789 and A038764. Right-edge diagonal columns (essentially) include A000244, A038765, and A081892. Row sums are (essentially) A000302.

Programs

  • Maple
    ## The following Maple program gives the Taylor expansion of the bivariate g.f. of T(n,k) in powers of x:
    T := proc (x, y) 1+x*(y+1)+x^2*(y+1)^2/(1-x-3*y*x) end proc;
    expand(taylor(T(x, y), x = 0, 20)); ## Petros Hadjicostas, May 27 2019
  • Mathematica
    T[n_, 0]:= 1; T[n_, k_]:= If[k<0 || k>n, 0, If[n==1 && k==1, 1, If[n==2 && k==1, 2, If[k==n && n>=2, 3^(n-2), 3*T[n-1, k-1] + T[n-1, k]]]]];
    Table[T[n, k], {n, 0, 10}, {k, 0, n}]//Flatten (* G. C. Greubel, May 30 2019 *)
  • PARI
    T(n,k)=if(n<0||k<0||k>n,0,if(n<3,[[1],[1,1],[1,2,1]][n+1][k+1],3*T(n-1,k-1)+T(n-1,k))) \\ Ralf Stephan, Jan 25 2005
    
  • Sage
    def T(n, k):
        if (k<0 and k>n): return 0
        elif (k==0): return 1
        elif (n==k==1): return 1
        elif (n==2 and k==1): return 2
        elif (n>=2 and k==n): return 3^(n-2)
        else: return 3*T(n-1, k-1) + T(n-1, k)
    [[T(n, k) for k in (0..n)] for n in (0..12)] # G. C. Greubel, May 30 2019

Formula

T(n, k) = 3 * T(n-1, k-1) + T(n-1, k), starting with [1], [1, 1], [1, 2, 1].
From Petros Hadjicostas, May 27 2019: (Start)
T(n, k) = (n-2)!/(k! * (n-k)!) * (9*n*(n-1) - 4*k*(3*n-k-2)) * 3^(k-2) for n >= max(k, 2) and k >= 0. (See the top formula of p. 767 in Cyvin et al. (1996).)
Bivariate g.f.: Sum_{n, k >= 0} T(n, k) * x^n * y^k = 1 + x * (1 + y) + x^2 * (1 + y)^2/(1 - x - 3 * x * y).
(End)

Extensions

More terms from James Sellers, May 03 2000
Edited by Ralf Stephan, Jan 25 2005

A102662 Triangle read by rows: T(1,1)=1,T(2,1)=1,T(2,2)=3, T(k-1,r-1)+T(k-1,r)+T(k-2,r-1).

Original entry on oeis.org

1, 1, 3, 1, 5, 3, 1, 7, 11, 3, 1, 9, 23, 17, 3, 1, 11, 39, 51, 23, 3, 1, 13, 59, 113, 91, 29, 3, 1, 15, 83, 211, 255, 143, 35, 3, 1, 17, 111, 353, 579, 489, 207, 41, 3, 1, 19, 143, 547, 1143, 1323, 839, 283, 47, 3, 1, 21, 179, 801, 2043, 3045, 2651, 1329, 371, 53, 3, 1, 23, 219
Offset: 1

Views

Author

Lambert Klasen (lambert.klasen(AT)gmx.net) and Gary W. Adamson, Feb 03 2005

Keywords

Comments

Generalization of A008288 (use initial terms 1,1,3). Triangle seen as lower triangular matrix: The absolute values of the coefficients of the characteristic polynomials of the n X n matrix are the (n+1)th row of A038763. Row sums give A048654.

Examples

			Triangle begins:
  1
  1 3
  1 5 3
  1 7 11 3
  1 9 23 17 3
		

References

  • Boris A. Bondarenko, Generalized Pascal Triangles and Pyramids (in Russian), FAN, Tashkent, 1990, ISBN 5-648-00738-8.

Crossrefs

Programs

  • Haskell
    a102662 n k = a102662_tabl !! n !! k
    a102662_row n = a102662_tabl !! n
    a102662_tabl = [1] : [1,3] : f [1] [1,3] where
       f xs ys = zs : f ys zs where
         zs = zipWith (+) ([0] ++ xs ++ [0]) $
                          zipWith (+) ([0] ++ ys) (ys ++ [0])
    -- Reinhard Zumkeller, Feb 23 2012
  • Mathematica
    u[1, x_] := 1; v[1, x_] := 1; z = 16;
    u[n_, x_] := u[n - 1, x] + v[n - 1, x]
    v[n_, x_] := 2 x*u[n - 1, x] + x*v[n - 1, x] + 1
    Table[Factor[u[n, x]], {n, 1, z}]
    Table[Factor[v[n, x]], {n, 1, z}]
    cu = Table[CoefficientList[u[n, x], x], {n, 1, z}];
    TableForm[cu]
    Flatten[%]    (* A207624 *)
    Table[Expand[v[n, x]], {n, 1, z}]
    cv = Table[CoefficientList[v[n, x], x], {n, 1, z}];
    TableForm[cv]
    Flatten[%]    (* A102662 *)
    (* Clark Kimberling, Feb 20 2012 *)
  • PARI
    T(k,r)=if(r>k,0,if(k==1,1,if(k==2,if(r==1,1,3),if(r==1,1,if(r==k,3,T(k-1,r-1)+T(k-1,r)+T(k-2,r-1))))))
    BM(n) = M=matrix(n,n);for(i=1,n, for(j=1,n,M[i,j]=T(i,j)));M
    M=BM(10)
    for(i=1,10,s=0;for(j=1,i,s+=M[i,j]);print1(s,","))
    

Formula

From Clark Kimberling, Feb 20 2012: (Start)
A102662=v and A207624=u, defined together as follows:
u(n,x)=u(n-1,x)+v(n-1,x), v(n,x)=2*x*u(n-1,x)+x*v(n-1,x)+1,
where u(1,x)=1, v(1,x)=1; see the Mathematica section. (End)

A164948 Fibonacci matrix read by antidiagonals. (Inverse of A136158.)

Original entry on oeis.org

1, 1, -1, 3, -4, 1, 9, -15, 7, -1, 27, -54, 36, -10, 1, 81, -189, 162, -66, 13, -1, 243, -648, 675, -360, 105, -16, 1, 729, -2187, 2673, -1755, 675, -153, 19, -1, 2187, -7290, 10206, -7938, 3780, -1134, 210, -22, 1, 6561, -24057, 37908, -34020, 19278, -7182, 1764, -276, 25, -1, 19683, -78732, 137781, -139968, 91854, -40824, 12474, -2592, 351, -28, 1
Offset: 0

Views

Author

Mark Dols, Sep 01 2009

Keywords

Comments

Triangle, read by rows, given by [1,2,0,0,0,0,0,0,0,...] DELTA [-1,0,0,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938. - Philippe Deléham, Sep 02 2009

Examples

			As triangle:
    1;
    1,   -1;
    3,   -4,    1;
    9,  -15,    7,   -1;
   27,  -54,   36,  -10,    1;
   81, -189,  162,  -66,   13,   -1;
  243, -648,  675, -360,  105,  -16,    1;
		

Crossrefs

Programs

  • Magma
    A164948:= func< n,k | n eq 0 select 1 else (-1)^k*3^(n-k-1)*(n+2*k)*Binomial(n,k)/n >;
    [A164948(n, k): k in [0..n], n in [0..12]]; // G. C. Greubel, Dec 26 2023
    
  • Mathematica
    A164948[n_,k_]:= If[n==0,1,(-1)^k*3^(n-k-1)*(n+2*k)*Binomial[n,k]/n];
    Table[A164948[n,k], {n,0,12}, {k,0,n}]//Flatten (* G. C. Greubel, Dec 26 2023 *)
  • SageMath
    def A164948(n,k): return 1 if (n==0) else (-1)^k*3^(n-k-1)*((n+2*k)/n)*binomial(n, k)
    flatten([[A164948(n, k) for k in range(n+1)] for n in range(13)]) # G. C. Greubel, Dec 26 2023

Formula

Sum_{k=0..n} T(n, k) = A000007(n).
Sum_{k=0..floor(n/2)} T(n-k, k) = A001519(n).
From Philippe Deléham, Oct 09 2011: (Start)
T(n,k) = 3*T(n-1,k) - T(n-1,k-1) with T(0,0)=1, T(1,0)=1, T(1,1)=-1.
Row n: Expansion of (1-x)*(3-x)^(n-1), n>0. (End)
G.f.: (1-2*x)/(1-3*x+x*y). - R. J. Mathar, Aug 12 2015
From G. C. Greubel, Dec 26 2023: (Start)
T(n, k) = (-1)^k * A136158(n, k).
T(n, k) = (-1)^k*3^(n-k-1)*((n+2*k)/n)*binomial(n, k), for n > 0, with T(0, 0) = 1.
T(n, 0) = A133494(n).
T(n, 1) = -A006234(n+2), n >= 1.
T(n, 2) = A080420(n-2), n >= 2.
T(n, 3) = -A080421(n-3), n >= 3.
T(2*n, n) = 4*(-1)^n*A098399(n-1) - (1/3)*[n=0].
T(n, n-4) = 27*(-1)^n*A001296(n-3), n >= 4.
T(n, n-3) = 9*(-1)^(n-1)*A002411(n-2), n >= 3.
T(n, n-2) = 3*(-1)^n*A000326(n-1) = (-1)^n*A062741(n-1), n >= 2.
T(n, n-1) = (-1)^(n-1)*A016777(n-1), n >= 1.
T(n, n) = (-1)^n.
Sum_{k=0..n} (-1)^k*T(n, k) = A081294(n).
Sum_{k=0..n} (-1)^k*T(n-k, k) = A003688(n). (End)

Extensions

More terms from Philippe Deléham, Oct 09 2011
Showing 1-8 of 8 results.