n,k = map(int, input().split())
a=[]
while k>1:
    a.append(k)
    k/=2
a.append(k/2)
ans=0
c=0
b=n
while n>=1:
    if n>=a[c]:
        ans+=(2**(-c))*(1/b)
        n-=1
    else:
        c+=1
print(ans) n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k a=[] a [] while k>1:
    a.append(k)
    k/=2 k>1 k 1 a.append(k) a.append a append k k/=2 k 2 a.append(k/2) a.append a append k/2 k 2 ans=0 ans 0 c=0 c 0 b=n b n while n>=1:
    if n>=a[c]:
        ans+=(2**(-c))*(1/b)
        n-=1
    else:
        c+=1 n>=1 n 1 if n>=a[c]:
        ans+=(2**(-c))*(1/b)
        n-=1
    else:
        c+=1 n>=a[c] n a[c] a c ans+=(2**(-c))*(1/b) ans (2**(-c))*(1/b) 2**(-c) 2 -c c 1/b 1 b n-=1 n 1 c+=1 c 1 print(ans) print ans n-=1 1 n n,k = map(int, input().split()) map(int, input().split()) n k/=2 2 k k = map(int, input().split()) map(int, input().split()) k ans=0 0 ans a=[] [] a b=n n b ans+=(2**(-c))*(1/b) (2**(-c))*(1/b) ans c+=1 1 c c=0 0 c
n,k = map(int, input().split())
a=[]
while k>1:
    a.append(k)
    k/=2
a.append(k/2)
ans=0
c=0
b=n
while n>=1:
    if n>=a[c]:
        ans+=(2**(-c))*(1/b)
        n-=1
    else:
        c+=1
print(ans)
