login
First digit occurring consecutively exactly n times in Pi's decimal expansion.
2

%I #28 Oct 31 2021 02:40:00

%S 3,3,1,7,0,9,3,4,7,6,1,7,8,9,6

%N First digit occurring consecutively exactly n times in Pi's decimal expansion.

%C A simple variation on this sequence could ignore the 3 before the decimal point, making a(1)=1 instead.

%C a(17) = 6. - _Dmitry Petukhov_, Oct 30 2021

%H Dave Andersen, <a href="http://www.angio.net/pi/piquery">Pi-Search Page</a>

%H Timothy Mullican, <a href="https://storage.googleapis.com/pi50t/index.html">50 trillion digits of pi</a>

%H Peter TrĂ¼b, <a href="https://pi2e.ch/blog/2017/03/10/pi-digits-download/">22.4 trillion digits of pi</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PiDigits.html">Pi Digits.</a>

%e a(3) = 1 because the digit string <8>111<7>, where n=3, d=1, d1=8<>1 and d2=7<>1 in the following general form, occurs in the decimal expansion of Pi with a smaller starting index than all occurrences for n=3 of the string <d1>dd...d (n d's)<d2> for d=0, 2, 3, ..., or 9, where all of these n-digit strings are immediately preceded by some d1<>d and followed by some d2<>d. A049523(3) = 154 gives the starting index of this first occurrence of exactly three consecutive equal digits; i.e. the first 1 in this 111 is the 154th digit of Pi counting the 3 before the decimal point - add 1 to Pi-Search page result - but ignoring the decimal point itself. (<d1> is of course not completely applicable for the case n=1 in determining a(1).>

%Y Cf. A049523 (starting index), A084145 (consecutively at least n times).

%K nonn,base,more

%O 1,1

%A _Rick L. Shepherd_, May 15 2003

%E a(10)-a(11) from _Giovanni Resta_, Oct 02 2019

%E a(12)-a(14) added by _Dmitry Petukhov_, Jan 13 2020

%E a(15) from _Dmitry Petukhov_, Oct 30 2021