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

for i in range(1,n+1):
    for j in range(20):
        if 2**j >= k/i:
            l.append(j)
            break

for i in l:
    ans += 1/n * (1/2)**i
print(ans) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k l = [] l [] ans = 0 ans 0 for i in range(1,n+1):
    for j in range(20):
        if 2**j >= k/i:
            l.append(j)
            break i range(1,n+1) range 1 n+1 n 1 for j in range(20):
        if 2**j >= k/i:
            l.append(j)
            break j range(20) range 20 if 2**j >= k/i:
            l.append(j)
            break 2**j >= k/i 2**j 2 j k/i k i l.append(j) l.append l append j break for i in l:
    ans += 1/n * (1/2)**i i l ans += 1/n * (1/2)**i ans 1/n * (1/2)**i 1/n 1 n (1/2)**i 1/2 1 2 i print(ans) print ans k = map(int, input().split()) map(int, input().split()) k ans += 1/n * (1/2)**i 1/n * (1/2)**i ans n, k = map(int, input().split()) map(int, input().split()) n ans = 0 0 ans l = [] [] l
n, k = map(int, input().split())
l = []
ans = 0

for i in range(1,n+1):
    for j in range(20):
        if 2**j >= k/i:
            l.append(j)
            break

for i in l:
    ans += 1/n * (1/2)**i
print(ans)