How to find 'self locating digits' in irrational numbers

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
prane
Messages
23
Reaction score
0
Let us take the most mainstream irrational out there, (Pi).

Now write (Pi) as:

3.
14159265...

Let us number the decimals of Pi.

0 gets paired with 1
1 gets paired with 4
2 gets paired with 1
.
.
.
6 gets paired with 6

Thus 6 is a self locating digit.

My question is then how do we devise a method to find these self locating digits in a fast way.

This is how I've gone about it.

consider λ=(Pi)-3=0.14159265...

now consider digit number n, that is, the digit that is n places along:

0 gets paired with 1
1 gets paired with 4
2 gets paired with 1
.
.
.
6 gets paired with 6
.
.
.
n gets paired with x

We need an algorithm for finding out what x is without writing the whole of λ out.

Consider a new rational number, ρ.

Let ρ_n be the number which terminates at digit n.

Then ρ_n=0.1415926...x
ρ_(n-1)=0.1415926...w where w is the (n-1)th digit etc

Now consider (ρ_n)*10^(n+1) this is equal to 1415926...x. Let us call this new number β.

We can then find what x is by subtracting ρ_(n-1)*10^(n) from β.

Now if the x = n we have a self locating digit.

This method isn't terribly practical as we still have to basically know what ρ_n is.

Maybe I'll come up with an improvement after some thought but in the mean time I'd love to see what you guys come up with :)
 
Physics news on Phys.org
prane said:
My question is then how do we devise a method to find these self locating digits in a fast way.


This method isn't terribly practical as we still have to basically know what ρ_n is.

Right, the problem is that we have no formula for the n-th digit of pi that doesn't involve calculating all the preceding digits.

But it turns out that someone did find such a formula. It only works in base 16, but it's still amazing that such an algorithm exists.

http://en.wikipedia.org/wiki/Bailey–Borwein–Plouffe_formula
 
It is a formula for all digits. But if you want to calculate a specific one, you can calculate it quickly, the wikipedia page explains how.

By the way, what happens to the 11th digit in base 10, for example? A digit cannot be "11" there.