def get_base(x):
    """Returns b | b ** i == x[i], or None"""
    x = tuple(x)
    if len(x) >= 2 and x[0] == 1:
        base = x[1]
        for i, xi in enumerate(x):
            if base ** i != xi:
                return
        return base