n,k=map(int,input().split());result=0
for i in range(1,n+1):
  t=i
  count=0
  while t < k:
    t*=2
    count+=1
  result+=1/n*1/2**count
print(result) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k result=0 result 0 for i in range(1,n+1):
  t=i
  count=0
  while t < k:
    t*=2
    count+=1
  result+=1/n*1/2**count i range(1,n+1) range 1 n+1 n 1 t=i t i count=0 count 0 while t < k:
    t*=2
    count+=1
   t < k t k t*=2 t 2 count+=1 count 1 result+=1/n*1/2**count result 1/n*1/2**count 1/n*1 1/n 1 n 1 2**count 2 count print(result) print result result+=1/n*1/2**count 1/n*1/2**count result t*=2 2 t k=map(int,input().split()) map(int,input().split()) k result=0 0 result count=0 0 count n,k=map(int,input().split()) map(int,input().split()) n t=i i t count+=1 1 count
n,k=map(int,input().split());result=0
for i in range(1,n+1):
  t=i
  count=0
  while t < k:
    t*=2
    count+=1
  result+=1/n*1/2**count
print(result)