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.

A109449 Triangle read by rows, T(n,k) = binomial(n,k)*A000111(n-k), 0 <= k <= n.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 2, 3, 3, 1, 5, 8, 6, 4, 1, 16, 25, 20, 10, 5, 1, 61, 96, 75, 40, 15, 6, 1, 272, 427, 336, 175, 70, 21, 7, 1, 1385, 2176, 1708, 896, 350, 112, 28, 8, 1, 7936, 12465, 9792, 5124, 2016, 630, 168, 36, 9, 1, 50521, 79360, 62325, 32640, 12810, 4032, 1050, 240, 45, 10, 1
Offset: 0

Views

Author

Philippe Deléham, Aug 27 2005

Keywords

Comments

The boustrophedon transform {t} of a sequence {s} is given by t_n = Sum_{k=0..n} T(n,k)*s(k). Triangle may be called the boustrophedon triangle.
The 'signed version' of the triangle is the exponential Riordan array [sech(x) + tanh(x), x]. - Peter Luschny, Jan 24 2009
Up to signs, the matrix is self-inverse: T^(-1)(n,k) = (-1)^(n+k)*T(n,k). - R. J. Mathar, Mar 15 2013

Examples

			Triangle starts:
      1;
      1,     1;
      1,     2,     1;
      2,     3,     3,     1;
      5,     8,     6,     4,     1;
     16,    25,    20,    10,     5,    1;
     61,    96,    75,    40,    15,    6,    1;
    272,   427,   336,   175,    70,   21,    7,   1;
   1385,  2176,  1708,   896,   350,  112,   28,   8,  1;
   7936, 12465,  9792,  5124,  2016,  630,  168,  36,  9,  1;
  50521, 79360, 62325, 32640, 12810, 4032, 1050, 240, 45, 10, 1; ...
		

Crossrefs

