n,k = map(int,input().split())
asum = 0
for i in range(1,n+1):
    a = i
    if a < k:
        for j in range(1,21):
            if a < k:
                a *= 2
            if a >= k:
                break
        asum += (1/n)*((1/2)**j)
    else:
        asum += (1/n)
print(asum) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k asum = 0 asum 0 for i in range(1,n+1):
    a = i
    if a < k:
        for j in range(1,21):
            if a < k:
                a *= 2
            if a >= k:
                break
        asum += (1/n)*((1/2)**j)
    else:
        asum += (1/n) i range(1,n+1) range 1 n+1 n 1 a = i a i if a < k:
        for j in range(1,21):
            if a < k:
                a *= 2
            if a >= k:
                break
        asum += (1/n)*((1/2)**j)
    else:
        asum += (1/n) a < k a k for j in range(1,21):
            if a < k:
                a *= 2
            if a >= k:
                break
         j range(1,21) range 1 21 if a < k:
                a *= 2
             a < k a k a *= 2 a 2 if a >= k:
                break
         a >= k a k break asum += (1/n)*((1/2)**j) asum (1/n)*((1/2)**j) 1/n 1 n (1/2)**j 1/2 1 2 j asum += (1/n) asum 1/n 1 n print(asum) print asum asum = 0 0 asum asum += (1/n)*((1/2)**j) (1/n)*((1/2)**j) asum a *= 2 2 a n,k = map(int,input().split()) map(int,input().split()) n asum += (1/n) 1/n asum k = map(int,input().split()) map(int,input().split()) k a = i i a
n,k = map(int,input().split())
asum = 0
for i in range(1,n+1):
    a = i
    if a < k:
        for j in range(1,21):
            if a < k:
                a *= 2
            if a >= k:
                break
        asum += (1/n)*((1/2)**j)
    else:
        asum += (1/n)
print(asum)