N, K = map(int, input().split())

result = 0
for i in range(1, N+1):
    score = i
    sub_prob_recip = N
    while score < K:
        sub_prob_recip *= 2
        score *= 2
    result += 1/sub_prob_recip

print(result) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K result = 0 result 0 for i in range(1, N+1):
    score = i
    sub_prob_recip = N
    while score < K:
        sub_prob_recip *= 2
        score *= 2
    result += 1/sub_prob_recip i range(1, N+1) range 1 N+1 N 1 score = i score i sub_prob_recip = N sub_prob_recip N while score < K:
        sub_prob_recip *= 2
        score *= 2
     score < K score K sub_prob_recip *= 2 sub_prob_recip 2 score *= 2 score 2 result += 1/sub_prob_recip result 1/sub_prob_recip 1 sub_prob_recip print(result) print result result += 1/sub_prob_recip 1/sub_prob_recip result score = i i score N, K = map(int, input().split()) map(int, input().split()) N sub_prob_recip *= 2 2 sub_prob_recip K = map(int, input().split()) map(int, input().split()) K score *= 2 2 score result = 0 0 result sub_prob_recip = N N sub_prob_recip
N, K = map(int, input().split())

result = 0
for i in range(1, N+1):
    score = i
    sub_prob_recip = N
    while score < K:
        sub_prob_recip *= 2
        score *= 2
    result += 1/sub_prob_recip

print(result)