Programs

  • Haskell
    a109449 n k = a109449_row n !! k
    a109449_row n = zipWith (*)
                    (a007318_row n) (reverse $ take (n + 1) a000111_list)
    a109449_tabl = map a109449_row [0..]
    -- Reinhard Zumkeller, Nov 02 2013
    
  • Magma
    f:= func< n,x | Evaluate(BernoulliPolynomial(n+1), x) >;
    A109449:= func< n,k | k eq n select 1 else 2^(2*n-2*k+1)*Binomial(n,k)*Abs(f(n-k,3/4) - f(n-k,1/4) + f(n-k,1) - f(n-k,1/2))/(n-k+1) >;
    [A109449(n,k): k in [0..n], n in [0..13]]; // G. C. Greubel, Jul 10 2025
  • Maple
    From Peter Luschny, Jul 10 2009, edited Jun 06 2022: (Start)
    A109449 := (n,k) -> binomial(n, k)*A000111(n-k):
    seq(print(seq(A109449(n, k), k=0..n)), n=0..9);
    B109449 := (n,k) -> 2^(n-k)*binomial(n, k)*abs(euler(n-k, 1/2)+euler(n-k, 1)) -`if`(n-k=0, 1, 0): seq(print(seq(B109449(n, k), k=0..n)), n=0..9);
    R109449 := proc(n, k) option remember; if k = 0 then A000111(n) else R109449(n-1, k-1)*n/k fi end: seq(print(seq(R109449(n, k), k=0..n)), n=0..9);
    E109449 := proc(n) add(binomial(n, k)*euler(k)*((x+1)^(n-k)+ x^(n-k)), k=0..n) -x^n end: seq(print(seq(abs(coeff(E109449(n), x, k)), k=0..n)), n=0..9);
    sigma := n -> ifelse(n=0, 1, [1,1,0,-1,-1,-1,0,1][n mod 8 + 1]/2^iquo(n-1,2)-1):
    L109449 := proc(n) add(add((-1)^v*binomial(k, v)*(x+v+1)^n*sigma(k), v=0..k), k=0..n) end: seq(print(seq(abs(coeff(L109449(n), x, k)), k=0..n)), n=0..9);
    X109449 := n -> n!*coeff(series(exp(x*t)*(sech(t)+tanh(t)), t, 24), t, n): seq(print(seq(abs(coeff(X109449(n), x, k)), k=0..n)), n=0..9);
    (End)
  • Mathematica
    lim = 10; s = CoefficientList[Series[(1 + Sin[x])/Cos[x], {x, 0, lim}], x] Table[k!, {k, 0, lim}]; Table[Binomial[n, k] s[[n - k + 1]], {n, 0, lim}, {k, 0, n}] // Flatten (* Michael De Vlieger, Dec 24 2015, after Jean-François Alcover at A000111 *)
    T[n_, k_] := (n!/k!) SeriesCoefficient[(1 + Sin[x])/Cos[x], {x, 0, n - k}]; Table[T[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jun 27 2019 *)
  • PARI
    A109449(n,k)=binomial(n,k)*if(n>k,2*abs(polylog(k-n,I)),1) \\ M. F. Hasler, Oct 05 2017
    
  • Sage
    R = PolynomialRing(ZZ, 'x')
    @CachedFunction
    def skp(n, x) :
        if n == 0 : return 1
        return add(skp(k, 0)*binomial(n, k)*(x^(n-k)-(n+1)%2) for k in range(n)[::2])
    def A109449_row(n):
        x = R.gen()
        return [abs(c) for c in list(skp(n,x)-skp(n,x-1)+x^n)]
    for n in (0..10) : print(A109449_row(n)) # Peter Luschny, Jul 22 2012
    

Formula

Sum_{k>=0} T(n, k) = A000667(n).
Sum_{k>=0} T(2n, 2k) = A000795(n).
Sum_{k>=0} T(2n, 2k+1) = A009747(n).
Sum_{k>=0} T(2n+1, 2k) = A003719(n).
Sum_{k>=0} T(2n+1, 2k+1) = A002084(n).
Sum_{k>=0} T(n, 2k) = A062272(n).
Sum_{k>=0} T(n, 2k+1) = A062161(n).
Sum_{k>=0} (-1)^(k)*T(n, k) = A062162(n). - Johannes W. Meijer, Apr 20 2011
E.g.f.: exp(x*y)*(sec(x)+tan(x)). - Vladeta Jovovic, May 20 2007
T(n,k) = 2^(n-k)*C(n,k)*|E(n-k,1/2) + E(n-k,1)| - [n=k] where C(n,k) is the binomial coefficient, E(m,x) are the Euler polynomials and [] the Iverson bracket. - Peter Luschny, Jan 24 2009
From Reikku Kulon, Feb 26 2009: (Start)
A109449(n, 0) = A000111(n), approx. round(2^(n + 2) * n! / Pi^(n + 1)).
A109449(n, n - 1) = n.
A109449(n, n) = 1.
For n > 0, k > 0: A109449(n, k) = A109449(n - 1, k - 1) * n / k. (End)
From Peter Luschny, Jul 10 2009: (Start)
Let p_n(x) = Sum_{k=0..n} Sum_{v=0..k} (-1)^v C(k,v)*F(k)*(x+v+1)^n, where F(0)=1 and for k>0 F(k)=-1 + s_k 2^floor((k-1)/2), s_k is 0 if k mod 8 in {2,6}, 1 if k mod 8 in {0,1,7} and otherwise -1. T(n,k) are the absolute values of the coefficients of these polynomials.
Another way to express the polynomials p_n(x) is
p_n(x) = -x^n + Sum_{k=0..n} binomial(n,k)*Euler(k)((x+1)^(n-k) + x^(n-k)). (End)
From Peter Bala, Jan 26 2011: (Start)
An explicit formula for the n-th row polynomial is
x^n + i*Sum_{k=1..n}((1+i)/2)^(k-1)*Sum_{j=0..k} (-1)^j*binomial(k,j)*(x+i*j)^n, where i = sqrt(-1). This is the triangle of connection constants between the polynomial sequences {Z(n,x+1)} and {Z(n,x)}, where Z(n,x) denotes the zigzag polynomials described in A147309.
Denote the present array by M. The first column of the array (I-x*M)^-1 is a sequence of rational functions in x whose numerator polynomials are the row polynomials of A145876 - the generalized Eulerian numbers associated with the zigzag numbers. (End)
Let skp{n}(x) denote the Swiss-Knife polynomials A153641. Then
T(n,k) = [x^(n-k)] |skp{n}(x) - skp{n}(x-1) + x^n|. - Peter Luschny, Jul 22 2012
T(n,k) = A007318(n,k) * A000111(n - k), k = 0..n. - Reinhard Zumkeller, Nov 02 2013
T(n,k) = abs(A247453(n,k)). - Reinhard Zumkeller, Sep 17 2014

Extensions

Edited, formula corrected, typo T(9,4)=2016 (before 2816) fixed by Peter Luschny, Jul 10 2009

A003701 Expansion of e.g.f. exp(x)/cos(x).

Original entry on oeis.org

1, 1, 2, 4, 12, 36, 152, 624, 3472, 18256, 126752, 814144, 6781632, 51475776, 500231552, 4381112064, 48656756992, 482962852096, 6034272215552, 66942218896384, 929327412759552, 11394877025289216, 174008703107274752, 2336793875186479104, 38928735228629389312
Offset: 0

Views

Author

Keywords

Comments

Binomial transform of A000364 (with interpolated zeros). Hankel transform is A055209. - Paul Barry, Jan 12 2009

Examples

			G.f. = 1 + x + 2*x^2 + 4*x^3 + 12*x^4 + 36*x^5 + 152*x^6 + 624*x^7 + 3472*x^8 + ...
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Bisections are A000795 and A002084.

Programs

  • Magma
    m:=50; R:=PowerSeriesRing(Rationals(), m); b:=Coefficients(R!(Exp(x)/Cos(x))); [Factorial(n-1)*b[n]: n in [1..m]]; // G. C. Greubel, Oct 14 2018
  • Maple
    G(x):= exp(x)*sec(x): f[0]:=G(x): for n from 1 to 54 do f[n]:= diff(f[n-1],x) od: x:=0: seq(f[n], n=0..22); # Zerinvary Lajos, Apr 05 2009
    # second Maple program:
    b:= proc(u, o) option remember;
          `if`(u+o=0, 1, add(b(o-1+j, u-j), j=1..u))
        end:
    a:= n-> add(`if`(j::odd, 0, b(j, 0)*binomial(n, j)), j=0..n):
    seq(a(n), n=0..30);  # Alois P. Heinz, May 12 2024
  • Mathematica
    a[ n_] := If[ n < 0, 0, n! SeriesCoefficient[ Exp[ x ] / Cos[x], {x, 0, n}]] (* Michael Somos, Jun 06 2012 *)
  • PARI
    x='x+O('x^66); Vec(serlaplace(exp(x)/cos(x))) \\ Joerg Arndt, May 07 2013
    

