import math
N,K  = (int(x) for x in input().split())
Win  = list(max(math.ceil(math.log2(K/X)),0) for X in range(1,N+1))
Prob = sum(1/(N*pow(2,X)) for X in Win)
print(Prob) import math math int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,K  = (int(x) for x in input().split()) N (int(x) for x in input().split()) K Win  = list(max(math.ceil(math.log2(K/X)),0) for X in range(1,N+1)) Win list(max(math.ceil(math.log2(K/X)),0) for X in range(1,N+1)) list max(math.ceil(math.log2(K/X)),0) max math.ceil(math.log2(K/X)) math.ceil math ceil math.log2(K/X) math.log2 math log2 K/X K X 0 Prob = sum(1/(N*pow(2,X)) for X in Win) Prob sum(1/(N*pow(2,X)) for X in Win) sum 1/(N*pow(2,X)) 1 N*pow(2,X) N pow(2,X) pow 2 X print(Prob) print Prob Prob = sum(1/(N*pow(2,X)) for X in Win) sum(1/(N*pow(2,X)) for X in Win) Prob N,K  = (int(x) for x in input().split()) (int(x) for x in input().split()) N K  = (int(x) for x in input().split()) (int(x) for x in input().split()) K Win  = list(max(math.ceil(math.log2(K/X)),0) for X in range(1,N+1)) list(max(math.ceil(math.log2(K/X)),0) for X in range(1,N+1)) Win
import math
N,K  = (int(x) for x in input().split())
Win  = list(max(math.ceil(math.log2(K/X)),0) for X in range(1,N+1))
Prob = sum(1/(N*pow(2,X)) for X in Win)
print(Prob)