n, k = [int(v) for v in input().split()]
rate = []
for i in range(1, n + 1):
    if i >= k:
        rate.append(1)
        continue

    for s in range(1, k):
        score = i * (2 ** s)
        if score >= k:
            rate.append(1 / (2 ** s))
            break

print(sum(rate) / len(rate)) int(v) for v in input().split() for v in input().split() v input().split() ().split () input split for v in input().split() int(v) int v n, k = [int(v) for v in input().split()] n [int(v) for v in input().split()] k rate = [] rate [] for i in range(1, n + 1):
    if i >= k:
        rate.append(1)
        continue

    for s in range(1, k):
        score = i * (2 ** s)
        if score >= k:
            rate.append(1 / (2 ** s))
            break i range(1, n + 1) range 1 n + 1 n 1 if i >= k:
        rate.append(1)
        continue

     i >= k i k rate.append(1) rate.append rate append 1 continue for s in range(1, k):
        score = i * (2 ** s)
        if score >= k:
            rate.append(1 / (2 ** s))
            break s range(1, k) range 1 k score = i * (2 ** s) score i * (2 ** s) i 2 ** s 2 s if score >= k:
            rate.append(1 / (2 ** s))
            break score >= k score k rate.append(1 / (2 ** s)) rate.append rate append 1 / (2 ** s) 1 2 ** s 2 s break print(sum(rate) / len(rate)) print sum(rate) / len(rate) sum(rate) sum rate len(rate) len rate n, k = [int(v) for v in input().split()] [int(v) for v in input().split()] n rate = [] [] rate k = [int(v) for v in input().split()] [int(v) for v in input().split()] k score = i * (2 ** s) i * (2 ** s) score
n, k = [int(v) for v in input().split()]
rate = []
for i in range(1, n + 1):
    if i >= k:
        rate.append(1)
        continue

    for s in range(1, k):
        score = i * (2 ** s)
        if score >= k:
            rate.append(1 / (2 ** s))
            break

print(sum(rate) / len(rate))
