n,k=map(int,input().split())
p=0
for i in range(1,n+1):
  if i<k: p+=4*0.5**len(bin(~-k//i))
  else: p+=1
print(p/n) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k p=0 p 0 for i in range(1,n+1):
  if i<k: p+=4*0.5**len(bin(~-k//i))
  else: p+=1 i range(1,n+1) range 1 n+1 n 1 if i<k: p+=4*0.5**len(bin(~-k//i))
  else: p+=1 i<k i k print(p/n) print p/n p n k=map(int,input().split()) map(int,input().split()) k p=0 0 p n,k=map(int,input().split()) map(int,input().split()) n
n,k=map(int,input().split())
p=0
for i in range(1,n+1):
  if i<k: p+=4*0.5**len(bin(~-k//i))
  else: p+=1
print(p/n)