n,k = map(int, input().split())
ans = 0
for i in range(1,n+1):
  j = i
  b =0
  while j<k:
    j*=2
    b+=1
  ans+=0.5**b
print(ans/n) 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):
  j = i
  b =0
  while j<k:
    j*=2
    b+=1
  ans+=0.5**b i range(1,n+1) range 1 n+1 n 1 j = i j i b =0 b 0 while j<k:
    j*=2
    b+=1
   j<k j k j*=2 j 2 b+=1 b 1 ans+=0.5**b ans 0.5**b 0.5 b print(ans/n) print ans/n ans n ans = 0 0 ans k = map(int, input().split()) map(int, input().split()) k b+=1 1 b j = i i j ans+=0.5**b 0.5**b ans j*=2 2 j n,k = map(int, input().split()) map(int, input().split()) n b =0 0 b
n,k = map(int, input().split())
ans = 0
for i in range(1,n+1):
  j = i
  b =0
  while j<k:
    j*=2
    b+=1
  ans+=0.5**b
print(ans/n)