login
Positions of '2's in the decimal expansion of Pi, where positions 1, 2, 3, ... correspond to digits 3, 1, 4, ...
7

%I #21 Jul 28 2024 11:05:48

%S 7,17,22,29,34,54,64,74,77,84,90,94,103,113,115,136,137,141,150,161,

%T 166,174,186,187,204,222,230,242,245,261,276,281,290,293,299,303,327,

%U 330,334,336,338,355,375,381,407

%N Positions of '2's in the decimal expansion of Pi, where positions 1, 2, 3, ... correspond to digits 3, 1, 4, ...

%C See A037001 for the variant where digits 3, 1, 4, ... correspond to positions 0, 1, 2, ... - _M. F. Hasler_, Jul 28 2024

%H Vincenzo Librandi, <a href="/A053746/b053746.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Ph#Pi314">Index entries for sequences related to the number Pi</a>

%F a(n) = A037001(n) + 1. - _Georg Fischer_, May 31 2021

%e Pi = 3.1415926... where the first '2' occurs as the 7th digit.

%t Flatten[Position[RealDigits[Pi, 10, 1000][[1]], 2]] (* _Vincenzo Librandi_, Oct 07 2013 *)

%o (PARI) A053746_upto(N=999)={localprec(N+20); select(d->d==2, digits(Pi\10^-N), 1)} \\ _M. F. Hasler_, Jul 28 2024

%Y Cf. A000796 (decimal expansion (or digits) of Pi).

%Y Cf. A037001 (= a(n) - 1: the same with different offset).

%Y Cf. A053745 - A053753 (similar for digits 1 through 9).

%Y Cf. A035117 (first occurrence of at least n '1's), A050281 (n '2's), A050282, A050283, A050284, A050286, A050287, A048940 (n '9's).

%Y 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).

%Y Cf. A121280 = A068987 - 1: position of "123...n" in Pi's decimals.

%Y Cf. A176341: first occurrence of n in Pi's digits.

%Y Cf. A088566 (primes in this sequence).

%K nonn,base

%O 1,1

%A _Simon Plouffe_, Feb 20 2000

%E Changed offset from 0 to 1 by _Vincenzo Librandi_, Oct 07 2013