n,k=map(int,input().split())
ans=0
for i in range(1,n+1):
	# if(k%i==0):
	score=i
	tmp=0
	while(score<k):
		score=score*2
		tmp=tmp+1
	ans=ans+pow(0.5,tmp)
ans=ans/n
print(ans) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k ans=0 ans 0 for i in range(1,n+1):
	# if(k%i==0):
	score=i
	tmp=0
	while(score<k):
		score=score*2
		tmp=tmp+1
	ans=ans+pow(0.5,tmp) i range(1,n+1) range 1 n+1 n 1 score=i score i tmp=0 tmp 0 while(score<k):
		score=score*2
		tmp=tmp+1
	 score<k score k score=score*2 score score*2 score 2 tmp=tmp+1 tmp tmp+1 tmp 1 ans=ans+pow(0.5,tmp) ans ans+pow(0.5,tmp) ans pow(0.5,tmp) pow 0.5 tmp ans=ans/n ans ans/n ans n print(ans) print ans ans=0 0 ans tmp=0 0 tmp tmp=tmp+1 tmp+1 tmp n,k=map(int,input().split()) map(int,input().split()) n score=i i score ans=ans+pow(0.5,tmp) ans+pow(0.5,tmp) ans score=score*2 score*2 score ans=ans/n ans/n ans k=map(int,input().split()) map(int,input().split()) k
n,k=map(int,input().split())
ans=0
for i in range(1,n+1):
	# if(k%i==0):
	score=i
	tmp=0
	while(score<k):
		score=score*2
		tmp=tmp+1
	ans=ans+pow(0.5,tmp)
ans=ans/n
print(ans)
