OFFSET
1,3
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A000523(n) + O(1). - Charles R Greathouse IV, Dec 26 2013
EXAMPLE
n=7: a(7)=3 because between 5040 and 40320 three powers of 2 occur: 8192, 16384 and 32768.
MATHEMATICA
Table[Floor[Log[2, (w+1)! ]//N]-Floor[Log[2, w! ]//N], {w, 1, 128}]
PROG
(PARI) a(n)=if(n<6, (n+1)\2, log((n+1)!)\log(2)-log(n!)\log(2)) \\ Charles R Greathouse IV, Dec 26 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 19 2003
STATUS
approved