from fractions import Fraction

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

case = []
number = []
count = 0
result_a = 0

for i in range(N):
    case.append(i+1)

for j in range(N):
    while case[j] <= K-1:
        case[j] *= 2
        count += 1
    count = 2**count
    number.append(count*N)
    count = 0

for k in range(N):
    number[k] = Fraction(1,number[k])

for l in range(N):
    result_a += number[l]

result_b = float(result_a)
print(result_b) from fractions import Fraction N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K case = [] case [] number = [] number [] count = 0 count 0 result_a = 0 result_a 0 for i in range(N):
    case.append(i+1) i range(N) range N case.append(i+1) case.append case append i+1 i 1 for j in range(N):
    while case[j] <= K-1:
        case[j] *= 2
        count += 1
    count = 2**count
    number.append(count*N)
    count = 0 j range(N) range N while case[j] <= K-1:
        case[j] *= 2
        count += 1
     case[j] <= K-1 case[j] case j K-1 K 1 case[j] *= 2 case[j] case j 2 count += 1 count 1 count = 2**count count 2**count 2 count number.append(count*N) number.append number append count*N count N count = 0 count 0 for k in range(N):
    number[k] = Fraction(1,number[k]) k range(N) range N number[k] = Fraction(1,number[k]) number[k] number k Fraction(1,number[k]) Fraction 1 number[k] number k for l in range(N):
    result_a += number[l] l range(N) range N result_a += number[l] result_a number[l] number l result_b = float(result_a) result_b float(result_a) float result_a print(result_b) print result_b count = 0 0 count result_a += number[l] number[l] result_a N,K=map(int,input().split()) map(int,input().split()) N result_a = 0 0 result_a K=map(int,input().split()) map(int,input().split()) K case = [] [] case count = 0 0 count result_b = float(result_a) float(result_a) result_b count += 1 1 count number = [] [] number count = 2**count 2**count count
from fractions import Fraction

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

case = []
number = []
count = 0
result_a = 0

for i in range(N):
    case.append(i+1)

for j in range(N):
    while case[j] <= K-1:
        case[j] *= 2
        count += 1
    count = 2**count
    number.append(count*N)
    count = 0

for k in range(N):
    number[k] = Fraction(1,number[k])

for l in range(N):
    result_a += number[l]

result_b = float(result_a)
print(result_b)