OFFSET
1,1
COMMENTS
Primes in this sequence are 5, 79, 193, 199, 331, 353, 433, 487, 941, ... - M. F. Hasler, Jul 29 2024
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..369 from M. F. Hasler)
Eric Weisstein's World of Mathematics, Pi Digits.
FORMULA
a(n) = A053753(n) - 1. - M. F. Hasler, Mar 20 2017
a(n) ~ 10*n if Pi is normal (as generally assumed, but yet unproved). - M. F. Hasler, Jul 29 2024
EXAMPLE
The first digit '9' occurs in 3.1415926... at the 5th place after the decimal point, whence a(1) = 5.
MATHEMATICA
Flatten @ Position[ RealDigits[Pi - 3, 10, 500][[1]], 9] (* Robert G. Wilson v, Mar 07 2011 *)
PROG
(PARI) A037007_upto(N=999, d=9)={localprec(N+20); [i-1|i<-[1..#N=digits(Pi\10^-N)], N[i]==d]} \\ M. F. Hasler, Jul 29 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Nicolau C. Saldanha (nicolau(AT)mat.puc-rio.br)
STATUS
approved