n,k=map(int,input().split())
d=[2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288]

coin=[]
for i in range(1,n+1):
  if i>=k:
    coin.append(1)
    continue
  for j in range(19):
    if i*d[j] >= k:
      coin.append(0.5**(j+1))
      break
print(sum(coin)/n) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k d=[2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288] d [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288] 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 coin=[] coin [] for i in range(1,n+1):
  if i>=k:
    coin.append(1)
    continue
  for j in range(19):
    if i*d[j] >= k:
      coin.append(0.5**(j+1))
      break i range(1,n+1) range 1 n+1 n 1 if i>=k:
    coin.append(1)
    continue
   i>=k i k coin.append(1) coin.append coin append 1 continue for j in range(19):
    if i*d[j] >= k:
      coin.append(0.5**(j+1))
      break j range(19) range 19 if i*d[j] >= k:
      coin.append(0.5**(j+1))
      break i*d[j] >= k i*d[j] i d[j] d j k coin.append(0.5**(j+1)) coin.append coin append 0.5**(j+1) 0.5 j+1 j 1 break print(sum(coin)/n) print sum(coin)/n sum(coin) sum coin n n,k=map(int,input().split()) map(int,input().split()) n d=[2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288] [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288] d coin=[] [] coin k=map(int,input().split()) map(int,input().split()) k
n,k=map(int,input().split())
d=[2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288]

coin=[]
for i in range(1,n+1):
  if i>=k:
    coin.append(1)
    continue
  for j in range(19):
    if i*d[j] >= k:
      coin.append(0.5**(j+1))
      break
print(sum(coin)/n)