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

A022629 Expansion of Product_{m>=1} (1 + m*q^m).

Original entry on oeis.org

1, 1, 2, 5, 7, 15, 25, 43, 64, 120, 186, 288, 463, 695, 1105, 1728, 2525, 3741, 5775, 8244, 12447, 18302, 26424, 37827, 54729, 78330, 111184, 159538, 225624, 315415, 444708, 618666, 858165, 1199701, 1646076, 2288961, 3150951, 4303995, 5870539, 8032571, 10881794, 14749051, 19992626
Offset: 0

Views

Author

Keywords

Comments

Sum of products of terms in all partitions of n into distinct parts. - Vladeta Jovovic, Jan 19 2002
Number of partitions of n into distinct parts, when there are j sorts of part j. a(4) = 7: 4, 4', 4'', 4''', 31, 3'1, 3''1. - Alois P. Heinz, Aug 24 2015

Examples

			The partitions of 6 into distinct parts are 6, 1+5, 2+4, 1+2+3, the corresponding products are 6,5,8,6 and their sum is a(6) = 25.
		

Crossrefs

Programs

  • Magma
    Coefficients(&*[(1+m*x^m):m in [1..40]])[1..40] where x is PolynomialRing(Integers()).1; // G. C. Greubel, Feb 16 2018
  • Maple
    b:= proc(n, i) option remember; local f, g;
          if n=0 then [1, 1] elif i<1 then [0, 0]
        else f:= b(n, i-1); g:= `if`(i>n, [0, 0], b(n-i, i-1));
             [f[1]+g[1], f[2]+g[2]*i]
          fi
        end:
    a:= n-> b(n, n)[2]:
    seq(a(n), n=0..60);  # Alois P. Heinz, Nov 02 2012
    # second Maple program:
    b:= proc(n, i) option remember; `if`(i*(i+1)/2n, 0, i*b(n-i, i-1))))
        end:
    a:= n-> b(n$2):
    seq(a(n), n=0..60);  # Alois P. Heinz, Aug 24 2015
  • Mathematica
    nn=20;CoefficientList[Series[Product[1+i x^i,{i,1,nn}],{x,0,nn}],x]  (* Geoffrey Critzer, Nov 02 2012 *)
    nmax = 50; CoefficientList[Series[Exp[Sum[(-1)^(j+1)*PolyLog[-j, x^j]/j, {j, 1, nmax}]], {x, 0, nmax}], x] (* Vaclav Kotesovec, Nov 28 2015 *)
    (* More efficient program: 10000 terms, 4 minutes, 100000 terms, 6 hours *) nmax = 40; poly = ConstantArray[0, nmax+1]; poly[[1]] = 1; poly[[2]] = 1; Do[Do[poly[[j+1]] += k*poly[[j-k+1]], {j, nmax, k, -1}];, {k, 2, nmax}]; poly (* Vaclav Kotesovec, Jan 06 2016 *)
  • PARI
    N=66; q='q+O('q^N); Vec(prod(n=1,N, (1+n*q^n) )) \\ Joerg Arndt, Oct 06 2012
    

Formula

Conjecture: log(a(n)) ~ sqrt(n/2) * (log(2*n) - 2). - Vaclav Kotesovec, May 08 2018

A080130 Decimal expansion of exp(-gamma).

Original entry on oeis.org

5, 6, 1, 4, 5, 9, 4, 8, 3, 5, 6, 6, 8, 8, 5, 1, 6, 9, 8, 2, 4, 1, 4, 3, 2, 1, 4, 7, 9, 0, 8, 8, 0, 7, 8, 6, 7, 6, 5, 7, 1, 0, 3, 8, 6, 9, 2, 5, 1, 5, 3, 1, 6, 8, 1, 5, 4, 1, 5, 9, 0, 7, 6, 0, 4, 5, 0, 8, 7, 9, 6, 7, 0, 7, 4, 2, 8, 5, 6, 3, 7, 1, 3, 2, 8, 7, 1, 1, 5, 8, 9, 3, 4, 2, 1, 4, 3, 5, 8, 7, 6, 7, 3, 1
Offset: 0

Views

Author

Benoit Cloitre, Jan 26 2003

Keywords

Comments

By Mertens's third theorem, lim_{k->oo} (H_{k-1}*Product_{prime p<=k} (1-1/p)) = exp(-gamma), where H_n is the n-th harmonic number. Let F(x) = lim_{n->oo} ((Sum_{k<=n} 1/k^x)*(Product_{prime p<=n} (1-1/p^x))) for real x in the interval 0 < x < 1. Consider the function F(s) of the complex variable s, but without the analytic continuation of the zeta function, in the critical strip 0 < Re(s) < 1. - Thomas Ordowski, Jan 26 2023

Examples

			0.56145948356688516982414321479088078676571...
		

References

  • Steven R. Finch, Mathematical Constants, Cambridge University Press, 2003, Sections 1.5 p. 29, 2.7 p. 117 and 5.4 p. 285.

Crossrefs

