The given vectors are , and the given base is . In each case the subscripts on the coordinates of the digit vectors increase from left to right. For example, in base if then the indicated decimal expansion is and its representation as a quotient of coprime integers is
Formulas:
with
Raise issues you find with the following code proposed for the task: