n,k=map(int, input().split())
ans=0
import math
for i in range(1,n+1):
    sikou=math.ceil(math.log((k/i),2))
    if sikou<0:
        sikou=0
    ans+=(1/n)*0.5**sikou
print(ans) n,k=map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k ans=0 ans 0 import math math for i in range(1,n+1):
    sikou=math.ceil(math.log((k/i),2))
    if sikou<0:
        sikou=0
    ans+=(1/n)*0.5**sikou i range(1,n+1) range 1 n+1 n 1 sikou=math.ceil(math.log((k/i),2)) sikou math.ceil(math.log((k/i),2)) math.ceil math ceil math.log((k/i),2) math.log math log k/i k i 2 if sikou<0:
        sikou=0
     sikou<0 sikou 0 sikou=0 sikou 0 ans+=(1/n)*0.5**sikou ans (1/n)*0.5**sikou 1/n 1 n 0.5**sikou 0.5 sikou print(ans) print ans sikou=0 0 sikou n,k=map(int, input().split()) map(int, input().split()) n k=map(int, input().split()) map(int, input().split()) k ans=0 0 ans ans+=(1/n)*0.5**sikou (1/n)*0.5**sikou ans sikou=math.ceil(math.log((k/i),2)) math.ceil(math.log((k/i),2)) sikou
n,k=map(int, input().split())
ans=0
import math
for i in range(1,n+1):
    sikou=math.ceil(math.log((k/i),2))
    if sikou<0:
        sikou=0
    ans+=(1/n)*0.5**sikou
print(ans)