N,K = map(int,input().split())
P = 0
for i in range(1,N+1):
  j = 0
  t = 1
  while t>0:
    t = K-i*2**j
    j = j+1
  P = P+(1/N)*(1/2)**(j-1)
print(P) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K P = 0 P 0 for i in range(1,N+1):
  j = 0
  t = 1
  while t>0:
    t = K-i*2**j
    j = j+1
  P = P+(1/N)*(1/2)**(j-1) i range(1,N+1) range 1 N+1 N 1 j = 0 j 0 t = 1 t 1 while t>0:
    t = K-i*2**j
    j = j+1
   t>0 t 0 t = K-i*2**j t K-i*2**j K i*2**j i 2**j 2 j j = j+1 j j+1 j 1 P = P+(1/N)*(1/2)**(j-1) P P+(1/N)*(1/2)**(j-1) P (1/N)*(1/2)**(j-1) 1/N 1 N (1/2)**(j-1) 1/2 1 2 j-1 j 1 print(P) print P t = K-i*2**j K-i*2**j t P = P+(1/N)*(1/2)**(j-1) P+(1/N)*(1/2)**(j-1) P P = 0 0 P j = j+1 j+1 j N,K = map(int,input().split()) map(int,input().split()) N K = map(int,input().split()) map(int,input().split()) K j = 0 0 j t = 1 1 t
N,K = map(int,input().split())
P = 0
for i in range(1,N+1):
  j = 0
  t = 1
  while t>0:
    t = K-i*2**j
    j = j+1
  P = P+(1/N)*(1/2)**(j-1)
print(P)