n,k = map(int,input().split())

ans = 0

for i in range(1,n+1):
    if i>=k:
        ans += (1/n)
        continue
    x = 1
    while 1:
        i *= 2
        if i>=k:
            break
        else:x+=1
    ans += (1/n)*(1/2)**x
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 for i in range(1,n+1):
    if i>=k:
        ans += (1/n)
        continue
    x = 1
    while 1:
        i *= 2
        if i>=k:
            break
        else:x+=1
    ans += (1/n)*(1/2)**x i range(1,n+1) range 1 n+1 n 1 if i>=k:
        ans += (1/n)
        continue
     i>=k i k ans += (1/n) ans 1/n 1 n continue x = 1 x 1 while 1:
        i *= 2
        if i>=k:
            break
        else:x+=1
     1 i *= 2 i 2 if i>=k:
            break
        else:x+=1
     i>=k i k break ans += (1/n)*(1/2)**x ans (1/n)*(1/2)**x 1/n 1 n (1/2)**x 1/2 1 2 x print(ans) print ans ans += (1/n) 1/n ans x = 1 1 x k = map(int,input().split()) map(int,input().split()) k i *= 2 2 i ans = 0 0 ans n,k = map(int,input().split()) map(int,input().split()) n ans += (1/n)*(1/2)**x (1/n)*(1/2)**x ans
n,k = map(int,input().split())

ans = 0

for i in range(1,n+1):
    if i>=k:
        ans += (1/n)
        continue
    x = 1
    while 1:
        i *= 2
        if i>=k:
            break
        else:x+=1
    ans += (1/n)*(1/2)**x
print(ans)