# -*- coding: utf-8 -*-

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

proba = 0.0

for i in range(1, n+1):
    exp = 0

    while i*(2**exp) < k:
        exp+=1

    proba += (1/n) * (0.5**exp)

print(proba) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k proba = 0.0 proba 0.0 for i in range(1, n+1):
    exp = 0

    while i*(2**exp) < k:
        exp+=1

    proba += (1/n) * (0.5**exp) i range(1, n+1) range 1 n+1 n 1 exp = 0 exp 0 while i*(2**exp) < k:
        exp+=1

     i*(2**exp) < k i*(2**exp) i 2**exp 2 exp k exp+=1 exp 1 proba += (1/n) * (0.5**exp) proba (1/n) * (0.5**exp) 1/n 1 n 0.5**exp 0.5 exp print(proba) print proba exp+=1 1 exp n, k = map(int, input().split()) map(int, input().split()) n proba += (1/n) * (0.5**exp) (1/n) * (0.5**exp) proba exp = 0 0 exp k = map(int, input().split()) map(int, input().split()) k proba = 0.0 0.0 proba
# -*- coding: utf-8 -*-

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

proba = 0.0

for i in range(1, n+1):
    exp = 0

    while i*(2**exp) < k:
        exp+=1

    proba += (1/n) * (0.5**exp)

print(proba)
