Tính logarit thỏa mãn điều kiện cho trước