from math import log2, ceil
n, k = map(int, input().split())
dic = {}
for i in range(1, n + 1):
  x = max(0, ceil(log2(k / i)))
  dic.setdefault(x, 0)
  dic[x] += 1
res = 0
for i in dic:
  res += (dic[i] * (2 ** -i))
print(res / n) from math import log2, ceil n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k dic = {} dic {} for i in range(1, n + 1):
  x = max(0, ceil(log2(k / i)))
  dic.setdefault(x, 0)
  dic[x] += 1 i range(1, n + 1) range 1 n + 1 n 1 x = max(0, ceil(log2(k / i))) x max(0, ceil(log2(k / i))) max 0 ceil(log2(k / i)) ceil log2(k / i) log2 k / i k i dic.setdefault(x, 0) dic.setdefault dic setdefault x 0 dic[x] += 1 dic[x] dic x 1 res = 0 res 0 for i in dic:
  res += (dic[i] * (2 ** -i)) i dic res += (dic[i] * (2 ** -i)) res dic[i] * (2 ** -i) dic[i] dic i 2 ** -i 2 -i i print(res / n) print res / n res n k = map(int, input().split()) map(int, input().split()) k x = max(0, ceil(log2(k / i))) max(0, ceil(log2(k / i))) x n, k = map(int, input().split()) map(int, input().split()) n dic = {} {} dic res += (dic[i] * (2 ** -i)) dic[i] * (2 ** -i) res res = 0 0 res
from math import log2, ceil
n, k = map(int, input().split())
dic = {}
for i in range(1, n + 1):
  x = max(0, ceil(log2(k / i)))
  dic.setdefault(x, 0)
  dic[x] += 1
res = 0
for i in dic:
  res += (dic[i] * (2 ** -i))
print(res / n)