import math
n, k = map(int, input().split())
s = 0
for p in range(1, n+1):
    if k > p:
        m = math.ceil(math.log2(-(-k//p)))
        s += 0.5**m
    else:
        s += 1

print(s/n) import math math n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k s = 0 s 0 for p in range(1, n+1):
    if k > p:
        m = math.ceil(math.log2(-(-k//p)))
        s += 0.5**m
    else:
        s += 1 p range(1, n+1) range 1 n+1 n 1 if k > p:
        m = math.ceil(math.log2(-(-k//p)))
        s += 0.5**m
    else:
        s += 1 k > p k p m = math.ceil(math.log2(-(-k//p))) m math.ceil(math.log2(-(-k//p))) math.ceil math ceil math.log2(-(-k//p)) math.log2 math log2 -(-k//p) -k//p -k k p s += 0.5**m s 0.5**m 0.5 m s += 1 s 1 print(s/n) print s/n s n m = math.ceil(math.log2(-(-k//p))) math.ceil(math.log2(-(-k//p))) m s += 1 1 s s += 0.5**m 0.5**m s n, k = map(int, input().split()) map(int, input().split()) n s = 0 0 s k = map(int, input().split()) map(int, input().split()) k
import math
n, k = map(int, input().split())
s = 0
for p in range(1, n+1):
    if k > p:
        m = math.ceil(math.log2(-(-k//p)))
        s += 0.5**m
    else:
        s += 1

print(s/n)