Formula

G.f.: 1/(1-x-x^2/(1-x-4x^2/(1-x-9x^2/(1-x-16x^2.... (continued fraction). - Paul Barry, Jan 12 2009
E.g.f.: exp(x)*sec(x). - Zerinvary Lajos, Apr 05 2009
E.g.f.: 1+x/H(0); H(k)=4k+1-x+x^2*(4k+1)/((2k+1)*(4k+3)-x^2+x*(2k+1)*(4k+3)/(2k+2-x+x*(2k+2)/H(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Nov 15 2011
G.f.: 1/G(0) where G(k)= 1 - 2*x*(k+1)/(1 + 1/(1 + 2*x*(k+1)/G(k+1))); (continued fraction, 3-step). - Sergei N. Gladkovskii, Nov 20 2012
G.f.: -1/x/Q(0), where Q(k)= 1 - 1/x - (k+1)^2/Q(k+1); (continued fraction). - Sergei N. Gladkovskii, Apr 26 2013
G.f.: (1-x)/Q(0), where Q(k)= (1-x)^2 - (1-x)^2*x^2*(k+1)^2/Q(k+1); (continued fraction). - Sergei N. Gladkovskii, May 04 2013
a(n) ~ n! * ((-1)^n*exp(-Pi/2) + exp(Pi/2)) *(2/Pi)^(n+1). - Vaclav Kotesovec, Oct 08 2013
G.f.: Q(0), where Q(k) = 1 - x*(2*k+1)/( x*(2*k+1) - 1/(1 + x*(2*k+1)/( x*(2*k+1) + 1/(1 - x*(2*k+2)/( x*(2*k+2) - 1/(1 + x*(2*k+2)/( x*(2*k+2) + 1/Q(k+1) ))))))); (continued fraction). - Sergei N. Gladkovskii, Oct 22 2013
G.f.: Q(0)/(1-x), where Q(k) = 1 - x^2*(k+1)^2/( x^2*(k+1)^2 - (1-x)^2/Q(k+1) ); (continued fraction). - Sergei N. Gladkovskii, Nov 21 2013

Extensions

Extended and reformatted 03/97.

A009747 E.g.f. tan(x)*sinh(x) (even powers only).

Original entry on oeis.org

0, 2, 12, 142, 3192, 116282, 6219972, 458790022, 44625674352, 5534347077362, 852334810990332, 159592488559874302, 35703580441464231912, 9405575479317650316842, 2881823738166957609703092, 1016124476854507687644180982, 408525180980254462140262747872, 185768439922172208338308590282722
Offset: 0

Views

Author

Keywords

Crossrefs

Bisection of A009739 and (apparently) A062161.

Programs

  • Mathematica
    nn = 20; Table[(CoefficientList[Series[Sinh[x]*Tan[x], {x, 0, 2*nn}], x] * Range[0, 2*nn]!)[[n]], {n, 1, 2*nn+1, 2}] (* Vaclav Kotesovec, Jan 24 2015 *)
  • PARI
    x='x+O('x^66); v=Vec(serlaplace(tan(x)*sinh(x))); concat([0],vector(#v\2,n,v[2*n-1])) \\ Joerg Arndt, Apr 26 2013
  • Sage
    # Generalized algorithm of L. Seidel (1877)
    def A009747_list(n) :
        R = []; A = {-1:0, 0:0}
        k = 0; e = 1
        for i in range(2*n) :
            Am = 1 if e == -1 else 0
            A[k + e] = 0
            e = -e
            for j in (0..i) :
                Am += A[k]
                A[k] = Am
                k += e
            if e == -1 : R.append(A[-i//2])
        return R
    A009747_list(10) # Peter Luschny, Jun 02 2012
    

Formula

a(n) ~ (2*n)! * 4^(n+1) * sinh(Pi/2) / Pi^(2*n+1). - Vaclav Kotesovec, Jan 24 2015

Extensions

Extended and signs tested by Olivier Gérard, Mar 15 1997

A302586 a(n) = n! * [x^n] exp(n*x)*tan(x).

Original entry on oeis.org

0, 1, 4, 29, 288, 3641, 55872, 1008349, 20923392, 490730641, 12836633600, 370512824285, 11697136754688, 400947361714121, 14829211483455488, 588633245015433437, 24960134277040177152, 1126038686507284428961, 53851620649898789830656, 2721385807644104827095965
Offset: 0

Views

Author

Ilya Gutkovskiy, Apr 10 2018

Keywords

Crossrefs

Programs

  • Mathematica
    Table[n! SeriesCoefficient[Exp[n x] Tan[x], {x, 0, n}], {n, 0, 19}]
    Table[I^(n + 1) 2^(n - 1) (EulerE[n, (-I/2) n] - EulerE[n, 1 - (I/2) n]), {n, 0, 19}]

Formula

a(n) ~ tan(1) * n^n. - Vaclav Kotesovec, Jun 08 2019

A003719 Expansion of tan(x)*cosh(x).

Original entry on oeis.org

1, 5, 41, 685, 19921, 887765, 56126201, 4776869245, 526589630881, 72989204937125, 12424192360405961, 2547879762929443405, 619570064016825283441, 176273806836039238900085, 58010159408189457446855321, 21864887814006548202566779165
Offset: 0

Views

Author

Keywords

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Bisection of A009739 and (apparently) A062272.

Programs

  • Mathematica
    nn = 20; Table[(CoefficientList[Series[Cosh[x]*Tan[x], {x, 0, 2*nn+1}], x] * Range[0, 2*nn+1]!)[[n]], {n, 2, 2*nn, 2}] (* Vaclav Kotesovec, Feb 16 2015 *)

Formula

a(n) = Sum_{k>=0} binomial(2n+1, 2k)*A000111(2n+1-2k). - Philippe Deléham, Aug 27 2005
a(n) ~ cosh(Pi/2) * (2*n+1)! * 2^(2*n+3) / Pi^(2*n+2). - Vaclav Kotesovec, Feb 16 2015

Extensions

Extended and formatted Mar 15 1997 by Olivier Gérard
Prior Mathematica program deleted by Harvey P. Dale, Nov 04 2019

A291484 Expansion of e.g.f. arctanh(x)*exp(x).

Original entry on oeis.org

0, 1, 2, 5, 12, 49, 190, 1301, 7224, 69441, 495898, 6095429, 53005700, 792143793, 8110146070, 142633278997, 1679413757168, 33964965659649, 451969255722162, 10331348137881349, 153288815339260796, 3907452790559751857, 63949589015139119598, 1798373345567005989781, 32179694275204166066728
Offset: 0

Views

Author

Ilya Gutkovskiy, Aug 24 2017

Keywords

Examples

			E.g.f.: A(x) = x/1! + 2*x^2/2! + 5*x^3/3! + 12*x^4/4! + 49*x^5/5! + ...
		

Crossrefs

Cf. A002104, A002741, A009739, A009832, A010050, A012709, A087208 (first differences), A279927.

Programs

  • Maple
    a:=series(arctanh(x)*exp(x),x=0,25): seq(n!*coeff(a,x,n),n=0..24); # Paolo P. Lava, Mar 27 2019
  • Mathematica
    nmax = 24; Range[0, nmax]! CoefficientList[Series[ArcTanh[x] Exp[x], {x, 0, nmax}], x]
    nmax = 24; Range[0, nmax]! CoefficientList[Series[Log[(1 + x)/(1 - x)] Exp[x]/2, {x, 0, nmax}], x]
    nmax = 24; Range[0, nmax]! CoefficientList[Series[Sum[x^(2 k + 1)/(2 k + 1), {k, 0, Infinity}] Exp[x], {x, 0, nmax}], x]
    Table[Sum[Binomial[n+1,2k+1](n-2k)/(n+1) (2 k)!, {k,0,n/2}],{n,0,12}] (* Emanuele Munarini, Dec 16 2017 *)
  • Maxima
    makelist(sum(binomial(n+1,2*k+1)*(n-2*k)/(n+1)*(2*k)!,k,0,floor(n/2)),n,0,12); /* Emanuele Munarini, Dec 16 2017 */
    
  • PARI
    first(n) = x='x+O('x^n); Vec(serlaplace(atanh(x)*exp(x)), -n) \\ Iain Fox, Dec 16 2017

Formula

E.g.f.: log((1 + x)/(1 - x))*exp(x)/2.
From Emanuele Munarini, Dec 16 2017: (Start)
a(n) = Sum_{k=0..n/2} binomial(n+1,2*k+1)*((n-2*k)/(n+1))*(2*k)!.
a(n+3) - a(n+2) - (n+1)*(n+2)*a(n+1) + (n+1)*(n+2)*a(n) = 1.
a(n+4) - 2*a(n+3) - (n^2+5*n+5)*a(n+2) + 2*(n+2)^2*a(n+1) - (n+1)*(n+2)*a(n) = 0.
(End)
a(n) ~ (n-1)! * (exp(1) - (-1)^n * exp(-1))/2. - Vaclav Kotesovec, Dec 16 2017

A084098 Expansion of e.g.f. exp(x)*tan(2*x)/2.

Original entry on oeis.org

0, 1, 2, 11, 36, 341, 1702, 23071, 154056, 2691241, 22470602, 479886131, 4808343276, 121361260541, 1418683841902, 41316096677191, 551971861815696, 18218322689532241, 273815850521907602, 10100775754144668251
Offset: 0

Views

Author

Paul Barry, May 11 2003

Keywords

Comments

Binomial transform of expansion of tan(2x)/2 (0,1,0,8,0,256,...).

Crossrefs

Cf. A009739.

Programs

  • Magma
    R:=PowerSeriesRing(Rationals(), 40); Coefficients(R!(Laplace( Exp(x)*Tan(2*x)/2 ))); // G. C. Greubel, Oct 14 2022
    
  • Maple
    seq(I*((4*I)^n*euler(n,-I/4)-1)/2, n=0..30); # Robert Israel, May 26 2016
  • Mathematica
    CoefficientList[Series[E^x*Tan[2*x]/2, {x, 0, 20}], x]* Range[0, 20]! (* Vaclav Kotesovec, Sep 29 2013 *)
    Table[I ((4 I)^n*EulerE[n, -I/4] - 1)/2, {n, 0, 20}] (* Benedict W. J. Irwin, May 26 2016 *)
  • SageMath
    [(i/2)*(-1 + (2*i)^n*sum(binomial(n,j)*(-1-i/2)^j*euler_number(n-j) for j in range(n+1))) for n in range(40)] # G. C. Greubel, Oct 14 2022

Formula

E.g.f.: exp(x)*tan(2*x)/2.
a(n) ~ n! * (exp(Pi/4)-(-1)^n*exp(-Pi/4)) * 4^n/Pi^(n+1). - Vaclav Kotesovec, Sep 29 2013
a(n) = i*((4i)^n*EulerE(n,-i/4)-1)/2. - Benedict W. J. Irwin, May 26 2016
a(n) = (i/2)*( -1 + (2*i)^n * Sum_{j=0..n} binomial(n,j)*(-1 - i/2)^j*EulerE(n-j) ). - G. C. Greubel, Oct 14 2022

A298213 Triangle read by rows, expansion of exp(x*exp(z)*tan(z)).

Original entry on oeis.org

1, 0, 1, 0, 2, 1, 0, 5, 6, 1, 0, 12, 32, 12, 1, 0, 41, 160, 110, 20, 1, 0, 142, 856, 900, 280, 30, 1, 0, 685, 4816, 7231, 3360, 595, 42, 1, 0, 3192, 29952, 58632, 37856, 9800, 1120, 56, 1, 0, 19921, 199680, 493100, 416640, 147126, 24192, 1932, 72, 1
Offset: 0

Views

Author

Peter Luschny, Jan 15 2018

Keywords

Examples

			Triangle starts:
0: 1;
1: 0,    1;
2: 0,    2,     1;
3: 0,    5,     6,     1;
4: 0,   12,    32,    12,     1;
5: 0,   41,   160,   110,    20,    1;
6: 0,  142,   856,   900,   280,   30,    1;
7: 0,  685,  4816,  7231,  3360,  595,   42,  1;
8: 0, 3192, 29952, 58632, 37856, 9800, 1120, 56, 1;
		

Crossrefs

T(n,1) = A009739(n), T(n,n) = A002378(n-1).
Row sums are A009248.
Cf. A075497.

Programs

  • Maple
    gf := exp(x*exp(z)*tan(z)):
    X := n -> series(gf, z, n+2):
    Z := n -> n!*expand(simplify(coeff(X(n), z, n))):
    A298213_row := n -> op(PolynomialTools:-CoefficientList(Z(n), x)):
    seq(A298213_row(n), n=0..8);
Showing 1-8 of 8 results.