from fractions import Fraction

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

number = []
count = 0
result_a = 0

for i in range(1,N+1):
    while i <= K-1:
        i *= 2
        count += 1
    count = 2**count
    number.append(count*N)
    count = 0

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

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

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

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

number = []
count = 0
result_a = 0

for i in range(1,N+1):
    while i <= K-1:
        i *= 2
        count += 1
    count = 2**count
    number.append(count*N)
    count = 0

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

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

result_b = float(result_a)
print(result_b)