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

import math
result = 0
for i in range(1,n+1):
  num_exp = math.log2(k/i)
  num_exp = max(math.ceil(num_exp),0)
  result += (1/n) * ((1/2)**num_exp)
print(result) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k import math math result = 0 result 0 for i in range(1,n+1):
  num_exp = math.log2(k/i)
  num_exp = max(math.ceil(num_exp),0)
  result += (1/n) * ((1/2)**num_exp) i range(1,n+1) range 1 n+1 n 1 num_exp = math.log2(k/i) num_exp math.log2(k/i) math.log2 math log2 k/i k i num_exp = max(math.ceil(num_exp),0) num_exp max(math.ceil(num_exp),0) max math.ceil(num_exp) math.ceil math ceil num_exp 0 result += (1/n) * ((1/2)**num_exp) result (1/n) * ((1/2)**num_exp) 1/n 1 n (1/2)**num_exp 1/2 1 2 num_exp print(result) print result num_exp = max(math.ceil(num_exp),0) max(math.ceil(num_exp),0) num_exp k=map(int,input().split()) map(int,input().split()) k result += (1/n) * ((1/2)**num_exp) (1/n) * ((1/2)**num_exp) result num_exp = math.log2(k/i) math.log2(k/i) num_exp n,k=map(int,input().split()) map(int,input().split()) n result = 0 0 result
n,k=map(int,input().split())

import math
result = 0
for i in range(1,n+1):
  num_exp = math.log2(k/i)
  num_exp = max(math.ceil(num_exp),0)
  result += (1/n) * ((1/2)**num_exp)
print(result)