n,k = map(int,input().strip().split())
c = 0
for i in range(1,n+1):
  if i>k:
    c+=1/n
  else:
    cnt=0
    while i<k:
      i*=2
      cnt+=1
    c+=1/n*(1/2)**cnt
print(c) n,k = map(int,input().strip().split()) n map(int,input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split k c = 0 c 0 for i in range(1,n+1):
  if i>k:
    c+=1/n
  else:
    cnt=0
    while i<k:
      i*=2
      cnt+=1
    c+=1/n*(1/2)**cnt i range(1,n+1) range 1 n+1 n 1 if i>k:
    c+=1/n
  else:
    cnt=0
    while i<k:
      i*=2
      cnt+=1
    c+=1/n*(1/2)**cnt i>k i k c+=1/n c 1/n 1 n cnt=0 cnt 0 while i<k:
      i*=2
      cnt+=1
     i<k i k i*=2 i 2 cnt+=1 cnt 1 c+=1/n*(1/2)**cnt c 1/n*(1/2)**cnt 1/n 1 n (1/2)**cnt 1/2 1 2 cnt print(c) print c cnt=0 0 cnt c = 0 0 c c+=1/n 1/n c c+=1/n*(1/2)**cnt 1/n*(1/2)**cnt c n,k = map(int,input().strip().split()) map(int,input().strip().split()) n cnt+=1 1 cnt k = map(int,input().strip().split()) map(int,input().strip().split()) k i*=2 2 i
n,k = map(int,input().strip().split())
c = 0
for i in range(1,n+1):
  if i>k:
    c+=1/n
  else:
    cnt=0
    while i<k:
      i*=2
      cnt+=1
    c+=1/n*(1/2)**cnt
print(c)
