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