Programs

  • Magma
    R:= RealField(100); Exp(-EulerGamma(R)); // G. C. Greubel, Aug 28 2018
  • Maple
    evalf(exp(-gamma), 120);  # Alois P. Heinz, Feb 24 2022
  • Mathematica
    RealDigits[N[Exp[-EulerGamma], 200]][[1]] (* Arkadiusz Wesolowski, Aug 26 2012 *)
  • PARI
    default(realprecision, 100); exp(-Euler) \\ G. C. Greubel, Aug 28 2018
    

Formula

Equals lim inf_{n->oo} phi(n)*log(log(n))/n. - Arkadiusz Wesolowski, Aug 26 2012
From Alois P. Heinz, Dec 05 2018: (Start)
Equals lim_{n->oo} A322364(n)/(n*A322365(n)).
Equals lim_{n->oo} A322380(n)/A322381(n). (End)
Equals lim_{k->oo} log(k)*Product_{prime p<=k} (1-1/p). - Amiram Eldar, Jul 09 2020
Equals lim_{n->oo} A007838(n)/A000142(n). - Alois P. Heinz, Feb 24 2022
Equals Product_{k>=1} (1+1/k)*exp(-1/k). - Amiram Eldar, Mar 20 2022
Equals A001113^(-A001620). - Omar E. Pol, Dec 14 2022
Equals lim_{n->oo} (A001008(p_n-1)/A002805(p_n-1))*(A038110(n+1)/A060753(n+1)), where p_n = A000040(n). - Thomas Ordowski, Jan 26 2023

A323339 Numerator of the sum of inverse products of parts in all compositions of n.

Original entry on oeis.org

1, 1, 3, 7, 11, 347, 3289, 1011, 38371, 136553, 4320019, 12528587, 40771123, 29346499543, 129990006917, 1927874590951, 903657004321, 437445829053473, 12456509813711881, 187206004658210129, 1974369484466728177, 1967745662306280217, 21401375717067880189
Offset: 0

Views

Author

Alois P. Heinz, Jan 11 2019

Keywords

Comments

Numerators of the INVERT transform of reciprocal integers.

Examples

			1/1, 1/1, 3/2, 7/3, 11/3, 347/60, 3289/360, 1011/70, 38371/1680, 136553/3780, 4320019/75600, 12528587/138600, 40771123/285120, ... = A323339/A323340
		

Crossrefs

Programs

  • Maple
    b:= proc(n) option remember;
         `if`(n=0, 1, add(b(n-j)/j, j=1..n))
        end:
    a:= n-> numer(b(n)):
    seq(a(n), n=0..25);
  • Mathematica
    nmax = 20; Numerator[CoefficientList[Series[1/(1 + Log[1-x]), {x, 0, nmax}], x]] (* Vaclav Kotesovec, Feb 12 2024 *)

Formula

G.f. for fractions: 1 / (1 + log(1 - x)). - Ilya Gutkovskiy, Nov 12 2019
a(n) = numerator( A007840(n)/n! ). - Alois P. Heinz, Jan 04 2024
A323339(n)/A323340(n) ~ exp(n) / (exp(1) - 1)^(n+1). - Vaclav Kotesovec, Feb 12 2024

A177208 Numerators of exponential transform of 1/n.

Original entry on oeis.org

1, 1, 3, 17, 19, 81, 8351, 184553, 52907, 1768847, 70442753, 1096172081, 22198464713, 195894185831, 42653714271997, 30188596935106763, 20689743895700791, 670597992748852241, 71867806446352961329, 8445943795439038164379, 379371134635840861537
Offset: 0

Views

Author

Keywords

Comments

b(n) = a(n)/A177209(n) is the sum over all set partitions of [n] of the product of the reciprocals of the part sizes.
Numerators of moments of Dickman-De Bruijn distribution as shown on page 257 of Cellarosi and Sinai. [Jonathan Vos Post, Jan 07 2012]

Examples

			For n=4, there is 1 set partition with a single part of size 4, 4 with sizes [3,1], 3 with sizes [2,2], 6 with sizes [2,1,1], and 1 with sizes [1,1,1,1]; so b(4) = 1/4 + 4/(3*1) + 3/(2*2) + 6/(2*1*1) + 1/(1^4) = 1/4 + 4/3 + 3/4 + 3 + 1 = 19/4.
		

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), pp. 228-230.
  • Knuth, Donald E., and Luis Trabb Pardo. "Analysis of a simple factorization algorithm." Theoretical Computer Science 3.3 (1976): 321-348. See Eq. (6.6) and (6.7), page 334.

Crossrefs

Programs

  • Maple
    b:= proc(n) option remember; `if`(n=0, 1,
          add(binomial(n-1, j-1)*b(n-j)/j, j=1..n))
        end:
    a:= n-> numer(b(n)):
    seq(a(n), n=0..25); # Alois P. Heinz, Jan 08 2012
  • Mathematica
    b[n_] := b[n] = If[n==0, 1, Sum[Binomial[n-1, j-1]*b[n-j]/j, {j, 1, n}]]; a[n_] := Numerator[b[n]]; Table[a[n], {n, 0, 25}] (* Jean-François Alcover, Feb 21 2017, after Alois P. Heinz *)
  • PARI
    Vec(serlaplace(exp(sum(n=1,30,x^n/(n*n!),O(x^31)))))

