OFFSET
2,1
COMMENTS
The a(n)-th digit (expressed in base 10) of the base-n expansion of Pi is A316477(n).
LINKS
Jon E. Schoenfield, Table of n, a(n) for n = 2..3000
EXAMPLE
The decimal (i.e., base-10) expansion of Pi is
3.14159265358979323846264338327950...
in which each of the digits 1..9 appears before the first appearance of a digit 0 (= A316477(10)) as the 33rd digit, so a(10) = 33.
Using the characters a..f to represent 10..15, the hexadecimal (i.e., base-16) expansion of Pi is
3.243f6a8885a308d313198a2e03707344a4093822299f31d0
082efa98ec4e6c89452821e638d01377b...
in which each of the digits 0..a and c..f appears before the first appearance of a digit b_16 (= 11_10 = A316477(16)) as the 82nd digit, so a(16) = 82.
MATHEMATICA
a[n_] := Block[{r, k=2}, While[n > Length@ Union[r = RealDigits[Pi, n, k n][[1]]], k++]; Max@ Flatten[Position[r, #, 1, 1] & /@ Range[0, n-1]]]; Array[a, 58, 2] (* Giovanni Resta, Jul 08 2018 *)
CROSSREFS
Cf. A316477 (Last digit to appear in the base-n expansion of Pi).
KEYWORD
nonn,base
AUTHOR
Jon E. Schoenfield, Jul 08 2018
STATUS
approved