N,K=map(int,input().split())
P=[1]
for k in range(17):
    P.append(P[-1]/2)

Q=0
for i in range(1,N+1):
    u=0
    x=i
    while x<K:
        u+=1
        x*=2
    Q+=P[u]

print(Q/N) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K P=[1] P [1] 1 for k in range(17):
    P.append(P[-1]/2) k range(17) range 17 P.append(P[-1]/2) P.append P append P[-1]/2 P[-1] P -1 2 Q=0 Q 0 for i in range(1,N+1):
    u=0
    x=i
    while x<K:
        u+=1
        x*=2
    Q+=P[u] i range(1,N+1) range 1 N+1 N 1 u=0 u 0 x=i x i while x<K:
        u+=1
        x*=2
     x<K x K u+=1 u 1 x*=2 x 2 Q+=P[u] Q P[u] P u print(Q/N) print Q/N Q N K=map(int,input().split()) map(int,input().split()) K x*=2 2 x Q=0 0 Q x=i i x Q+=P[u] P[u] Q N,K=map(int,input().split()) map(int,input().split()) N u+=1 1 u u=0 0 u P=[1] [1] P
N,K=map(int,input().split())
P=[1]
for k in range(17):
    P.append(P[-1]/2)

Q=0
for i in range(1,N+1):
    u=0
    x=i
    while x<K:
        u+=1
        x*=2
    Q+=P[u]

print(Q/N)
