I've found the following algorithm for calculating the nth digit of pi in base B:
It all makes sense, until you reach the $b=$ inside the second for loop. The whole line is:
$$b=\frac{k}{a^{v(n,k)}}$$ Specifically, the radical in the denominator: $$v(n,k)$$ V is a variable, not a function. What does it mean to apply it as a function to n and k? This also appears many times past that in the algorithm. I've tried researching it, but I haven't found anything.

