n, k = map(int , input().split())
ans = 0
for i in range(1, n+1):
    now = i
    j = 0
    while now <= k-1:
        now *= 2
        j += 1
    res = n*pow(2,j)
    ans += 1/res
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):
    now = i
    j = 0
    while now <= k-1:
        now *= 2
        j += 1
    res = n*pow(2,j)
    ans += 1/res i range(1, n+1) range 1 n+1 n 1 now = i now i j = 0 j 0 while now <= k-1:
        now *= 2
        j += 1
     now <= k-1 now k-1 k 1 now *= 2 now 2 j += 1 j 1 res = n*pow(2,j) res n*pow(2,j) n pow(2,j) pow 2 j ans += 1/res ans 1/res 1 res print(ans) print ans n, k = map(int , input().split()) map(int , input().split()) n k = map(int , input().split()) map(int , input().split()) k res = n*pow(2,j) n*pow(2,j) res j += 1 1 j now *= 2 2 now ans += 1/res 1/res ans now = i i now ans = 0 0 ans j = 0 0 j
n, k = map(int , input().split())
ans = 0
for i in range(1, n+1):
    now = i
    j = 0
    while now <= k-1:
        now *= 2
        j += 1
    res = n*pow(2,j)
    ans += 1/res
print(ans)