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-20 of 75 results. Next

A000366 Genocchi numbers of second kind (A005439) divided by 2^(n-1).

Original entry on oeis.org

1, 1, 2, 7, 38, 295, 3098, 42271, 726734, 15366679, 391888514, 11860602415, 420258768950, 17233254330343, 809698074358250, 43212125903877439, 2599512037272630686, 175079893678534943287, 13122303354155987156306, 1088559958829010054171343, 99456043127935948731527942
Offset: 1

Views

Author

Keywords

Comments

The earliest known reference to these numbers is the Dellac Marseille memoir. - Don Knuth, Jul 11 2007
According to Ira Gessel, Dellac's interpretation is the following: start with a 2n X n array of cells and consider the set D of cells in rows i through i+n of column i, for i from 1 to n. Then a(n) is the number of subsets of D containing two cells in each column and one cell in each row.
Barsky proved that for even n>1, a(n) is congruent to 3 mod 4 and for odd n>1, congruent to 2 mod 4. Gessel shows that for even n>5, a(n) is congruent to 4n-1 mod 16 and for odd n>2 that a(n)/2 is congruent to 2-n mod 8.
The entry for A005439 has further information.
The number of sequences (I_1,...,I_{n-1}) consisting of subsets of the set {1,...,n} such that the number of elements in I_k is exactly k and I_k\subset I_{k+1}\cup {k+1}. The Euler characteristics of the degenerate flag varieties of type A. - Evgeny Feigin, Dec 15 2011
Kreweras proved that for n>2, a(n) is alternatively congruent to 2 and to 7 mod 36. - Michel Marcus, Nov 06 2012

Examples

			G.f. = x + x^2 + 2*x^3 + 7*x^4 + 38*x^5 + 295*x^6 + 3098*x^7 + ...
		

References

  • Anonymous, L'Intermédiaire des Mathématiciens, 7 (1900), p. 328.
  • Hippolyte Dellac, Problem 1735, L'Intermédiaire des Mathématiciens, Vol. 7 (1900), p. 9 ff.
  • E. Lemoine, L'Intermédiaire des Mathématiciens, 8 (1901), 168-169.
  • L. Seidel, Über eine einfache Entstehungsweise der Bernoulli'schen Zahlen und einiger verwandten Reihen, Sitzungsberichte der mathematisch-physikalischen Classe der königlich bayerischen Akademie der Wissenschaften zu München, volume 7 (1877), 157-187.

Crossrefs

First column, first diagonal and row sums of triangle A014784.
Also row sums of triangle A239894.

