n,k=map(int,input().split())
p=0
for i in range(1,n+1): p+=[1,4/2**len(bin(~-k//i))][i<k]
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): p+=[1,4/2**len(bin(~-k//i))][i<k] i range(1,n+1) range 1 n+1 n 1 print(p/n) print p/n p n n,k=map(int,input().split()) map(int,input().split()) n k=map(int,input().split()) map(int,input().split()) k p=0 0 p
n,k=map(int,input().split())
p=0
for i in range(1,n+1): p+=[1,4/2**len(bin(~-k//i))][i<k]
print(p/n)