OFFSET
1,1
COMMENTS
See A037001 for the variant where digits 3, 1, 4, ... correspond to positions 0, 1, 2, ... - M. F. Hasler, Jul 28 2024
LINKS
FORMULA
a(n) = A037001(n) + 1. - Georg Fischer, May 31 2021
EXAMPLE
Pi = 3.1415926... where the first '2' occurs as the 7th digit.
MATHEMATICA
Flatten[Position[RealDigits[Pi, 10, 1000][[1]], 2]] (* Vincenzo Librandi, Oct 07 2013 *)
PROG
(PARI) A053746_upto(N=999)={localprec(N+20); select(d->d==2, digits(Pi\10^-N), 1)} \\ M. F. Hasler, Jul 28 2024
CROSSREFS
Cf. A000796 (decimal expansion (or digits) of Pi).
Cf. A037001 (= a(n) - 1: the same with different offset).
Cf. A035117 (first occurrence of at least n '1's), A050281 (n '2's), A050282, A050283, A050284, A050286, A050287, A048940 (n '9's).
Cf. A096755 (first occurrence of exactly n '1's), A096756, A096757, A096758, A096759, A096760, A096761, A096762, A096763 (exactly n '9's), A050279 (exactly n '0's).
Cf. A176341: first occurrence of n in Pi's digits.
Cf. A088566 (primes in this sequence).
KEYWORD
nonn,base
AUTHOR
Simon Plouffe, Feb 20 2000
EXTENSIONS
Changed offset from 0 to 1 by Vincenzo Librandi, Oct 07 2013
STATUS
approved