A027641 Numerator of Bernoulli number B_n.
1, -1, 1, 0, -1, 0, 1, 0, -1, 0, 5, 0, -691, 0, 7, 0, -3617, 0, 43867, 0, -174611, 0, 854513, 0, -236364091, 0, 8553103, 0, -23749461029, 0, 8615841276005, 0, -7709321041217, 0, 2577687858367, 0, -26315271553053477373, 0, 2929993913841559, 0, -261082718496449122051
Offset: 0
Examples
B_n sequence begins 1, -1/2, 1/6, 0, -1/30, 0, 1/42, 0, -1/30, 0, 5/66, 0, -691/2730, 0, 7/6, 0, -3617/510, ...
References
- M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 810.
- Louis Comtet, Advanced Combinatorics, Reidel, 1974, p. 49.
- Harold 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. 230.
- Harold M. Edwards, Riemann's Zeta Function, Academic Press, NY, 1974; see p. 11.
- Steven R. Finch, Mathematical Constants, Cambridge, 2003, Section 1.6.1.
- Herman H. Goldstine, A History of Numerical Analysis, Springer-Verlag, 1977; Section 2.6.
- L. M. Milne-Thompson, Calculus of Finite Differences, 1951, p. 137.
- Hans Rademacher, Topics in Analytic Number Theory, Springer, 1973, Chap. 1.
Links
- T. D. Noe, Table of n, a(n) for n = 0..200
- M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy].
- C. M. Bender and K. A. Milton, Continued fraction as a discrete nonlinear transform, arXiv:hep-th/9304052, 1993.
- Beáta Bényi and Péter Hajnal, Poly-Bernoulli Numbers and Eulerian Numbers, arXiv:1804.01868 [math.CO], 2018.
- H. Bergmann, Eine explizite Darstellung der Bernoullischen Zahlen, Math. Nach. 34 (1967), 377-378. Math Rev 36#4030.
- Richard P. Brent and David Harvey, Fast computation of Bernoulli, Tangent and Secant numbers, arXiv preprint arXiv:1108.0286 [math.CO], 2011.
- K.-W. Chen, Algorithms for Bernoulli numbers and Euler numbers, J. Integer Sequences, 4 (2001), #01.1.6.
- W. Y.C. Chen, J. J. F. Guo and L. X. W. Wang, Log-behavior of the Bernoulli Numbers, arXiv:1208.5213 [math.CO], 2012-2013.
- Abraham de Moivre, The Doctrine of Chances, 3rd edition, London, 1733, p. 95.
- K. Dilcher, A Bibliography of Bernoulli Numbers (Alphabetically Indexed Authorwise).
- Bakir Farhi, Formulas Involving Bernoulli and Stirling Numbers of Both Kinds, Journal of Integer Sequences, Vol. 28 (2025), Article 25.2.6. See p. 16.
- Ghislain R. Franssens, On a Number Pyramid Related to the Binomial, Deleham, Eulerian, MacMahon and Stirling number triangles, Journal of Integer Sequences, Vol. 9 (2006), Article 06.4.1.
- H. W. Gould and J. Quaintance, Bernoulli Numbers and a New Binomial Transform Identity, J. Int. Seq. 17 (2014), Article 14.2.2.
- M.-P. Grosset and A. P. Veselov, Bernoulli numbers and solitons, arXiv:math/0503175 [math.GM], 2005.
- David Harvey, A multimodular algorithm for computing Bernoulli numbers, arXiv:0807.1347 [math.NT], Jul 08 2008.
- A. Iványi, Leader election in synchronous networks, Acta Univ. Sapientiae, Mathematica, 5, 2 (2013) 54-82.
- Sumit Kumar Jha, A new explicit formula for the Bernoulli numbers in terms of the Stirling numbers of the second kind, Notes on Number Theory and Discrete Mathematics (2020) Vol. 26, No. 2, 148-151.
- M. Kaneko, The Akiyama-Tanigawa algorithm for Bernoulli numbers, J. Integer Sequences, 3 (2000), Article 00.2.9.
- Wolfdieter Lang, On Sums of Powers of Arithmetic Progressions, and Generalized Stirling, Eulerian and Bernoulli numbers, arXiv:1707.04451 [math.NT], 2017.
- Guo-Dong Liu, H. M. Srivastava, and Hai-Quing Wang, Some Formulas for a Family of Numbers Analogous to the Higher-Order Bernoulli Numbers, J. Int. Seq. 17 (2014), Article 14.4.6.
- F. Luca and P. Stanica, On some conjectures on the monotonicity of some arithmetical sequences, J. Combin. Number Theory 4 (2012) 1-10.
- Peter Luschny, The Bernoulli Manifesto. A survey on the occasion of the 300th anniversary of the publication of Jacob Bernoulli's Ars Conjectandi, 1713-2013.
- Romeo Meštrović, On a Congruence Modulo n^3 Involving Two Consecutive Sums of Powers, Journal of Integer Sequences, Vol. 17 (2014), Article 14.8.4.
- Hisanori Mishima, Bernoulli numbers (n = 2 to 114), (n = 116 to 154) (Factorizations).
- Ben Moonen, A remark on the paper of Deninger and Murre, arXiv:2407.05837 [math.AG], 2024. See p. 6.
- A. F. Neto, Carlitz's Identity for the Bernoulli Numbers and Zeon Algebra, J. Int. Seq. 18 (2015), Article 15.5.6.
- A. F. Neto, A note of a Theorem of Guo, Mezo, and Qi, J. Int. Seq. 19 (2016) Article 16.4.8.
- Niels Nielsen, Traite Elementaire des Nombres de Bernoulli, Gauthier-Villars, 1923, pp. 398.
- Simon Plouffe, The First 498 Bernoulli numbers. [Project Gutenberg Etext]
- Ed Sandifer, How Euler Did It, Bernoulli numbers.
- N. J. A. Sloane, "A Handbook of Integer Sequences" Fifty Years Later, arXiv:2301.03149 [math.NT], 2023, p. 5.
- J. Singh, On an Arithmetic Convolution, J. Int. Seq. 17 (2014) Article 14.6.7.
- J. Sondow and E. Tsukerman, The p-adic order of power sums, the Erdos-Moser equation, and Bernoulli numbers, arXiv:1401.0322 [math.NT], 2014; see section 5.
- Eric Weisstein's World of Mathematics, Bernoulli Number.
- Eric Weisstein's World of Mathematics, Polygamma Function.
- Roman Witula, Damian Slota and Edyta Hetmaniok, Bridges between different known integer sequences, Annales Mathematicae et Informaticae, 41 (2013) pp. 255-263.
- Wolfram Research, Generating functions of B_n & B_2n.
- Index entries for "core" sequences.
- Index entries for sequences related to Bernoulli numbers.
Crossrefs
Programs
-
Magma
[Numerator(Bernoulli(n)): n in [0..40]]; // Vincenzo Librandi, Mar 17 2014
-
Maple
B := n -> add((-1)^m*m!*Stirling2(n, m)/(m+1), m=0..n); B := n -> bernoulli(n); seq(numer(bernoulli(n)), n=0..40); # Zerinvary Lajos, Apr 08 2009
-
Mathematica
Table[ Numerator[ BernoulliB[ n]], {n, 0, 40}] (* Robert G. Wilson v, Oct 11 2004 *) Numerator[ Range[0, 40]! CoefficientList[ Series[x/(E^x - 1), {x, 0, 40}], x]] Numerator[CoefficientList[Series[PolyGamma[1, 1/x]/x - x, {x, 0, 40}, Assumptions -> x > 0], x]] (* Vladimir Reshetnikov, Apr 24 2013 *)
-
Maxima
B(n):=(-1)^((n))*sum((stirling1(n,k)*stirling2(n+k,n))/binomial(n+k,k),k,0,n); makelist(num(B(n)),n,0,20); /* Vladimir Kruchinin, Mar 16 2013 */
-
PARI
a(n)=numerator(bernfrac(n))
-
Python
from sympy import bernoulli from fractions import Fraction [bernoulli(i).as_numer_denom()[0] for i in range(51)] # Indranil Ghosh, Mar 18 2017
-
Python
from sympy import bernoulli def A027641(n): return bernoulli(n).p print([A027641(n) for n in range(80)]) # M. F. Hasler, Jun 11 2019
-
SageMath
[bernoulli(n).numerator() for n in range(41)] # Peter Luschny, Feb 19 2016
-
SageMath
# Alternatively: def A027641_list(len): f, R, C = 1, [1], [1]+[0]*(len-1) for n in (1..len-1): f *= n for k in range(n, 0, -1): C[k] = C[k-1] / (k+1) C[0] = -sum(C[k] for k in (1..n)) R.append((C[0]*f).numerator()) return R A027641_list(41) # Peter Luschny, Feb 20 2016
Formula
E.g.f: x/(exp(x) - 1); take numerators.
Recurrence: B^n = (1+B)^n, n >= 2 (interpreting B^j as B_j).
B_{2n}/(2n)! = 2*(-1)^(n-1)*(2*Pi)^(-2n) Sum_{k>=1} 1/k^(2n) (gives asymptotics) - Rademacher, p. 16, Eq. (9.1). In particular, B_{2*n} ~ (-1)^(n-1)*2*(2*n)!/(2*Pi)^(2*n).
Sum_{i=1..n-1} i^k = ((n+B)^(k+1)-B^(k+1))/(k+1) (interpreting B^j as B_j).
B_{n-1} = - Sum_{r=1..n} (-1)^r binomial(n, r) r^(-1) Sum_{k=1..r} k^(n-1). More concisely, B_n = 1 - (1-C)^(n+1), where C^r is replaced by the arithmetic mean of the first r n-th powers of natural numbers in the expansion of the right-hand side. [Bergmann]
Sum_{i>=1} 1/i^(2k) = zeta(2k) = (2*Pi)^(2k)*|B_{2k}|/(2*(2k)!).
B_{2n} = (-1)^(m-1)/2^(2m+1) * Integral{-inf..inf, [d^(m-1)/dx^(m-1) sech(x)^2 ]^2 dx} (see Grosset/Veselov).
Let B(s,z) = -2^(1-s)(i/Pi)^s s! PolyLog(s,exp(-2*i*Pi/z)). Then B(2n,1) = B_{2n} for n >= 1. Similarly the numbers B(2n+1,1), which might be called Co-Bernoulli numbers, can be considered, and it is remarkable that Leonhard Euler in 1755 already calculated B(3,1) and B(5,1) (Opera Omnia, Ser. 1, Vol. 10, p. 351). (Cf. the Luschny reference for a discussion.) - Peter Luschny, May 02 2009
The B_n sequence is the left column of the inverse of triangle A074909, the "beheaded" Pascal's triangle. - Gary W. Adamson, Mar 05 2012
From Sergei N. Gladkovskii, Dec 04 2012: (Start)
E.g.f. E(x)= 2 - x/(tan(x) + sec(x) - 1)= Sum_{n>=0} a(n)*x^n/n!, a(n)=|B(n)|, where B(n) is Bernoulli number B_n.
E(x)= 2 + x - B(0), where B(k)= 4*k+1 + x/(2 + x/(4*k+3 - x/(2 - x/B(k+1)))); (continued fraction, 4-step). (End)
E.g.f.: x/(exp(x)-1)= U(0); U(k)= 2*k+1 - x(2*k+1)/(x + (2*k+2)/(1 + x/U(k+1))); (continued fraction). - Sergei N. Gladkovskii, Dec 05 2012
E.g.f.: 2*(x-1)/(x*Q(0)-2) where Q(k) = 1 + 2*x*(k+1)/((2*k+1)*(2*k+3) - x*(2*k+1)*(2*k+3)^2/(x*(2*k+3) + 4*(k+1)*(k+2)/Q(k+1))); (recursively defined continued fraction). - Sergei N. Gladkovskii, Feb 26 2013
a(n) = numerator(B(n)), B(n) = (-1)^n*Sum_{k=0..n} Stirling1(n,k) * Stirling2(n+k,n) / binomial(n+k,k). - Vladimir Kruchinin, Mar 16 2013
E.g.f.: x/(exp(x)-1) = E(0) where E(k) = 2*k+1 - x/(2 + x/E(k+1)); (continued fraction). - Sergei N. Gladkovskii, Mar 16 2013
G.f. for Bernoulli(n) = a(n)/A027642(n): psi_1(1/x)/x - x, where psi_n(z) is the polygamma function, psi_n(z) = (d/dz)^(n+1) log(Gamma(z)). - Vladimir Reshetnikov, Apr 24 2013
E.g.f.: 2*E(0) - 2*x, where E(k)= x + (k+1)/(1 + 1/(1 - x/E(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Jul 10 2013
B_n = Sum_{m=0..n} (-1)^m *A131689(n, m)/(m + 1), n >= 0. See one of the Maple programs. - Wolfdieter Lang, May 05 2017
a(n) = numerator((-1)^n*A155585(n-1)*n/(4^n-2^n)), for n>=1. - Mats Granvik, Nov 26 2017
From Artur Jasinski, Dec 30 2020: (Start)
a(n) = numerator(-2*cos(Pi*n/2)*Gamma(n+1)*zeta(n)/(2*Pi)^n), for n=0 and n>1.
a(n) = numerator(-n*zeta(1-n)), for n=0 and n>1. (End)
a(n) = numerator(Sum_{k=0..n-1} (-1)^(k-1)*k!*Stirling2(n-1,k) / ((k+1)*(k+2))), for n>0 (see Jha link). - Bill McEachen, Jul 17 2025
Comments