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-10 of 31 results. Next

A281478 Central coefficients of Joffe's central differences of zero (assuming offset 0 and T(n,k) extended to 0 <= k <= n in A241171).

Original entry on oeis.org

1, 1, 126, 126720, 494053560, 5283068427000, 126301275727704000, 5896518025761483120000, 488276203972584492344880000, 66735969985432035804226510800000, 14236685931434801591697761172512160000, 4533351707244550464920840944132383960960000, 2077486542875366717627638783543223150778585600000
Offset: 0

Views

Author

Peter Luschny, Jan 22 2017

Keywords

Comments

Also the central coefficients of the polynomials defined in A278073 for m = 2.

Crossrefs

Cf. Central coefficients: A088218 (m=0), A210029 (m=1), A281478 (m=2), A281479 (m=3), A281480 (m=4). Related triangles: A097805 (m=0), A131689 (m=1), A241171 (m=2), A278073 (m=3), A278074 (m=4).

Programs

  • Maple
    # Function P defined in A278073.
    A281479 := n -> coeff(P(2, 2*n), x, n): seq(A281479(n), n=0..9);

A002456 Joffe's central differences of 0, A241171(n,n-1).

Original entry on oeis.org

0, 1, 30, 1260, 75600, 6237000, 681080400, 95351256000, 16672848192000, 3563821301040000, 914714133933600000, 277707211062240960000, 98459829376612704000000, 40319300129722902288000000, 18888041368462498071840000000, 10037644841525784689606400000000
Offset: 1

Views

Author

Keywords

References

  • H. T. Davis, Tables of the Mathematical Functions. Vols. 1 and 2, 2nd ed., 1963, Vol. 3 (with V. J. Fisher), 1962; Principia Press of Trinity Univ., San Antonio, TX, Vol. 2, p. 283.
  • A. Fletcher, J. C. P. Miller, L. Rosenhead and L. J. Comrie, An Index of Mathematical Tables. Vols. 1 and 2, 2nd ed., Blackwell, Oxford and Addison-Wesley, Reading, MA, 1962, Vol. 1, p. 112.
  • S. A. Joffe, Calculation of the first thirty-two Eulerian numbers from central differences of zero, Quart. J. Pure Appl. Math. 47 (1914), 103-126.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

A diagonal of A241171.

Programs

  • Maple
    T:=proc(n,k) option remember;
    if k = 0 or k > n then 0
    elif k=1 then 1
    else k*(2*k-1)*T(n-1,k-1)+k^2*T(n-1,k); fi;
    end;
    [seq(T(n,n-1),n=1..30)];
  • Mathematica
    T[n_, k_] /; 1 <= k <= n := T[n, k] = k(2k-1) T[n-1, k-1] + k^2 T[n-1, k]; T[, 1] = 1; T[, _] = 0;
    a[n_] := T[n, n-1];
    Array[a, 16] (* Jean-François Alcover, Jul 03 2019 *)

Formula

a(n) ~ sqrt(Pi) * 2^n * n^(2*n+3/2) / (3 * exp(2*n)). - Vaclav Kotesovec, Apr 25 2014

Extensions

Entry revised by N. J. A. Sloane, Apr 22 2014

A241172 Joffe's central differences of 0: A241171(n,n-2).

Original entry on oeis.org

0, 1, 126, 13230, 1580040, 227026800, 39502663200, 8266953895200, 2059096751712000, 603711328396176000, 206176565788633440000, 81229359235705480800000, 36597518579286942076800000, 18708155260191426661632000000, 10773738796571008900177536000000
Offset: 2

Views

Author

N. J. A. Sloane, Apr 22 2014

Keywords

References

  • H. T. Davis, Tables of the Mathematical Functions. Vols. 1 and 2, 2nd ed., 1963, Vol. 3 (with V. J. Fisher), 1962; Principia Press of Trinity Univ., San Antonio, TX, Vol. 2, p. 283.
  • S. A. Joffe, Calculation of the first thirty-two Eulerian numbers from central differences of zero, Quart. J. Pure Appl. Math. 47 (1914), 103-126.

Crossrefs

A diagonal of A241171.

