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

A050970 Numerator of S(n)/Pi^n, where S(n) = Sum_{k=-inf..+inf} (4k+1)^(-n).

Original entry on oeis.org

1, 1, 1, 1, 5, 1, 61, 17, 277, 31, 50521, 691, 540553, 5461, 199360981, 929569, 3878302429, 3202291, 2404879675441, 221930581, 14814847529501, 4722116521, 69348874393137901, 56963745931, 238685140977801337, 14717667114151
Offset: 1

Views

Author

Keywords

Comments

Reduced numerators of Favard constants.

Examples

			The first few values of S(n)/Pi^n are 1/4, 1/8, 1/32, 1/96, 5/1536, 1/960, ...
		

Crossrefs

Denominators: A068205. See also A050971.

Programs

  • Maple
    S := proc(n, k) option remember; if k = 0 then `if`(n = 0, 1, 0) else
    S(n, k - 1) + S(n - 1, n - k) fi end: EZ := n -> S(n, n)/(2^n * n!):
    A050970 := n -> numer(EZ(n-1)): seq(A050970(n), n=1..26); # Peter Luschny, Aug 02 2017
    # alternative
    A050970 := proc(n)
        if type(n,'even') then
            (-1)^(n/2)*2^(n-2)/(n-1)!*euler(n-1,0) ;
        else
            (-1)^((n-1)/2)*2^(n-2)/(n-1)!*euler(n-1,1/2) ;
        end if;
        %/2^n ;
        numer(%) ;
    end proc:
    seq(A050970(n),n=1..20) ; # R. J. Mathar, Jun 26 2024
  • Mathematica
    s[n_] := Sum[(4*k + 1)^(-n), {k, -Infinity, Infinity}]; a[n_] := Numerator[FullSimplify[s[n]/Pi^n]]; a[1] = 1; Table[a[n], {n, 1, 26}] (* Jean-François Alcover, Oct 25 2012 *)
    s[n_?EvenQ] := (-1)^(n/2-1)*(2^n-1)*BernoulliB[n]/(2*n!); s[n_?OddQ] := (-1)^((n-1)/2)*2^(-n-1)*EulerE[n-1]/(n-1)!; Table[s[n] // Numerator, {n, 1, 26}] (* Jean-François Alcover, May 13 2013 *)
    a[n_] := 4*Sum[((-1)^k/(2*k+1))^n, {k, 0, Infinity}] /. Pi -> 1 // Numerator; Table[a[n], {n, 1, 26}] (* Jean-François Alcover, Jun 20 2014 *)
    Table[4/(2 Pi)^n LerchPhi[(-1)^n, n, 1/2], {n, 21}] // Numerator (* Eric W. Weisstein, Aug 02 2017 *)
    Table[4/Pi^n If[Mod[n, 2] == 0, DirichletLambda, DirichletBeta][n], {n, 21}] // Numerator (* Eric W. Weisstein, Aug 02 2017 *)
  • PARI
    {a(n) = if( n<0, 0, numerator( polcoeff( 1 / (1 - tan(x/4 + x * O(x^n))), n)))}; /* Michael Somos, Nov 11 2014 */

Formula

There is a simple formula in terms of Euler and Bernoulli numbers.
a(2n) = A046976(n), a(2n+1) = A089171(n+1) (conjectured).
Numerator of coefficients of expansion of (sec(x/2) + tan(x/2) + 1)/2 in powers of x. - Sergei N. Gladkovskii, Nov 11 2014

Extensions

Entry revised by N. J. A. Sloane, Mar 24 2002

A050971 4*Denominator of S(n)/Pi^n, where S(n) = Sum_{k=-inf..+inf} ((4k+1)^(-n)).

Original entry on oeis.org

1, 2, 8, 24, 384, 240, 46080, 40320, 2064384, 725760, 3715891200, 159667200, 392398110720, 12454041600, 1428329123020800, 20922789888000, 274239191619993600, 711374856192000, 1678343852714360832000
Offset: 1

Views

Author

Keywords

Comments

Reduced denominators of the Favard constants.

Examples

			The first few values of S(n)/Pi^n are 1/4, 1/8, 1/32, 1/96, 5/1536, 1/960, ...
		

Crossrefs

Cf. A068205, A050970 (numerators).

Programs

  • Maple
    S := proc(n, k) option remember; if k = 0 then `if`(n = 0, 1, 0) else
    S(n, k - 1) + S(n - 1, n - k) fi end: EZ := n -> S(n, n)/(2^n*n!):
    A050971 := n -> denom(EZ(n-1)): seq(A050971(n), n=1..19); # Peter Luschny, Aug 02 2017
  • Mathematica
    s[n_] := Sum[(4*k + 1)^(-n), {k, -Infinity, Infinity}]; a[n_] := 4*s[n]/Pi^n ; a[1] = 1; Table[a[n], {n, 1, 19}] // Denominator (* Jean-François Alcover, Nov 05 2012 *)
    a[n_] := 4*Sum[((-1)^k/(2*k+1))^n, {k, 0, Infinity}] /. Pi -> 1 // Denominator; Table[a[n], {n, 1, 19}] (* Jean-François Alcover, Jun 20 2014 *)
    Table[4/(2 Pi)^n LerchPhi[(-1)^n, n, 1/2], {n, 21}] // Denominator (* Eric W. Weisstein, Aug 02 2017 *)
    Table[4/Pi^n If[Mod[n, 2] == 0, DirichletLambda, DirichletBeta][n], {n, 21}] // Denominator (* Eric W. Weisstein, Aug 02 2017 *)

Formula

There is a simple formula in terms of Euler and Bernoulli numbers.

Extensions

Entry revised by N. J. A. Sloane, Mar 24 2002

A246006 a(2n) = numerator of |Bernoulli(2n)|, a(2n+1) = Euler(2n).

Original entry on oeis.org

1, 1, 1, 1, 1, 5, 1, 61, 1, 1385, 5, 50521, 691, 2702765, 7, 199360981, 3617, 19391512145, 43867, 2404879675441, 174611, 370371188237525, 854513, 69348874393137901, 236364091, 15514534163557086905, 8553103, 4087072509293123892361, 23749461029, 1252259641403629865468285
Offset: 0

Views

Author

Eric Chen, Nov 13 2014

Keywords

Comments

Primes p which divide at least one a(n) for n<=p-2 are called weakly-irregular primes. For example, 19|a(11), 31|a(23), 37|a(32), 43|a(13), 47|a(15), 59|a(44), 61|a(7), ... - Eric Chen, Nov 26 2014
The weakly-irregular primes below 500 are 19, 31, 37, 43, 47, 59, 61, 67, 71, 79, 101, 103, 131, 137, 139, 149, 157, 193, 223, 233, 241, 251, 257, 263, 271, 277, 283, 293, 307, 311, 347, 349, 353, 359, 373, 379, 389, 401, 409, 419, 421, 433, 461, 463, 467, 491. - Eric Chen, Nov 26 2014
A prime can divide more than one a(n) for n<=p-2; for example, 67 divides both a(27) and a(58); additional examples are 101, 149, 157, 241, 263, 307, 311, ... . - Eric Chen, Nov 26 2014
Smallest values of k such that the n-th weakly-irregular prime divides a(k) are 11, 23, 32, 13, 15, 44, 7, 27, 29, 19, 63, 24, 22, 43, 129, 130, 62, 75, ... . - Eric Chen, Nov 26 2014
Smallest prime factors (>= n+2) of a(n) are 1, 1, 1, 1, 1, 1, 1, 61, 1, 277, 1, 19, 691, 43, 1, 47, 3617, 228135437, 43867, 79, 283, 41737, 131, 31, 103, 2137, 657931, 67, 9349, 71, ... . - Eric Chen, Nov 26 2014
The irregular pairs are (61, 7), (277, 9), (19, 11), (2659, 11), (691, 12), (43, 13), (967, 13), (47, 15), (4241723, 15), (3617, 16), (228135437, 17), (43867, 18), (79, 19), (349, 19), (84224971, 19), ... . - Eric Chen, Nov 26 2014

Examples

			Euler(10) = 50521, so a(11) = 50521.
Bernoulli(12) = 691/2730, so a(12) = 691.
		

Crossrefs

Programs

  • Mathematica
    a246006[n_] := If[EvenQ[n], Abs[Numerator[BernoulliB[n]]], Abs[EulerE[n-1]]]; Table[a246006[n], {n, 0, 99}]
  • Python
    from sympy import euler, bernoulli
    def A246006(n): return abs(euler(n-1)) if n&1 else abs(bernoulli(n)).p # Chai Wah Wu, Apr 15 2023
Showing 1-3 of 3 results.