Programs

  • Mathematica
    a[n_] = (-2^(-1))^(n-2)* Sum[ Binomial[n, k]*(1 - 2^(n+k+1))*BernoulliB[n+k+1], {k, 0, n}]; Table[a[n], {n,19}] (* Jean-François Alcover, Jul 18 2011, after PARI prog. *)
  • PARI
    a(n)=(-1/2)^(n-2)*sum(k=0,n,binomial(n,k)*(1-2^(n+k+1))*bernfrac(n+k+1))
    
  • PARI
    {a(n)=local(CF=1+x*O(x^n));if(n<1,return(0), for(k=1,n,CF=1/(1-((n-k)\2+1)*((n-k)\2+2)/2*x*CF));return(Vec(CF)[n]))} (Hanna)
    
  • PARI
    {a(n)=polcoeff( x*sum(m=0, n, m!*(m+1)!*(x/2)^m / prod(k=1, m,1 + k*(k+1)*x/2 +x*O(x^n)) ), n)} \\ Paul D. Hanna, Feb 03 2013
    
  • Python
    from math import comb
    from sympy import bernoulli
    def A000366(n): return (-1 if n&1 else 1)*sum(comb(n,k)*(1-(1<>n-2 if n>1 else 1 # Chai Wah Wu, Apr 14 2023
  • Sage
    # Algorithm of L. Seidel (1877)
    # n -> [a(1), ..., a(n)] for n >= 1.
    def A000366_list(n) :
        D = [0]*(n+2); D[1] = 1
        R = []; z = 1/2; b = False
        for i in(0..2*n-1) :
            h = i//2 + 1
            if b :
                for k in range(h-1, 0, -1) : D[k] += D[k+1]
                z *= 2
            else :
                for k in range(1, h+1, 1) :  D[k] += D[k-1]
            b = not b
            if not b : R.append(D[1]/z)
        return R
    A000366_list(19) # Peter Luschny, Jun 29 2012
    

Formula

From Don Knuth, Jul 11 2007: (Start)
The anonymous 1900 note in Interm. Math. gives a formula that is equivalent to a nice generating function:
For example, the first four terms on the right are
1
... 2x - 2x^2 + 2x^3 + ...
........ 9x^2 - 36x^3 + ...
............... 72x^3 + ...
summing to 1 + 2x + 7x^2 + 38x^3 + ... . Of course one can replace x with 2x and get a generating function for A005439. (End)
(-2)^(2-n) * Sum_{k=0..n} C(n, k)*(1-2^(n+k+1))*B(n+k+1), with B(n) the Bernoulli numbers.
O.g.f.: A(x) = x/(1-x/(1-x/(1-3*x/(1-3*x/(1-6*x/(1-6*x/(... -[n/2+1]*[n/2+2]/2*x/(1- ...)))))))) (continued fraction). - Paul D. Hanna, Oct 07 2005
Sum_{n>0} a(n)x^n = Sum_{n>0} (n!^2/2^{n-1}) (x^n/((1+x)(1+3x)...(1+binomial(n,2)x))).
a(n+1) = Sum_{k=0..n} A211183(n,k). - Philippe Deléham, Feb 03 2013
G.f.: Q(0)*2 - 2, where Q(k) = 1 - x*(k+1)^2/( x*(k+1)^2 - 2/(1 - x*(k+1)^2/( x*(k+1)^2 - 2/Q(k+1) ))); (continued fraction). - Sergei N. Gladkovskii, Oct 22 2013
a(n) ~ 2^(n+5) * n^(2*n+3/2) / (exp(2*n) * Pi^(2*n+1/2)). - Vaclav Kotesovec, Oct 28 2014

Extensions

More terms from David W. Wilson, Jan 11 2001
Edited by Ralf Stephan, Apr 17 2004

A083007 a(n) = Sum_{k=0..n-1} 3^k*B(k)*C(n,k) where B(k) is the k-th Bernoulli number and C(n,k)=binomial(n,k).

Original entry on oeis.org

0, 1, -2, 1, 4, -5, -26, 49, 328, -809, -6710, 20317, 201772, -722813, -8370194, 34607305, 457941136, -2145998417, -31945440878, 167317266613, 2767413231220, -16020403322021, -291473080313162, 1848020950359841, 36679231132772824, -252778977216700025, -5435210060467425446
Offset: 0

Views

Author

Benoit Cloitre, May 31 2003

Keywords

Crossrefs

Programs

  • Maple
    A083007 := proc(n)
        3*x/(1+exp(x)+exp(2*x)) ;
        coeftayl(%,x=0,n) ;
        %*n! ;
    end proc:
    seq(A083007(n),n=0..30) ; # R. J. Mathar, Jul 13 2023
  • Mathematica
    Range[0, 15]! CoefficientList[ Series[ 3x/(1 + Exp[x] + Exp[ 2x]), {x, 0, 15}], x] (* Robert G. Wilson v, Oct 26 2012 *)
    Table[Sum[3^k BernoulliB[k]Binomial[n,k],{k,0,n-1}],{n,0,30}] (* Harvey P. Dale, May 26 2014 *)
  • PARI
    a(n)=sum(k=0,n-1,3^k*binomial(n,k)*bernfrac(k))

Formula

E.g.f.: 3x/(1+e^x+e^(2x)). - Ira M. Gessel, Jan 28 2012
From Peter Bala, Mar 01 2015: (Start)
a(2*n+1) = (-1)^(n+1)*A002111(n) for n >= 1.
a(n) = 3^n * ( B(n,1/3) - B(n,0) ), where B(n,x) denotes the n-th Bernoulli polynomial. More generally, Almkvist and Meurman show that k^n * ( B(n, 1/k) - B(n, 0) ) is an integer sequence for k = 2,3,4,..., which proves the integrality of A083008 through A083014.
a(0) = 1 and for n >= 1, a(n) = 1 - 1/(n + 1)*Sum_{k = 1..n-1} 3^(n-k)*binomial(n+1,k)*a(k) (Sury, Section 1). (End)

A083008 a(n) = Sum_{k=0..n-1} 4^k*B(k)*C(n,k) where B(k) is the k-th Bernoulli number and C(n,k) = binomial(n,k).

Original entry on oeis.org

0, 1, -3, 3, 9, -25, -99, 427, 2193, -12465, -79515, 555731, 4247577, -35135945, -313193811, 2990414715, 30461046561, -329655706465, -3777604994187, 45692713833379, 581778811909545, -7777794952988025, -108933009112011843, 1595024111042171723, 24370176181315498929
Offset: 0

Views

Author

Benoit Cloitre, May 31 2003

Keywords

Crossrefs

Programs

  • Mathematica
    Range[0, 15]! CoefficientList[ Series[ 4x/(1 + Exp[x] + Exp[ 2x] + Exp[ 3x]), {x, 0, 15}], x] (* Robert G. Wilson v, Oct 26 2012 *)
    Table[Sum[4^k*BernoulliB[k] Binomial[n, k], {k, 0, n - 1}], {n, 0, 24}] (* Michael De Vlieger, Sep 28 2016 *)
  • PARI
    a(n)=sum(k=0,n-1,4^k*binomial(n,k)*bernfrac(k))

Formula

E.g.f.: 4*x/(1+exp(x)+exp(2*x)+exp(3*x)). - Ira M. Gessel, Feb 23 2012
a(n) ~ n! * (cos(n*Pi/2)-sin(n*Pi/2)) * 2^(n+1) / Pi^n. - Vaclav Kotesovec, Mar 02 2014

Extensions

Offset changed to 0 by Seiichi Manyama, Sep 28 2016

A272644 Triangle read by rows: T(n,m) = Sum_{i=0..m} Stirling2(m+1,i+1)*(-1)^(m-i)*i^(n-m)*i!, for n >= 2, m = 1..n-1.

Original entry on oeis.org

1, 1, 1, 1, 5, 1, 1, 13, 13, 1, 1, 29, 73, 29, 1, 1, 61, 301, 301, 61, 1, 1, 125, 1081, 2069, 1081, 125, 1, 1, 253, 3613, 11581, 11581, 3613, 253, 1, 1, 509, 11593, 57749, 95401, 57749, 11593, 509, 1, 1, 1021, 36301, 268381, 673261, 673261, 268381, 36301, 1021, 1
Offset: 2

Views

Author

N. J. A. Sloane, May 07 2016

Keywords

Comments

Gives number of bitriangular permutations. Could be prefixed with row 0 containing a single 1. - N. J. A. Sloane, Jan 10 2018

Examples

			Triangle begins:
n\m  [1]     [2]     [3]     [4]     [5]     [6]     [7]     [8]
[2]  1;
[3]  1,      1;
[4]  1,      5,      1;
[5]  1,     13,     13,      1;
[6]  1,     29,     73,     29,      1;
[7]  1,     61,    301,    301,     61,      1;
[8]  1,    125,   1081,   2069,   1081,    125,      1;
[9]  1,    253,   3613,  11581,  11581,   3613,    253,      1;
...
		

Crossrefs

Column 2 is A036563.
Largest term in each row gives A272645.
Second diagonal from the right is 2^i - 3.
Third diagonal from the right edge is A006230.
T(2n,n) gives A048144.
For row sums see A297195.

Programs

  • Maple
    A272644 := proc(n,m)
        add(combinat[stirling2](m+1,i+1)*(-1)^(m-i)*i^(n-m)*i!,i=0..m) ;
    end proc:
    seq(seq(A272644(n,m),m=1..n-1),n=2..10) ; # R. J. Mathar, Mar 04 2018
  • Mathematica
    Table[Sum[StirlingS2[m + 1, i + 1] (-1)^(m - i) i^(n - m) i!, {i, 0, m} ], {n, 11}, {m, n - 1}] /. {} -> {0} // Flatten  (* Michael De Vlieger, May 19 2016 *)
  • PARI
    A(n,m) = sum(i=0, m, stirling(m+1, i+1, 2) * (-1)^((m-i)%2) * i^(n - m) * i!);
    concat(vector(10, n, vector(n, m, A(n+1, m))))  \\ Gheorghe Coserea, May 16 2016

Formula

T(n,m) = Sum_{i=0..m} Stirling2(m+1, i+1)*(-1)^(m-i)*i^(n-m)*i!, for n>=2, m=1..n-1, where Stirling2(n,k) is defined by A008277.
A001469(n+1) = Sum_{m=1..2*n-1} (-1)^(m-1)*T(2*n,m). - Gheorghe Coserea, May 18 2016

Extensions

More terms from Gheorghe Coserea, May 16 2016

A296839 Expansion of e.g.f. tan(x*tan(x/2)) (even powers only).

Original entry on oeis.org

0, 1, 1, 33, 437, 22205, 978873, 81005113, 7356832669, 949918117653, 142805534055905, 27120922891214801, 6016195462632487941, 1592800634594574194413, 486576430503128985793417, 171866951067212728072402665, 69025662074064538734826793453
Offset: 0

Views

Author

Ilya Gutkovskiy, Dec 21 2017

Keywords

Examples

			tan(x*tan(x/2)) = x^2/2! + x^4/4! + 33*x^6/6! + 437*x^8/8! + ...
		

Crossrefs

Programs

  • Mathematica
    nmax = 16; Table[(CoefficientList[Series[Tan[x Tan[x/2]], {x, 0, 2 nmax}], x] Range[0, 2 nmax]!)[[n]], {n, 1, 2 nmax + 1, 2}]

Formula

a(n) = (2*n)! * [x^(2*n)] tan(x*tan(x/2)).
a(n) ~ c * d^n * n^(2*n + 1/2) / exp(2*n), where d = 16/Pi^2 = 1.621138938277404343102071411355642222469740394755... is the root of the equation tan(1/sqrt(d)) = Pi*sqrt(d)/4 and c = 1.75568815831... - Vaclav Kotesovec, Dec 21 2017, updated Mar 16 2024

A083009 a(n) = Sum_{k=0,n-1} 5^k*B(k)*binomial(n,k) where B(k) is the k-th Bernoulli number.

Original entry on oeis.org

0, 1, -4, 6, 16, -74, -264, 1946, 9056, -88434, -512024, 6154786, 42716496, -607884394, -4920817384, 80834386026, 747784582336, -13923204233954, -144898927180344, 3015393801263666, 34867899296006576, -801997872697905114, -10201104981227536904, 256982712667627683706
Offset: 0

Views

Author

Benoit Cloitre, May 31 2003

Keywords

Crossrefs

Programs

  • Mathematica
    Range[0, 15]! CoefficientList[ Series[ 5x/(1 + Exp[x] + Exp[ 2x] + Exp[ 3x] + Exp[ 4x]), {x, 0, 15}], x] (* Robert G. Wilson v, Oct 26 2012 *)
    Table[Sum[5^k*BernoulliB[k] Binomial[n, k], {k, 0, n - 1}], {n, 0, 23}] (* Michael De Vlieger, Sep 28 2016 *)
  • PARI
    a(n)=sum(k=0,n-1,5^k*binomial(n,k)*bernfrac(k))

Formula

E.g.f.: 5x/(1+exp(x)+exp(2x)+exp(3x)+exp(4x)). - Benoit Cloitre, Oct 26 2012 (following I. Gessel).

Extensions

Offset changed to 0 by Seiichi Manyama, Sep 28 2016

A083010 a(n) = 6^n(B_n(1/6)-B_n(0)) where B_n(x) is the n-th Bernoulli polynomial.

Original entry on oeis.org

0, 1, -5, 10, 25, -170, -575, 6370, 28225, -415826, -2294975, 41649850, 275622625, -5922729722, -45718037855, 1134081384850, 10004182986625, -281284596509858, -2791456543622015, 87722769712529770, 967282878165054625, -33597252908389628234, -407509096583935700255
Offset: 0

Views

Author

Benoit Cloitre, May 31 2003

Keywords

Crossrefs

Programs

  • Mathematica
    Range[0, 15]! CoefficientList[ Series[ 6x/(1 + Exp[x] + Exp[ 2x] + Exp[ 3x] + Exp[ 4x] + Exp[ 5x]), {x, 0, 15}], x] (* Robert G. Wilson v, Oct 26 2012 *)
  • PARI
    a(n)=sum(k=0,n-1,6^k*binomial(n,k)*bernfrac(k))
    
  • PARI
    {a(n)=if(n<1, 0, n!*polcoeff( 6*x*(exp(x+x*O(x^n))-1)/(exp(6*x +x*O(x^n))-1), n))} /* Michael Somos, Aug 02 2006 */

Formula

E.g.f.: 6x(exp(x)-1)/(exp(6x)-1). - Michael Somos, Aug 02 2006
a(n) = Sum_{k=0..n-1} 6^k*B(k)*C(n,k) where B(k) is the k-th Bernoulli number and C(n,k) = binomial(n,k).

A083011 a(n) = Sum_{k=0..n-1} 7^k*B(k)*binomial(n,k) where B(k) is the k-th Bernoulli number.

Original entry on oeis.org

0, 1, -6, 15, 36, -335, -1098, 16955, 73032, -1503963, -8075430, 204957775, 1319806188, -39666688711, -297958666242, 10337889346275, 88743928066704, -3489994294713779, -33703905982634334, 1481439997178305655, 15896303102840841780, -772269573963075710367
Offset: 0

Views

Author

Benoit Cloitre, May 31 2003

Keywords

Crossrefs

Programs

  • Mathematica
    Range[0, 15]! CoefficientList[ Series[ 7x/(1 + Exp[x] + Exp[ 2x] + Exp[ 3x] + Exp[ 4x] + Exp[ 5x] + Exp[ 6x]), {x, 0, 15}], x] (* Robert G. Wilson v, Oct 26 2012 *)
  • PARI
    a(n)=sum(k=0,n-1,7^k*binomial(n,k)*bernfrac(k))

Extensions

Offset changed to 0 by Seiichi Manyama, Sep 28 2016

A083012 a(n) = Sum_{k=0..n-1} 8^k*B(k)*binomial(n,k) where B(k) is the k-th Bernoulli number.

Original entry on oeis.org

0, 1, -7, 21, 49, -595, -1911, 39109, 165473, -4525731, -23883335, 805349237, 5097585297, -203564524787, -1503073984279, 69292329479205, 584713994953921, -30553447357629763, -290046835163027943, 16939595863125337813, 178676615255242261745
Offset: 0

Views

Author

Benoit Cloitre, May 31 2003

Keywords

Crossrefs

Programs

  • Mathematica
    Range[0, 15]! CoefficientList[ Series[ 8x/(1 + Exp[x] + Exp[ 2x] + Exp[ 3x] + Exp[ 4x] + Exp[ 5x] + Exp[ 6x] + Exp[ 7x]), {x, 0, 15}], x] (* Robert G. Wilson v, Oct 26 2012 *)
  • PARI
    a(n)=sum(k=0,n-1,8^k*binomial(n,k)*bernfrac(k))

Extensions

Offset changed to 0 by Seiichi Manyama, Sep 28 2016

A083013 a(n) = Sum_{k=0..n-1} 9^k*B(k)*binomial(n,k) where B(k) is the k-th Bernoulli number.

Original entry on oeis.org

0, 1, -8, 28, 64, -980, -3104, 81172, 339328, -11878244, -61958240, 2674671076, 16735235392, -855605816468, -6245150369696, 368601472639540, 3074742020313856, -205700802920736452, -1930357641628367072, 144338957346266943364, 1505019970814899568320
Offset: 0

Views

Author

Benoit Cloitre, May 31 2003

Keywords

Crossrefs

Programs

  • Mathematica
    Range[0, 15]! CoefficientList[ Series[ 9x/(1 + Exp[x] + Exp[ 2x] + Exp[ 3x] + Exp[ 4x] + Exp[ 5x] + Exp[ 6x] + Exp[ 7x] + Exp[ 8x]), {x, 0, 15}], x] (* Robert G. Wilson v, Oct 26 2012 *)
    Table[Sum[9^k BernoulliB[k]Binomial[n,k],{k,0,n-1}],{n,0,20}] (* Harvey P. Dale, Apr 13 2016 *)
  • PARI
    a(n)=sum(k=0,n-1,9^k*binomial(n,k)*bernfrac(k))

Extensions

Offset changed to 0 by Seiichi Manyama, Sep 28 2016
Previous Showing 11-20 of 75 results. Next