Programs

  • Maple
    T:=proc(n,k) option remember;
    if k = 0 or k > n then 0
    elif k=1 then 1
    else k*(2*k-1)*T(n-1,k-1)+k^2*T(n-1,k); fi;
    end;
    [seq(T(n,n-2),n=2..30)];
  • Mathematica
    T[n_, k_] /; 1 <= k <= n := T[n, k] = k (2 k - 1) T[n - 1, k - 1] + k^2 T[n - 1, k]; T[, 1] = 1; T[, _] = 0;
    a[n_] := T[n, n - 2]
    Array[a, 15, 2] (* Jean-François Alcover, Jul 03 2019 *)

Formula

a(n) ~ sqrt(Pi) * 2^n * n^(2*n+5/2) / (36 * exp(2*n)). - Vaclav Kotesovec, Apr 25 2014

A327027 T(n, k) = (1/n) * Sum_{d|n} phi(d) * A241171(n/d, k) for n >= 1, T(0, k) = 0^k. Triangle read by rows for 0 <= k <= n.

Original entry on oeis.org

1, 0, 1, 0, 1, 3, 0, 1, 10, 30, 0, 1, 33, 315, 630, 0, 1, 102, 2646, 15120, 22680, 0, 1, 348, 21135, 263340, 1039500, 1247400, 0, 1, 1170, 167310, 4118400, 32432400, 97297200, 97297200, 0, 1, 4113, 1333080, 61757010, 871620750, 4937832900, 11918907000, 10216206000
Offset: 0

Views

Author

Peter Luschny, Aug 20 2019

Keywords

Comments

We assume A241171 extended to its (0, 0)-based form.

Examples

			[0] 1;
[1] 0, 1;
[2] 0, 1, 3;
[3] 0, 1, 10,   30;
[4] 0, 1, 33,   315,    630;
[5] 0, 1, 102,  2646,   15120,   22680;
[6] 0, 1, 348,  21135,  263340,  1039500,  1247400;
[7] 0, 1, 1170, 167310, 4118400, 32432400, 97297200, 97297200;
		

Crossrefs

Cf. A327021 (main diagonal), A327026 (row sums), A241171, A327029.

