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

p = 1/n

ans = 0
for result in range(1, n+1):
    # result = 1,2,3
    k = K
    k /= result
    cnt = 0
    while k > 1:
        k /= 2
        cnt += 1
    ans += p * (0.5)**cnt
print(ans) n, K = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split K p = 1/n p 1/n 1 n ans = 0 ans 0 for result in range(1, n+1):
    # result = 1,2,3
    k = K
    k /= result
    cnt = 0
    while k > 1:
        k /= 2
        cnt += 1
    ans += p * (0.5)**cnt result range(1, n+1) range 1 n+1 n 1 k = K k K k /= result k result cnt = 0 cnt 0 while k > 1:
        k /= 2
        cnt += 1
     k > 1 k 1 k /= 2 k 2 cnt += 1 cnt 1 ans += p * (0.5)**cnt ans p * (0.5)**cnt p (0.5)**cnt 0.5 cnt print(ans) print ans ans = 0 0 ans cnt = 0 0 cnt k /= 2 2 k k /= result result k ans += p * (0.5)**cnt p * (0.5)**cnt ans p = 1/n 1/n p n, K = map(int, input().split()) map(int, input().split()) n K = map(int, input().split()) map(int, input().split()) K cnt += 1 1 cnt k = K K k
n, K = map(int, input().split())

p = 1/n

ans = 0
for result in range(1, n+1):
    # result = 1,2,3
    k = K
    k /= result
    cnt = 0
    while k > 1:
        k /= 2
        cnt += 1
    ans += p * (0.5)**cnt
print(ans)