def METHOD_NAME(n, b, n_operations):
    number_arr = np.zeros(n_operations, dtype=int)
    i = n_operations - 1
    while (n != 0):
        number_arr[i] = n % b
        n = n // b
        i -= 1
    return number_arr[::-1]