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

A215974 Numbers n such that Sum_{k=1..n} k!/2^k is an integer.

Original entry on oeis.org

0, 2, 5, 12, 14, 25, 29, 54, 60, 62, 3445, 108995, 3625182, 13951972, 28010901, 7165572247, 14335792539, 114636743486, 229264368709, 458534096494
Offset: 1

Views

Author

M. F. Hasler, Aug 29 2012

Keywords

Comments

This sequence lists the indices n for which A215976(n)=0 (power of 2 in denominator) and for which A215990 (numerator of the sum) may be even.

Examples

			a(1)=0 is in the sequence because sum(..., 1 <= k <= 0)=0 (empty sum) is an integer.
1 is not in the sequence because 1!/2^1 = 1/2 is not an integer.
a(2)=2 is in the sequence because 1!/2^1 + 2!/2^2 = 1 is an integer.
		

Crossrefs

Programs

  • Mathematica
    sum = 0; Select[Range[0, 10^4], IntegerQ[sum += #!/2^#] &] (* Robert Price, Apr 04 2019 *)
  • PARI
    is_A215974(n)=denominator(sum(k=1,n,k!/2^k))==1
    
  • PARI
    s=0;for(k=1,9e9,denominator(s+=k!/2^k)==1&print1(k,","))

Formula

A215974(n) = A215972(n)-1 for all n. (The two sequences differ only in the use of the upper limit. The present convention seems more natural, the other one was used in the post on the NmbrThry list.)

Extensions

Terms through a(20) from Aart Blokhuis and Benne de Weger, Aug 30 2012, who thank Jan Willem Knopper for efficient programming. - N. J. A. Sloane, Aug 30 2012

A215990 Numerator of sum( k!/2^k, k=1..n ).

Original entry on oeis.org

0, 1, 1, 7, 13, 7, 73, 461, 1721, 7391, 35741, 95833, 140902, 7208291, 6221977, 738064507, 5846167507, 49265043007, 440034922507, 4152348777757, 41275487330257, 431068442131507, 4718790944945257, 27013799863651691, 322866652557800441, 502628413904332477
Offset: 0

Views

Author

M. F. Hasler, Aug 29 2012

Keywords

Comments

If a(n) is even, then A215976(n)=0 (and n is listed in A215974); the converse is not necessarily true.

Programs

  • Mathematica
    Table[Numerator[Sum[k!/2^k,{k,n}]],{n,0,30}] (* Harvey P. Dale, Jul 02 2017 *)
  • PARI
    a(n)=numerator(sum(k=1,n,k!/2^k))
    
  • PARI
    s=0;for(k=1,29,print1(numerator(s+=k!/2^k),","))
Showing 1-2 of 2 results.