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