import math
from decimal import Decimal
n,k=map(int,input().split())
a=[0]*(n+1)
for x in range(1,n+1):
  a[x] = max(0, math.ceil(math.log(k,2)- math.log(x,2)))
bunsi = 0
for x in range(1,n+1):
  bunsi += 2**(a[1]-a[x])
print(Decimal(bunsi/(n*2**a[1]))) import math math from decimal import Decimal n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k a=[0]*(n+1) a [0]*(n+1) [0] 0 n+1 n 1 for x in range(1,n+1):
  a[x] = max(0, math.ceil(math.log(k,2)- math.log(x,2))) x range(1,n+1) range 1 n+1 n 1 a[x] = max(0, math.ceil(math.log(k,2)- math.log(x,2))) a[x] a x max(0, math.ceil(math.log(k,2)- math.log(x,2))) max 0 math.ceil(math.log(k,2)- math.log(x,2)) math.ceil math ceil math.log(k,2)- math.log(x,2) math.log(k,2) math.log math log k 2 math.log(x,2) math.log math log x 2 bunsi = 0 bunsi 0 for x in range(1,n+1):
  bunsi += 2**(a[1]-a[x]) x range(1,n+1) range 1 n+1 n 1 bunsi += 2**(a[1]-a[x]) bunsi 2**(a[1]-a[x]) 2 a[1]-a[x] a[1] a 1 a[x] a x print(Decimal(bunsi/(n*2**a[1]))) print Decimal(bunsi/(n*2**a[1])) Decimal bunsi/(n*2**a[1]) bunsi n*2**a[1] n 2**a[1] 2 a[1] a 1 n,k=map(int,input().split()) map(int,input().split()) n bunsi = 0 0 bunsi k=map(int,input().split()) map(int,input().split()) k bunsi += 2**(a[1]-a[x]) 2**(a[1]-a[x]) bunsi a=[0]*(n+1) [0]*(n+1) a
import math
from decimal import Decimal
n,k=map(int,input().split())
a=[0]*(n+1)
for x in range(1,n+1):
  a[x] = max(0, math.ceil(math.log(k,2)- math.log(x,2)))
bunsi = 0
for x in range(1,n+1):
  bunsi += 2**(a[1]-a[x])
print(Decimal(bunsi/(n*2**a[1])))