def max_divisible(a, b):
    """
    Keep dividing(a/b) till it's divisible(a % b == 0)
    e.g.
    Input: a = 300; b = 2
    Output: 75

    :param a:
    :param b:
    :return:
    """
    while a % b == 0:
        a = a / b
    return a