def o_to_matsubara_idx_b(o):
    """
    Convert index in "o" convension to bosonic Matsubara index

    Parameters
    ----------
    o 2*n

    Returns n
    -------

    """
    assert o%2 == 0
    return int(o/2)