n,k=map(int,input().split());print(sum([1,4/2**len(bin(~-k//i))][i<k]for i in range(1,n+1))/n) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k print(sum([1,4/2**len(bin(~-k//i))][i<k]for i in range(1,n+1))/n) print sum([1,4/2**len(bin(~-k//i))][i<k]for i in range(1,n+1))/n sum([1,4/2**len(bin(~-k//i))][i<k]for i in range(1,n+1)) sum [1,4/2**len(bin(~-k//i))][i<k] [1,4/2**len(bin(~-k//i))] 1 4/2**len(bin(~-k//i)) 4 2**len(bin(~-k//i)) 2 len(bin(~-k//i)) len bin(~-k//i) bin ~-k//i ~-k -k k i i<k i k n n,k=map(int,input().split()) map(int,input().split()) n k=map(int,input().split()) map(int,input().split()) k
n,k=map(int,input().split());print(sum([1,4/2**len(bin(~-k//i))][i<k]for i in range(1,n+1))/n)