This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A290977 #75 Jan 11 2022 02:17:29 %S A290977 3,59,209,9314,64015,886287,7348278,85105027 %N A290977 First n-digit number to appear twice in a row in the decimal expansion of Pi. %C A290977 209209 and 305305 appear in Pi before any 2-digit number appears twice in a row. %C A290977 a(n) (n >= 1) begins at the following decimal places: 24, 413, 326, 8239, 107472, 1632152, 9719518. - _Robert G. Wilson v_, Aug 23 2017 %H A290977 David G. Andersen, <a href="http://www.angio.net/pi/piquery">The Pi-Search Page</a>. %e A290977 a(1) = 3 because 3 is the first 1-digit number to appear twice in a row in the decimal expansion of Pi = 3.14159265358979323846264(33)... %t A290977 With[{s = Rest@ First@ RealDigits[N[Pi, 10^4]]}, Keys@ Merge[#, Identity] &@ Table[If[Length@ # > 0, TakeSmallest[#, 1], 0 -> 0] &@ Sort[Map[#[[1, 1]] &, DeleteCases[#, {}]]] &@ Map[SequenceCases[#, {a_, b_} /; b == a + n] &, KeyMap[FromDigits, PositionIndex@ Partition[s, n, 1]]], {n, 4}]] (* _Michael De Vlieger_, Aug 16 2017 *) %t A290977 pi = StringDrop[ ToString[ N[Pi, 1632200]], 2]; f[n_] := Block[{k = 1}, While[ StringTake[pi, {k, k +n -1}] != StringTake[pi, {k +n, k +2n -1}], k++]; k]; Array[f, 6] (* _Robert G. Wilson v_, Aug 17 2017 *) %o A290977 (PARI) eva(n) = subst(Pol(n), x, 10) %o A290977 pistring(n) = default(realprecision, n+10); my(x=Pi); floor(x*10^n) %o A290977 pidigit(n) = pistring(n)-10*pistring(n-1) %o A290977 consecpidigits(pos, len) = my(v=vector(len)); for(k=1, len, v[k]=pidigit(pos+k)); v %o A290977 a(n) = my(v=[], w=[], x=1); while(1, v=consecpidigits(x, n); w=consecpidigits(x+n, n); if(v==w, return(eva(v))); x++) \\ _Felix Fröhlich_, Aug 16 2017 %o A290977 (Python) %o A290977 from sympy import S %o A290977 # download https://stuff.mit.edu/afs/sipb/contrib/pi/pi-billion.txt, then %o A290977 # with open('pi-billion.txt', 'r') as f: pi_digits = f.readline() %o A290977 pi_digits = str(S.Pi.n(3*10**5+2))[:-2] # alternative to above %o A290977 pi_digits = pi_digits.replace(".", "") %o A290977 def a(n): %o A290977 for k in range(1, len(pi_digits)-n): %o A290977 s = pi_digits[k:k+2*n] %o A290977 if s[0] != 0 and s[:len(s)//2] == s[len(s)//2:]: %o A290977 return int(s[:len(s)//2]) %o A290977 print([a(n) for n in range(1, 6)]) # _Michael S. Branicky_, Jan 10 2022 %Y A290977 Cf. A000796, A287994, A290984. %Y A290977 Cf. A050279, A096755, A096756, A096757, A096758, A096759, A096760, A096761, A096762, A096763. %K A290977 base,more,nonn %O A290977 1,1 %A A290977 _Bobby Jacobs_, Aug 16 2017 %E A290977 a(6) from _Robert G. Wilson v_, Aug 19 2017 %E A290977 a(7) from _Bobby Jacobs_, Aug 22 2017 %E A290977 a(8) from _Michael S. Branicky_, Jan 10 2022