import math
n,k=map(int,input().split())
ans=0
for i in range(1,n+1):
  if i>=k:
    ans+=1/n
    continue
  x=(1/n)*pow(2,-1*math.ceil(math.log2(k/i)))
  ans+=x
print(ans) import math math n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k ans=0 ans 0 for i in range(1,n+1):
  if i>=k:
    ans+=1/n
    continue
  x=(1/n)*pow(2,-1*math.ceil(math.log2(k/i)))
  ans+=x i range(1,n+1) range 1 n+1 n 1 if i>=k:
    ans+=1/n
    continue
   i>=k i k ans+=1/n ans 1/n 1 n continue x=(1/n)*pow(2,-1*math.ceil(math.log2(k/i))) x (1/n)*pow(2,-1*math.ceil(math.log2(k/i))) 1/n 1 n pow(2,-1*math.ceil(math.log2(k/i))) pow 2 -1*math.ceil(math.log2(k/i)) -1 math.ceil(math.log2(k/i)) math.ceil math ceil math.log2(k/i) math.log2 math log2 k/i k i ans+=x ans x print(ans) print ans n,k=map(int,input().split()) map(int,input().split()) n ans+=1/n 1/n ans ans+=x x ans k=map(int,input().split()) map(int,input().split()) k x=(1/n)*pow(2,-1*math.ceil(math.log2(k/i))) (1/n)*pow(2,-1*math.ceil(math.log2(k/i))) x ans=0 0 ans
import math
n,k=map(int,input().split())
ans=0
for i in range(1,n+1):
  if i>=k:
    ans+=1/n
    continue
  x=(1/n)*pow(2,-1*math.ceil(math.log2(k/i)))
  ans+=x
print(ans)