from decimal import Decimal
from fractions import Fraction
n, k = map(int, input().split())

prob = []

for base in range(1, n+1):
  p = 0
  while (base < k):
    p += 1
    base = base * 2
  prob.append(Fraction(1, n * (2 ** p)))
print(Decimal(sum(prob).numerator / sum(prob).denominator)) from decimal import Decimal from fractions import Fraction n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k prob = [] prob [] for base in range(1, n+1):
  p = 0
  while (base < k):
    p += 1
    base = base * 2
  prob.append(Fraction(1, n * (2 ** p))) base range(1, n+1) range 1 n+1 n 1 p = 0 p 0 while (base < k):
    p += 1
    base = base * 2
   base < k base k p += 1 p 1 base = base * 2 base base * 2 base 2 prob.append(Fraction(1, n * (2 ** p))) prob.append prob append Fraction(1, n * (2 ** p)) Fraction 1 n * (2 ** p) n 2 ** p 2 p print(Decimal(sum(prob).numerator / sum(prob).denominator)) print Decimal(sum(prob).numerator / sum(prob).denominator) Decimal sum(prob).numerator / sum(prob).denominator sum(prob).numerator (prob) sum prob numerator sum(prob).denominator (prob) sum prob denominator n, k = map(int, input().split()) map(int, input().split()) n base = base * 2 base * 2 base k = map(int, input().split()) map(int, input().split()) k p += 1 1 p prob = [] [] prob p = 0 0 p
from decimal import Decimal
from fractions import Fraction
n, k = map(int, input().split())

prob = []

for base in range(1, n+1):
  p = 0
  while (base < k):
    p += 1
    base = base * 2
  prob.append(Fraction(1, n * (2 ** p)))
print(Decimal(sum(prob).numerator / sum(prob).denominator))
