integer_to_base_k_tuple

mathtools.integer_to_base_k_tuple(n, k)

Nonnegative integer n to base-k tuple.

>>> mathtools.integer_to_base_k_tuple(1066, 10)
(1, 0, 6, 6)

Returns tuple of one or more positive integers.