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

ans = 0

for i in range(1, n+1):
    count = 0
    p = i
    while p<k:
        p = p*2
        count +=1
    ans += (1/n)*((1/2)**count)

print(ans) n, k = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split k ans = 0 ans 0 for i in range(1, n+1):
    count = 0
    p = i
    while p<k:
        p = p*2
        count +=1
    ans += (1/n)*((1/2)**count) i range(1, n+1) range 1 n+1 n 1 count = 0 count 0 p = i p i while p<k:
        p = p*2
        count +=1
     p<k p k p = p*2 p p*2 p 2 count +=1 count 1 ans += (1/n)*((1/2)**count) ans (1/n)*((1/2)**count) 1/n 1 n (1/2)**count 1/2 1 2 count print(ans) print ans p = i i p count = 0 0 count ans += (1/n)*((1/2)**count) (1/n)*((1/2)**count) ans ans = 0 0 ans n, k = list(map(int, input().split())) list(map(int, input().split())) n k = list(map(int, input().split())) list(map(int, input().split())) k count +=1 1 count p = p*2 p*2 p
n, k = list(map(int, input().split()))

ans = 0

for i in range(1, n+1):
    count = 0
    p = i
    while p<k:
        p = p*2
        count +=1
    ans += (1/n)*((1/2)**count)

print(ans)