OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is 0 (Cooper and Kennedy, 1989). - Amiram Eldar, Jul 10 2020
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
Curtis N. Cooper and Robert E. Kennedy, Chebyshev's inequality and natural density, Amer. Math. Monthly, Vol. 96, No. 2 (1989), pp. 118-124.
FORMULA
A112248(a(n)) = 0.
MATHEMATICA
Select[Range[2, 350], Divisible[#, Floor@Log2@#] &] (* Ivan Neretin, Nov 26 2016 *)
PROG
(Python)
from oeis_sequences.OEISsequences import bisection
def A112249(n):
def f(x):
c, l, a = n+x, x.bit_length(), 2
for i in range(1, l-1):
c += (a-1)//i
a <<= 1
c -= (a-1)//i
if l>1:
c -= x//(l-1)-(a-1)//(l-1)
return c
return bisection(f, n, n) # Chai Wah Wu, Jul 02 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 30 2005
EXTENSIONS
Name corrected by Ivan Neretin, Nov 26 2016
STATUS
approved