cp's OEIS Frontend

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.

A038099 Numbers k such that k > first location of string of k in decimal expansion of Pi.

This page as a plain text file.
%I A038099 #16 Jul 10 2022 16:06:45
%S A038099 4,5,9,14,15,23,26,32,33,35,38,41,43,46,50,51,53,58,59,62,64,65,69,71,
%T A038099 74,75,78,79,81,82,83,84,86,88,89,92,93,94,95,97,98,99,105,117,132,
%U A038099 141,148,159,164,169,170,172,174,193,197,208,209,211,214,223,229
%N A038099 Numbers k such that k > first location of string of k in decimal expansion of Pi.
%C A038099 'Location' starts from the first digit after the decimal point and refers to the first digit of a(n).
%H A038099 Jinyuan Wang, <a href="/A038099/b038099.txt">Table of n, a(n) for n = 1..2000</a>
%H A038099 Dave Andersen, <a href="http://www.angio.net/pi/piquery">Pi-Search Page</a>
%F A038099 a(n) > A014777(n). - _Michael S. Branicky_, Jul 10 2022
%o A038099 (Python)
%o A038099 from sympy import pi
%o A038099 from itertools import count, islice
%o A038099 digits_of_pi = str(pi.n(10**5))[1:-1]
%o A038099 def agen():
%o A038099     for k in count(1):
%o A038099         kloc = digits_of_pi.find(str(k))
%o A038099         assert kloc > 0, ("Increase precision", k)
%o A038099         if k > kloc: yield k
%o A038099 print(list(islice(agen(), 61))) # _Michael S. Branicky_, Jul 10 2022
%Y A038099 Cf. A000796, A014777, A038100.
%K A038099 nonn,base
%O A038099 1,1
%A A038099 _Patrick De Geest_, Feb 15 1999
%E A038099 Offset changed to 1 by _Jinyuan Wang_, Sep 04 2021