Maybe it could be more efficient to go the other way round - instead of searching in the digits of pi kind of invert the BBP formula [1] and try to calculate the position of what you are looking for. But because the BBP formula involves rounding this is certainly not a simple task and I have really no idea if anything could be gained.
Comments
Maybe it could be more efficient to go the other way round - instead of searching in the digits of pi kind of invert the BBP formula [1] and try to calculate the position of what you are looking for. But because the BBP formula involves rounding this is certainly not a simple task and I have really no idea if anything could be gained.
[1] http://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%93...
I'm not sure the problem is invertible like that: https://researchspace.auckland.ac.nz/handle/2292/3516
There may be no shortcut.