A self-locating string in a decimal expansion is the string of decimal
digits representing a positive integer , without leading zeros, which occurs
beginning at position
. The choice of indexing affects which strings
have this property. For pi, three conventions give the following
initial values (Andersen; Numberphile 2020).
| index of first fractional digit | OEIS | initial values |
| 0 | A064810 | 6, 27, 13598, 43611, ... |
| 1 | A057680 | 1, 16470, 44899, ... |
| 2 | A057679 | 5, 242424, 271070, ... |
In the last convention, the initial integer digit 3 has index 1. The occurrence at the matching position need not be the first occurrence. For example, with the first fractional digit indexed by 1, the string 16470 begins at position 16470 but also at the earlier position 1602 (OEIS A057680).
A related function assigns to a positive integer
the position of its first occurrence
in the fractional part, using its first digit as position 1. Its domain consists
of the positive integers whose decimal
strings occur in pi. A fixed
point
gives a self-locating string, but the example 16470 shows that the converse fails.
Where successive values are defined, iteration of
can produce cycles: starting at 40 gives
70, 96, 180, ... and returns to 40 after 20 steps, with no earlier return. Another
chain is
;
since
,
it reaches a fixed point (Andersen).