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.

A037239 Numerator of Pi^(2n)/(GAMMA(2n)*(1-2^(-2n))*Zeta(2n)); = 8*(highest power of 2 dividing n).

Original entry on oeis.org

8, 16, 8, 32, 8, 16, 8, 64, 8, 16, 8, 32, 8, 16, 8, 128, 8, 16, 8, 32, 8, 16, 8, 64, 8, 16, 8, 32, 8, 16, 8, 256, 8, 16, 8, 32, 8, 16, 8, 64, 8, 16, 8, 32, 8, 16, 8, 128, 8, 16, 8, 32, 8, 16, 8, 64, 8, 16, 8, 32, 8, 16, 8, 512, 8, 16, 8, 32, 8, 16, 8, 64, 8
Offset: 1

Views

Author

Keywords

Crossrefs

Equals 8*A006519. Denominators given by A002425.

Programs

  • Magma
    [2^(3 + Valuation(n,2)): n in [1..80]]; // G. C. Greubel, Nov 01 2018
  • Maple
    with(numtheory): for n from 1 to 200 do if n mod 2 = 1 then printf(`%d,`,8) else printf(`%d,`,8*2^ifactors(n)[2][1][2]) fi; od:
    seq(2^(3+padic[ordp](n,2)), n=1..73); # Peter Luschny, Apr 03 2014
  • Mathematica
    a[n_] := 8*BitAnd[n, -n]; Table[a[n], {n, 1, 81}] (* Jean-François Alcover, Sep 20 2011, after Joerg Arndt *)
  • PARI
    a(n)=if(n<1,0,8*2^valuation(n,2))
    

Extensions

More terms from James Sellers, Jun 20 2000