Formula

E.g.f. for fractions is exp(f(z)), where f(z) = sum(k>0, z^k/(k*k!)) = integral(0..z,(exp(t)-1)/t dt) = Ei(z) - gamma - log(z) = -Ein(-z). Here gamma is Euler's constant, and Ei and Ein are variants of the exponential integral.
Knuth & Trabb-Pardo (6.7) gives a recurrence. - N. J. A. Sloane, Nov 09 2022

A322364 Numerator of the sum of inverse products of parts in all partitions of n.

Original entry on oeis.org

1, 1, 3, 11, 7, 27, 581, 4583, 2327, 69761, 775643, 147941, 30601201, 30679433, 10928023, 6516099439, 445868889691, 298288331489, 7327135996801, 1029216937671847, 14361631943741, 837902013393451, 2766939485246012129, 274082602410356881, 835547516381094139939
Offset: 0

Views

Author

Alois P. Heinz, Dec 04 2018

Keywords

Examples

			1/1, 1/1, 3/2, 11/6, 7/3, 27/10, 581/180, 4583/1260, 2327/560, 69761/15120, 775643/151200, 147941/26400, 30601201/4989600, 30679433/4633200 ... = A322364/A322365
		

Crossrefs

Programs

  • Maple
    b:= proc(n, i) option remember; `if`(n=0 or i=1, 1,
          b(n, i-1) +b(n-i, min(i, n-i))/i)
        end:
    a:= n-> numer(b(n$2)):
    seq(a(n), n=0..30);
  • Mathematica
    b[n_, i_] := b[n, i] = If[n==0||i==1, 1, b[n, i-1] + b[n-i, Min[i, n-i]]/i];
    a[n_] := Numerator[b[n, n]];
    a /@ Range[0, 30] (* Jean-François Alcover, Apr 29 2020, after Alois P. Heinz *)
  • PARI
    a(n) = {my(s=0); forpart(p=n, s += 1/vecprod(Vec(p))); numerator(s);} \\ Michel Marcus, Apr 29 2020

Formula

Limit_{n-> infinity} a(n)/(n*A322365(n)) = exp(-gamma) = A080130.

A322381 Denominator of the sum of inverse products of parts in all strict partitions of n.

Original entry on oeis.org

1, 1, 2, 6, 12, 60, 120, 280, 168, 210, 1680, 2640, 332640, 4324320, 8648640, 43243200, 900900, 735134400, 3150576, 2618916300, 83805321600, 586637251200, 586637251200, 749592043200, 2248776129600, 642507465600, 13492656777600, 41644002400, 53970627110400
Offset: 0

Views

Author

Alois P. Heinz, Dec 05 2018

Keywords

Crossrefs

See A322380 for more information.

Programs

  • Maple
    b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
          b(n, i-1) +b(n-i, min(i-1, n-i))/i))
        end:
    a:= n-> denom(b(n$2)):
    seq(a(n), n=0..30);
  • Mathematica
    b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0, b[n, i - 1] + b[n - i, Min[i - 1, n - i]]/i]];
    a[n_] := Denominator[b[n, n]];
    a /@ Range[0, 30] (* Jean-François Alcover, Feb 25 2020, after Alois P. Heinz *)

A323290 Numerator of the sum of inverse products of cycle sizes in all permutations of [n].

Original entry on oeis.org

1, 1, 3, 19, 107, 641, 51103, 1897879, 7860361, 505249081, 40865339743, 1355547261301, 244350418462637, 34907820791828741, 1949845703291363567, 1136592473036395958917, 31690844708764028510969, 2681369908698254192692979, 768531714669026186032238737
Offset: 0

Views

Author

Alois P. Heinz, Jan 09 2019

Keywords

Examples

			1/1, 1/1, 3/2, 19/6, 107/12, 641/20, 51103/360, 1897879/2520, 7860361/1680, 505249081/15120, 40865339743/151200, ... = A323290/A323291
		

Crossrefs

Programs

  • Maple
    b:= proc(n) option remember; `if`(n=0, 1, add(
          b(n-j)*binomial(n-1, j-1)*(j-1)!/j, j=1..n))
        end:
    a:= n-> numer(b(n)):
    seq(a(n), n=0..20);
  • Mathematica
    nmax = 20; Numerator[CoefficientList[Series[Exp[PolyLog[2, x]], {x, 0, nmax}], x] * Range[0, nmax]!] (* Vaclav Kotesovec, Feb 12 2024 *)

Formula

E.g.f.: exp(polylog(2,x)) (for fractions A323290(n)/A323291(n)). - Vaclav Kotesovec, Feb 12 2024
A323290(n)/A323291(n) ~ exp(Pi^2/6) * n! / n^2. - Vaclav Kotesovec, Feb 14 2024
Showing 1-7 of 7 results.