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.

A129315 Where records occur in A127356.

This page as a plain text file.
%I A129315 #9 Nov 12 2022 02:14:34
%S A129315 1,2,3,10,13,77,92,152,294,484,517,964,1203,2876,14118,34279,81191,
%T A129315 103862,115370,195097,334816,347938,2126572,2787194,3034023,5707120,
%U A129315 16513290,17861702,19454321,206814544,500017558,551865394,716440254,891826049,1383516280
%N A129315 Where records occur in A127356.
%e A129315 The fifth record in A127356 is A129314(5) = 24 = A127356(13), hence a(5) = 13.
%o A129315 (Python)
%o A129315 from itertools import count, islice
%o A129315 from sympy import isprime, nextprime, prime
%o A129315 def agen():
%o A129315     pn = 2; record = 1; yield 1
%o A129315     for n in count(2):
%o A129315         k, pn = 2, nextprime(pn)
%o A129315         while not isprime(pn + k*k): k += 2
%o A129315         if k > record: record = k; yield n
%o A129315 print(list(islice(agen(), 20))) # _Michael S. Branicky_, Nov 11 2022
%Y A129315 Cf. A127356, A129314 (records).
%K A129315 nonn
%O A129315 1,2
%A A129315 _Klaus Brockhaus_, Apr 09 2007
%E A129315 a(27)-a(33) from _Donovan Johnson_, Dec 09 2008
%E A129315 a(34)-a(35) from _Michael S. Branicky_, Nov 11 2022