N,K = list(map(int,input().split()))
out = 0
for i in range(1,N+1):
    t = 0
    now = i
    while now<K:
        now*=2
        t+=1
    out += 0.5**t
print(out/N) N,K = list(map(int,input().split())) N list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split K out = 0 out 0 for i in range(1,N+1):
    t = 0
    now = i
    while now<K:
        now*=2
        t+=1
    out += 0.5**t i range(1,N+1) range 1 N+1 N 1 t = 0 t 0 now = i now i while now<K:
        now*=2
        t+=1
     now<K now K now*=2 now 2 t+=1 t 1 out += 0.5**t out 0.5**t 0.5 t print(out/N) print out/N out N N,K = list(map(int,input().split())) list(map(int,input().split())) N t = 0 0 t out += 0.5**t 0.5**t out out = 0 0 out t+=1 1 t now*=2 2 now K = list(map(int,input().split())) list(map(int,input().split())) K now = i i now
N,K = list(map(int,input().split()))
out = 0
for i in range(1,N+1):
    t = 0
    now = i
    while now<K:
        now*=2
        t+=1
    out += 0.5**t
print(out/N)
