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

for i in range(1, n+1):
    if i<k:
        for j in range(1, 18):
            if i*(2**j) >= k:
                e = j
                break
    else:
        e = 0

    ans += (1/n)*(2**(-e))

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:
        for j in range(1, 18):
            if i*(2**j) >= k:
                e = j
                break
    else:
        e = 0

    ans += (1/n)*(2**(-e)) i range(1, n+1) range 1 n+1 n 1 if i<k:
        for j in range(1, 18):
            if i*(2**j) >= k:
                e = j
                break
    else:
        e = 0

     i<k i k for j in range(1, 18):
            if i*(2**j) >= k:
                e = j
                break
     j range(1, 18) range 1 18 if i*(2**j) >= k:
                e = j
                break
     i*(2**j) >= k i*(2**j) i 2**j 2 j k e = j e j break e = 0 e 0 ans += (1/n)*(2**(-e)) ans (1/n)*(2**(-e)) 1/n 1 n 2**(-e) 2 -e e print(ans) print ans ans += (1/n)*(2**(-e)) (1/n)*(2**(-e)) ans k = map(int, input().split()) map(int, input().split()) k e = j j e n, k = map(int, input().split()) map(int, input().split()) n ans = 0 0 ans e = 0 0 e
n, k = map(int, input().split())
ans = 0

for i in range(1, n+1):
    if i<k:
        for j in range(1, 18):
            if i*(2**j) >= k:
                e = j
                break
    else:
        e = 0

    ans += (1/n)*(2**(-e))

print(ans)
