n, k = map(int, input().split())
p = 0
for i in range(1, n + 1):
    if i < k:
        count = 1
        while (i * (2 ** count)) < k:
            count += 1
        p += (1 / n) * (0.5 ** count)
    else:
        p += 1 / n
print(p) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k p = 0 p 0 for i in range(1, n + 1):
    if i < k:
        count = 1
        while (i * (2 ** count)) < k:
            count += 1
        p += (1 / n) * (0.5 ** count)
    else:
        p += 1 / n i range(1, n + 1) range 1 n + 1 n 1 if i < k:
        count = 1
        while (i * (2 ** count)) < k:
            count += 1
        p += (1 / n) * (0.5 ** count)
    else:
        p += 1 / n i < k i k count = 1 count 1 while (i * (2 ** count)) < k:
            count += 1
         (i * (2 ** count)) < k i * (2 ** count) i 2 ** count 2 count k count += 1 count 1 p += (1 / n) * (0.5 ** count) p (1 / n) * (0.5 ** count) 1 / n 1 n 0.5 ** count 0.5 count p += 1 / n p 1 / n 1 n print(p) print p n, k = map(int, input().split()) map(int, input().split()) n p += (1 / n) * (0.5 ** count) (1 / n) * (0.5 ** count) p count = 1 1 count p += 1 / n 1 / n p p = 0 0 p count += 1 1 count k = map(int, input().split()) map(int, input().split()) k
n, k = map(int, input().split())
p = 0
for i in range(1, n + 1):
    if i < k:
        count = 1
        while (i * (2 ** count)) < k:
            count += 1
        p += (1 / n) * (0.5 ** count)
    else:
        p += 1 / n
print(p)
