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

sum : float = 0.0
for i in range(1,n+1):
    ret : float = 1/n
    tmp = i
    while(tmp < k):
        tmp *= 2
        ret /= 2
    if(tmp != 0):
        sum += ret 
print(sum) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k sum : float = 0.0 sum 0.0 for i in range(1,n+1):
    ret : float = 1/n
    tmp = i
    while(tmp < k):
        tmp *= 2
        ret /= 2
    if(tmp != 0):
        sum += ret  i range(1,n+1) range 1 n+1 n 1 ret : float = 1/n ret 1/n 1 n tmp = i tmp i while(tmp < k):
        tmp *= 2
        ret /= 2
     tmp < k tmp k tmp *= 2 tmp 2 ret /= 2 ret 2 if(tmp != 0):
        sum += ret  tmp != 0 tmp 0 sum += ret sum ret print(sum) print sum k = map(int,input().split()) map(int,input().split()) k sum : float = 0.0 0.0 sum n,k = map(int,input().split()) map(int,input().split()) n ret : float = 1/n 1/n ret ret /= 2 2 ret tmp = i i tmp tmp *= 2 2 tmp sum += ret ret sum
n,k = map(int,input().split())

sum : float = 0.0
for i in range(1,n+1):
    ret : float = 1/n
    tmp = i
    while(tmp < k):
        tmp *= 2
        ret /= 2
    if(tmp != 0):
        sum += ret 
print(sum)