OFFSET
1,2
COMMENTS
LINKS
B. M. M. de Weger, Sums with factorials, NMBRTHRY list, Aug 28 2012
FORMULA
EXAMPLE
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.
MATHEMATICA
sum = 0; Select[Range[0, 10^4], IntegerQ[sum += #!/2^#] &] (* Robert Price, Apr 04 2019 *)
PROG
(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, ", "))
CROSSREFS
KEYWORD
nonn,more
AUTHOR
M. F. Hasler, Aug 29 2012
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
STATUS
approved