#!/usr/bin/env python3
# -*- coding: utf-8 -*-

N, K = map(int, input().split())
res = 0
for i in range(1, N + 1):
    p = 1
    x = i
    while x < K:
        x *= 2
        p /= 2
    res += p
res /= N
print(res) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K res = 0 res 0 for i in range(1, N + 1):
    p = 1
    x = i
    while x < K:
        x *= 2
        p /= 2
    res += p i range(1, N + 1) range 1 N + 1 N 1 p = 1 p 1 x = i x i while x < K:
        x *= 2
        p /= 2
     x < K x K x *= 2 x 2 p /= 2 p 2 res += p res p res /= N res N print(res) print res p = 1 1 p x = i i x x *= 2 2 x N, K = map(int, input().split()) map(int, input().split()) N p /= 2 2 p res = 0 0 res K = map(int, input().split()) map(int, input().split()) K res += p p res res /= N N res
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

N, K = map(int, input().split())
res = 0
for i in range(1, N + 1):
    p = 1
    x = i
    while x < K:
        x *= 2
        p /= 2
    res += p
res /= N
print(res)