Programs

  • Maple
    A327027 := (n, k)-> `if`(n=0, 1, (1/n)*add(phi(d)*A241171(n/d, k), d=divisors(n))):
    seq(seq(A327027(n,k), k=0..n), n=0..6);
  • Mathematica
    A327027[0,  k_] := 1;
    A327027[n_, k_] := DivisorSum[n, EulerPhi[#] A241171[n/#, k] &] / n;
    Table[A327027[n, k], {n, 0, 8}, {k, 0, n}] // Flatten
  • Sage
    # uses[DivisorTriangle from A327029, A241171]
    DivisorTriangle(euler_phi, A241171, 8, lambda n: 1/n if n > 1 else 1)

A327026 a(n) = (1/n) Sum_{k=0..n} Sum_{d|n} phi(d) A241171(n/d, k) for n >= 1, a(0) = 1.

Original entry on oeis.org

1, 1, 4, 41, 979, 40549, 2571724, 231313681, 28007660854, 4392400716381, 866132386622878, 209744116289535001, 61192264076350570149, 21169177815206345045941, 8568352429497412897973944, 4011525608882608159230362521, 2151041235686896366408288920529
Offset: 0

Views

Author

Peter Luschny, Aug 20 2019

Keywords

Crossrefs

Row sums of A327027.

Programs

  • Maple
    seq(add(A327027(n, k), k=0..n), n=0..18);
  • Mathematica
    a[n_] := Sum[A327027[n, k], {k, 0, n}]; Table[a[n], {n, 0, 16}]

A356900 a(n) = P(n, 1/2) where P(n, x) = x^(-n)*Sum_{k=0..n} A241171(n, k)*x^k.

Original entry on oeis.org

1, 1, 8, 154, 5552, 321616, 27325088, 3200979664, 494474723072, 97390246272256, 23820397371219968, 7083386168647642624, 2516691244849530785792, 1052914814802404260765696, 512347915163742179541659648, 286902390859642414913802102784, 183187476890368376930869730803712
Offset: 0

Views

Author

Peter Luschny, Sep 03 2022

Keywords

Comments

Other special values of this Euler type polynomials are: P(n, -1) = A000364(n); P(n, -1/2) = A002105(n); P(n, 1) = A094088(n), where we always make the assumption that the offset of the sequences is 0. A partition refinement of Joffe's triangle A241171 is A327022.

Crossrefs

Programs

  • Maple
    a := n -> 2^n*add(A241171(n, k)*(1/2)^k, k = 0..n):
    seq(a(n), n = 0..16);
  • SageMath
    # Using function PtransMatrix from A269941.
    def E(n, v):
        eulr = lambda n: 1 / ((2 * n - 1) * (2 * n))
        norm = lambda n, k: (1 / v)^n * factorial(2 * n)
        P = PtransMatrix(n, eulr, norm)
        return [(-1)^j * sum([v^k * P[j][k] for k in range(j + 1)]) for j in range(n)]
    A356900List = lambda n: E(n, -1/2); print(A356900List(17))
    # A002105List = lambda n: E(n, 1/2) returns the reduced tangent numbers A002105.

A000680 a(n) = (2n)!/2^n.

Original entry on oeis.org

1, 1, 6, 90, 2520, 113400, 7484400, 681080400, 81729648000, 12504636144000, 2375880867360000, 548828480360160000, 151476660579404160000, 49229914688306352000000, 18608907752179801056000000, 8094874872198213459360000000, 4015057936610313875842560000000
Offset: 0

Views

Author

Keywords

Comments

Denominators in the expansion of cos(sqrt(2)*x) = 1 - (sqrt(2)*x)^2/2! + (sqrt(2)*x)^4/4! - (sqrt(2)*x)^6/6! + ... = 1 - x^2 + x^4/6 - x^6/90 + ... By Stirling's formula in A000142: a(n) ~ 2^(n+1) * (n/e)^(2n) * sqrt(Pi*n) - Ahmed Fares (ahmedfares(AT)my-deja.com), Apr 20 2001
a(n) is also the constant term in the product: Product_{1<=i, j<=n, i!=j} (1 - x_i/x_j)^2. - Sharon Sela (sharonsela(AT)hotmail.com), Feb 12 2002
a(n) is also the number of lattice paths in the n-dimensional lattice [0..2]^n. - T. D. Noe, Jun 06 2002
Representation as the n-th moment of a positive function on the positive half-axis: a(n) = Integral_{x>=0} (x^n*exp(-sqrt(2*x))/sqrt(2*x)), n=0,1,... - Karol A. Penson, Mar 10 2003
Number of permutations of [2n] with no increasing runs of odd length. Example: a(2) = 6 because we have 1234, 13/24, 14/23, 23/14, 24/13 and 34/12 (runs separated by slashes). - Emeric Deutsch, Aug 29 2004
This is also the number of ways of arranging the elements of n distinct pairs, assuming the order of elements is significant and the pairs are distinguishable. When the pairs are not distinguishable, see A001147 and A132101. For example, there are 6 ways of arranging 2 pairs [1,1], [2,2]: {[1122], [1212], [1221], [2211], [2121], [2112]}. - Ross Drewe, Mar 16 2008
n married couples are seated in a row so that every wife is to the left of her husband. The recurrence a(n+1) = a(n)*((2*n + 1) + binomial(2*n+1, 2)) conditions on whether the (n+1)st couple is seated together or separated by at least one other person. - Geoffrey Critzer, Jun 10 2009
a(n) is the number of functions f:[2n]->[n] such that the preimage of {y} has cardinality 2 for every y in [n]. Note that [k] denotes the set {1,2,...,k} and [0] denotes the empty set. - Dennis P. Walsh, Nov 17 2009
a(n) is also the number of n X 2n (0,1)-matrices with row sum 2 and column sum 1. - Shanzhen Gao, Feb 12 2010
Number of ways that 2n people of different heights can be arranged (for a photograph) in two rows of equal length so that every person in the front row is shorter than the person immediately behind them in the back row.
a(n) is the number of functions f:[n]->[n^2] such that, if floor((f(x))^.5) = floor((f(y))^.5), then x = y. For example, with n = 4, the range of f consists of one element from each of the four sets {1,2,3}, {4,5,6,7,8}, {9,10,11,12,13,14,15}, and {16}. Hence there are 1*3*5*7 = 105 ways to choose the range for f, and there are 4! ways to injectively map {1,2,3,4} to the four elements of the range. Thus there are 105*24 = 2520 such functions. Note also that a(n) = n!*(product of the first n odd numbers). - Dennis P. Walsh, Nov 28 2012
a(n) is also the 2*n th difference of n-powers of A000217 (triangular numbers). For example a(2) is the 4th difference of the squares of triangular numbers. - Enric Reverter i Bigas, Jun 24 2013
a(n) is the multinomial coefficient (2*n) over (2, 2, 2, ..., 2) where there are n 2's in the last parenthesis. It is therefore also the number of words of length 2n obtained with n letters, each letter appearing twice. - Robert FERREOL, Jan 14 2018
Number of ways to put socks and shoes on an n-legged animal, if a sock must be put on before a shoe. - Daniel Bishop, Jan 29 2018

Examples

			For n = 2, a(2) = 6 since there are 6 functions f:[4]->[2] with size 2 preimages for both {1} and {2}. In this case, there are binomial(4, 2) = 6 ways to choose the 2 elements of [4] f maps to {1} and the 2 elements of [4] that f maps to {2}. - _Dennis P. Walsh_, Nov 17 2009
		

References

  • G. E. Andrews, R. Askey and R. Roy, Special Functions, Cambridge University Press, 1998.
  • H. T. Davis, Tables of the Mathematical Functions. Vols. 1 and 2, 2nd ed., 1963, Vol. 3 (with V. J. Fisher), 1962; Principia Press of Trinity Univ., San Antonio, TX, Vol. 2, p. 283.
  • A. Fletcher, J. C. P. Miller, L. Rosenhead and L. J. Comrie, An Index of Mathematical Tables. Vols. 1 and 2, 2nd ed., Blackwell, Oxford and Addison-Wesley, Reading, MA, 1962, Vol. 1, p. 112.
  • Shanzhen Gao and Kenneth Matheis, Closed formulas and integer sequences arising from the enumeration of (0,1)-matrices with row sum two and some constant column sums. In Proceedings of the Forty-First Southeastern International Conference on Combinatorics, Graph Theory and Computing. Congr. Numer. 202 (2010), 45-53.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • C. B. Tompkins, Methods of successive restrictions in computational problems involving discrete variables. 1963, Proc. Sympos. Appl. Math., Vol. XV pp. 95-106; Amer. Math. Soc., Providence, R.I.

Crossrefs

A diagonal of the triangle in A241171.
Main diagonal of A267479, row sums of A267480.
Row n=2 of A089759.
Column n=2 of A187783.
Even bisection of column k=0 of A097591.

Programs

  • Maple
    A000680 := n->(2*n)!/(2^n);
    a[0]:=1:a[1]:=1:for n from 2 to 50 do a[n]:=a[n-1]*(2*n-1)*n od: seq(a[n], n=0..16); # Zerinvary Lajos, Mar 08 2008
    seq(product(binomial(2*n-2*k,2),k=0..n-1),n=0..16); # Dennis P. Walsh, Nov 17 2009
  • Mathematica
    Table[Product[Binomial[2 i, 2], {i, 1, n}], {n, 0, 16}]
    polygorial[k_, n_] := FullSimplify[ n!/2^n (k -2)^n*Pochhammer[2/(k -2), n]]; Array[ polygorial[6, #] &, 17, 0] (* Robert G. Wilson v, Dec 26 2016 *)
    Table[(2n)!/2^n,{n,0,20}] (* Harvey P. Dale, Sep 21 2020 *)
  • PARI
    a(n) = (2*n)! / 2^n

Formula

E.g.f.: 1/(1 - x^2/2) (with interpolating zeros). - Paul Barry, May 26 2003
a(n) = polygorial(n, 6) = (A000142(n)/A000079(n))*A001813(n) = (n!/2^n)*Product_{i=0..n-1} (4*i + 2) = (n!/2^n)*4^n*Pochhammer(1/2, n) = gamma(2*n+1)/2^n. - Daniel Dockery (peritus(AT)gmail.com), Jun 13 2003
a(n) = A087127(n,2*n) = Sum_{i=0..2*n} (-1)^(2*n-i)*binomial(2*n, i)*binomial(i+2, 2)^n. Let T(n,k,j) = ((n - k + j)*(2*n - 2*k + 1))^n*binomial(2*n, 2*k-j+1) then a(n) = Sum{k=0..n} (T(n,k,1) - T(n,k,0)). For example a(12) = A087127(12,24) = Sum_{k=0..12} (T(12,k,1) - T(12,k,0)) = 24!/2^12. - André F. Labossière, Mar 29 2004 [Corrected by Jianing Song, Jan 08 2019]
For even n, a(n) = binomial(2n, n)*(a(n/2))^2. For odd n, a(n) = binomial(2n, n+1)*a((n+1)/2)*a((n-1)/2). For positive n, a(n) = binomial(2n, 2)*a(n-1) with a(0) = 1. - Dennis P. Walsh, Nov 17 2009
a(n) = Product_{i=1..n} binomial(2i, 2).
a(n) = a(n-1)*binomial(2n, 2).
From Peter Bala, Feb 21 2011: (Start)
a(n) = Product_{k = 0..n-1} (T(n) - T(k)), where T(n) = n*(n + 1)/2 is the n-th triangular number.
Compare with n! = Product_{k = 0..n-1} (n - k).
Thus we may view a(n) as a generalized factorial function associated with the triangular numbers A000217. Cf. A010050. The corresponding generalized binomial coefficients a(n)/(a(k)*a(n-k)) are triangle A086645. Also cf. A186432.
a(n) = n*(n + n-1)*(n + n-1 + n-2)*...*(n + n-1 + n-2 + ... + 1).
For example, a(5) = 5*(5+4)*(5+4+3)*(5+4+3+2)*(5+4+3+2+1) = 113400. (End).
G.f.: 1/U(0) where U(k)= x*(2*k - 1)*k + 1 - x*(2*k + 1)*(k + 1)/U(k+1); (continued fraction, Euler's 1st kind, 1-step). - Sergei N. Gladkovskii, Oct 28 2012
a(n) = n!*(product of the first n odd integers). - Dennis P. Walsh, Nov 28 2012
a(0) = 1, a(n) = a(n-1)*T(2*n-1), where T(n) is the n-th triangular number. For example: a(4) = a(3)*T(7) = 90*28 = 2520. - Enric Reverter i Bigas, Jun 24 2013
E.g.f.: 1/(1 - x/(1 - 2*x/(1 - 3*x/(1 - 4*x/(1 - 5*x/(1 - ...)))))), a continued fraction. - Ilya Gutkovskiy, May 10 2017
From Amiram Eldar, Jun 25 2020: (Start)
Sum_{n>=0} 1/a(n) = cosh(sqrt(2)).
Sum_{n>=0} (-1)^n/a(n) = cos(sqrt(2)). (End)
D-finite with recurrence a(n) -n*(2*n-1)*a(n-1)=0. - R. J. Mathar, Jan 28 2022
a(n) = n *A007019(n-1), n>0. - R. J. Mathar, Jan 28 2022

A094088 E.g.f. 1/(2-cosh(x)) (even coefficients).

Original entry on oeis.org

1, 1, 7, 121, 3907, 202741, 15430207, 1619195761, 224061282907, 39531606447181, 8661323866026007, 2307185279184885001, 734307168916191403507, 275199311597682485597221, 119956934012963778952439407
Offset: 0

Views

Author

Ralf Stephan, Apr 30 2004

Keywords

Comments

With alternating signs, e.g.f.: 1/(2-cos(x)).
7 divides a(3n+2). Ira Gessel remarks: For any odd prime p, the coefficients of 1/(2-cosh(x)) as e.g.f. are periodic with period dividing p-1.
Consider the sequence defined by a(0) = 1; thereafter a(n) = c*Sum_{k = 1..n} binomial(2n,2k)*a(n-k). For c = -3, -2, -1, 1, 2, 3, 4 this is A210676, A210657, A028296, A094088, A210672, A210674, A249939.
a(n) is the number of ordered set partitions of {1,2,...,2n} into even size blocks. - Geoffrey Critzer, Dec 03 2012
Except for a(0), row sums of A241171. - Peter Bala, Aug 20 2014
Exp( Sum_{n >= 1} a(n)*x^n/n) is the o.g.f. for A255928. - Peter Bala, Mar 13 2015
Also the 2-packed words of degree n; cf. A011782, A000670, A094088, A243664, A243665, A243666 for k-packed words for 0<=k<=5. - Peter Luschny, Jul 06 2015

Crossrefs

Programs

  • Maple
    f:=proc(n,k) option remember;  local i;
    if n=0 then 1
    else k*add(binomial(2*n,2*i)*f(n-i,k),i=1..floor(n)); fi; end;
    g:=k->[seq(f(n,k),n=0..40)];g(1); # N. J. A. Sloane, Mar 28 2012
  • Mathematica
    nn=30;Select[Range[0,nn]!CoefficientList[Series[1/(2-Cosh[x]),{x,0,nn}],x],#>0&]  (* Geoffrey Critzer, Dec 03 2012 *)
    a[0]=1; a[n_] := Sum[1/2*(1+(-1)^(2*n))*Sum[((-1)^(k-j)*Binomial[k, j]*Sum[(j-2*i )^(2*n)*Binomial[j, i], {i, 0, j}])/2^j, {j, 1, k}], {k, 1, n}]; Table[a[n], {n, 0, 14}] (* Jean-François Alcover, Apr 03 2015, after Vladimir Kruchinin *)
  • Maxima
    a(n):=b(2*n+2);
    b(n):=sum(((sum(((sum((j-2*i)^n*binomial(j,i),i,0,j))*(-1)^(k-j)*binomial(k,j))/2^(j),j,1,k))*((-1)^n+1))/2,k,1,n/2); /* Vladimir Kruchinin, Apr 23 2011 */
    
  • Maxima
    a(n):=sum(sum((i-k)^(2*n)*binomial(2*k,i)*(-1)^(i),i,0,k-1)/(2^(k-1)),k,1,2*n); /* Vladimir Kruchinin, Oct 05 2012 */
  • PARI
    a(n) = if (n == 0, 1, sum(k=1, n, binomial(2*n, 2*n-2*k)*a(n-k)));
    
  • Sage
    def A094088(n) :
        @CachedFunction
        def intern(n) :
            if n == 0 : return 1
            if n % 2 != 0 : return 0
            return add(intern(k)*binomial(n,k) for k in range(n)[::2])
        return intern(2*n)
    [A094088(n) for n in (0..14)]  # Peter Luschny, Jul 14 2012
    

Formula

1/(2-cosh(x)) = Sum_{n>=0} a(n)x^(2n)/(2n)! = 1 + x^2/2 + 7x^4/24 + 121x^6/720 + ...
Recurrence: a(0)=1, a(n) = Sum_{k=1..n} C(2n, 2n-2k)*a(n-k).
a(0)=1 and, for n>=1, a(n)=b(2*n) where b(n) = sum(k=1..n/2,((sum(j=1..k, ((sum(i=0..j,(j-2*i)^n*binomial(j,i)))*(-1)^(k-j)*binomial(k,j))/2^(j)))*((-1)^n+1))/2). - Vladimir Kruchinin, Apr 23 2011
E.g.f.: 1/(2-cosh(x))=8*(1-x^2)/(8 - 12*x^2 + x^4*U(0)) where U(k)= 1 + 4*(k+1)*(k+2)/(2*k+3 - x^2*(2*k+3)/(x^2 + 8*(k+1)*(k+2)*(k+3)/U(k+1))) ; (continued fraction, 3rd kind, 3-step). - Sergei N. Gladkovskii, Sep 30 2012
a(n) = Sum_{k=1..2*n} ( Sum_{i=0..k-1} (i-k)^(2*n) * binomial(2*k,i) * (-1)^i )/2^(k-1), n>0, a(0)=1. - Vladimir Kruchinin, Oct 05 2012
a(n) ~ 2*(2*n)! /(sqrt(3) * (log(2+sqrt(3)))^(2*n+1)). - Vaclav Kotesovec, Oct 19 2013

Extensions

Corrected definition, Joerg Arndt, Apr 26 2011

A001897 Denominators of cosecant numbers: -2*(2^(2*n-1)-1)*Bernoulli(2*n).

Original entry on oeis.org

1, 3, 15, 21, 15, 33, 1365, 3, 255, 399, 165, 69, 1365, 3, 435, 7161, 255, 3, 959595, 3, 6765, 903, 345, 141, 23205, 33, 795, 399, 435, 177, 28393365, 3, 255, 32361, 15, 2343, 70050435, 3, 15, 1659, 115005, 249, 1702155, 3, 30705, 136059, 705, 3, 2250885, 3, 16665, 2163
Offset: 0

Views

Author

Keywords

Comments

Same as half the denominators of the even-indexed Bernoulli numbers B_{2*n} for n>0, by the von Staudt-Clausen theorem and Fermat's little theorem. - Bernd C. Kellner and Jonathan Sondow, Jan 02 2017 [This is implemented in the second Maple program. - Peter Luschny, Aug 21 2021]

Examples

			Cosecant numbers {-2*(2^(2*n-1)-1)*Bernoulli(2*n)} are 1, -1/3, 7/15, -31/21, 127/15, -2555/33, 1414477/1365, -57337/3, 118518239/255, -5749691557/399, 91546277357/165, -1792042792463/69, 1982765468311237/1365, -286994504449393/3, 3187598676787461083/435, ... = A001896/A001897.
		

References

  • H. T. Davis, Tables of the Mathematical Functions. Vols. 1 and 2, 2nd ed., 1963, Vol. 3 (with V. J. Fisher), 1962; Principia Press of Trinity Univ., San Antonio, TX, Vol. 2, p. 187.
  • S. A. Joffe, Sums of like powers of natural numbers, Quart. J. Pure Appl. Math. 46 (1914), 33-51.
  • N. E. Nörlund, Vorlesungen über Differenzenrechnung. Springer-Verlag, Berlin, 1924, p. 458.
  • J. Riordan, Combinatorial Identities, Wiley, 1968, p. 199. See Table 3.3.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Programs

  • Magma
    [Denominator(2*(1-2^(2*n-1))*Bernoulli(2*n)): n in [0..55]]; // G. C. Greubel, Apr 06 2019
  • Maple
    b := n -> bernoulli(n)*2^add(i,i=convert(n,base,2));
    a := n -> denom(b(2*n)); # Peter Luschny, May 02 2009
    # Alternative :
    Clausen := proc(n) local i,S; map(i->i+1, numtheory[divisors](n));
    S := select(isprime, %); if S <> {} then mul(i,i=S) else NULL fi end:
    A001897_list := n -> [1,seq(Clausen(2*i)/2,i=1..n-1)];
    A001897_list(52); # Peter Luschny, Oct 03 2011
  • Mathematica
    a[n_] := Denominator[-2*(2^(2*n-1)-1)*BernoulliB[2*n]]; Table[a[n], {n, 0, 55}] (* Jean-François Alcover, Sep 11 2013 *)
  • PARI
    a(n) = denominator(-2*(2^(2*n-1)-1)*bernfrac(2*n)); \\ Michel Marcus, Apr 06 2019
    
  • Sage
    def A001897(n):
        if n == 0:
            return 1
        M = (d + 1 for d in divisors(2 * n))
        return prod(s for s in M if is_prime(s)) / 2
    [A001897(n) for n in range(55)]  # Peter Luschny, Feb 20 2016
    

Formula

a(0)=1, a(n)=(1/2)*A002445(n) for n>=1. - Joerg Arndt, May 07 2012
a(n) = denominator((2*n)!*Li_{2*n}(1)) for n > 0. - Peter Luschny, Jun 29 2012
a(0)=1, a(n) = (1/2)*A027642(2*n) = (3/2)*A277087(n) for n>=1. - Jonathan Sondow, Dec 14 2016
From Peter Luschny, Sep 06 2017: (Start)
a(n) = denominator(r(n)) where r(n) = Sum_{0..n} (-1)^(n-k)*A241171(n, k)/(2*k+1).
a(n) = denominator(bernoulli(2*n, 1/2))/4^n = A033469(n)/4^n. (End)
Apparently a(n) = denominator(Sum_{k=0..2*n-2} (-1)^k*E2(2*n-1, k+1)/binomial(4*n-1, k+1)), where E2(n, k) denotes the second-order Eulerian numbers A340556. - Peter Luschny, Feb 17 2021

A156289 Triangle read by rows: T(n,k) is the number of end rhyme patterns of a poem of an even number of lines (2n) with 1<=k<=n evenly rhymed sounds.

Original entry on oeis.org

1, 1, 3, 1, 15, 15, 1, 63, 210, 105, 1, 255, 2205, 3150, 945, 1, 1023, 21120, 65835, 51975, 10395, 1, 4095, 195195, 1201200, 1891890, 945945, 135135, 1, 16383, 1777230, 20585565, 58108050, 54864810, 18918900, 2027025, 1, 65535, 16076985
Offset: 1

Views

Author

Hartmut F. W. Hoft, Feb 07 2009

Keywords

Comments

T(n,k) is the number of partitions of a set of size 2*n into k blocks of even size [Comtet]. For partitions into odd sized blocks see A136630.
See A241171 for the triangle of ordered set partitions of the set {1,2,...,2*n} into k even sized blocks. - Peter Bala, Aug 20 2014
This triangle T(n,k) gives the sum over the M_3 multinomials A036040 for the partitions of 2*n with k even parts, for 1 <= k <= n. See the triangle A257490 with sums over the entries with k parts, and the Hartmut F. W. Hoft program. - Wolfdieter Lang, May 13 2015

Examples

			The triangle begins
  n\k|..1.....2......3......4......5......6
  =========================================
  .1.|..1
  .2.|..1.....3
  .3.|..1....15.....15
  .4.|..1....63....210....105
  .5.|..1...255...2205...3150....945
  .6.|..1..1023..21120..65835..51975..10395
  ..
T(3,3) = 15. The 15 partitions of the set [6] into three even blocks are:
  (12)(34)(56), (12)(35)(46), (12)(36)(45),
  (13)(24)(56), (13)(25)(46), (13)(26)(45),
  (14)(23)(56), (14)(25)(36), (14)(26)(35),
  (15)(23)(46), (15)(24)(36), (15)(26)(34),
  (16)(23)(45), (16)(24)(35), (16)(25)(34).
Examples of recurrence relation
 T(4,3) = 5*T(3,2) + 9*T(3,3) = 5*15 + 9*15 = 210;
 T(6,5) = 9*T(5,4) + 25*T(5,5) = 9*3150 + 25*945 = 51975.
 T(4,2) = 28 + 35 = 63 (M_3 multinomials A036040 for partitions of 8 with 3 even parts, namely (2,6) and (4^2)). - _Wolfdieter Lang_, May 13 2015
		

References

  • L. Comtet, Analyse Combinatoire, Presses Univ. de France, 1970, Vol. II, pages 61-62.
  • L. Comtet, Advanced Combinatorics, Reidel, 1974, pages 225-226.

Crossrefs

Diagonal T(n, n) is A001147, subdiagonal T(n+1, n) is A001880.
2nd column variant T(n, 2)/3, for 2<=n, is A002450.
3rd column variant T(n, 3)/15, for 3<=n, is A002451.
Sum of the n-th row is A005046.

Programs

  • Maple
    T := proc(n,k) option remember; `if`(k = 0 and n = 0, 1, `if`(n < 0, 0,
    (2*k-1)*T(n-1, k-1) + k^2*T(n-1, k))) end:
    for n from 1 to 8 do seq(T(n,k), k=1..n) od; # Peter Luschny, Sep 04 2017
  • Mathematica
    T[n_,k_] := Which[n < k, 0, n == 1, 1, True, 2/Factorial2[2 k] Sum[(-1)^(k + j) Binomial[2 k, k + j] j^(2 n), {j, 1, k}]]
    (* alternate computation with function triangle[] defined in A257490 *)
    a[n_]:=Map[Apply[Plus,#]&,triangle[n],{2}]
    (* Hartmut F. W. Hoft, Apr 26 2015 *)

Formula

Recursion: T(n,1)=1 for 1<=n; T(n,k)=0 for 1<=n
Generating function for the k-th column of the triangle T(i+k,k):
G(k,x) = Sum_{i>=0} T(i+k,k)*x^i = Product_{j=1..k} (2*j-1)/(1-j^2*x).
Closed form expression: T(n,k) = (2/(k!*2^k))*Sum_{j=1..k} (-1)^(k-j)*binomial(2*k,k-j)*j^(2*n).
From Peter Bala, Feb 21 2011: (Start)
GENERATING FUNCTION
E.g.f. (including a constant 1):
(1)... F(x,z) = exp(x*(cosh(z)-1))
= Sum_{n>=0} R(n,x)*z^(2*n)/(2*n)!
= 1 + x*z^2/2! + (x + 3*x^2)*z^4/4! + (x + 15*x^2 + 15*x^3)*z^6/6! + ....
ROW POLYNOMIALS
The row polynomials R(n,x) begin
... R(1,x) = x
... R(2,x) = x + 3*x^2
... R(3,x) = x + 15*x^2 + 15*x^3.
The egf F(x,z) satisfies the partial differential equation
(2)... d^2/dz^2(F) = x*F + x*(2*x+1)*F' + x^2*F'',
where ' denotes differentiation with respect to x. Hence the row polynomials satisfy the recurrence relation
(3)... R(n+1,x) = x*{R(n,x) + (2*x+1)*R'(n,x) + x*R''(n,x)}
with R(0,x) = 1. The recurrence relation for T(n,k) given above follows from this.
(4)... T(n,k) = (2*k-1)!!*A036969(n,k).
(End)
Showing 1-10 of 31 results. Next