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 A320718 #6 Oct 24 2018 19:18:02 %S A320718 2191,2344,2524,2788,3562,4058,4677,5030,5349,6076,6145,6256,6320, %T A320718 6442,6454,6902,7232,7488,8119,8152,8245,8366,8553,8567,8591,8746, %U A320718 9260,9361,10536,10735,11095,11407,11534,11781,12227,12312,12663,12815,12940,13015,13333,13676,13873,14065,14123 %N A320718 Indices of primes followed by a gap (distance to next larger prime) of 40. %C A320718 Indices of the primes listed in A126721. %H A320718 <a href="/index/Pri#gaps">Index entries for primes, gaps between</a>. %F A320718 a(n) = A000720(A126721(n)). %F A320718 A320718 = { i > 0 | prime(i+1) = prime(i) + 40 } = A001223^(-1)({40}). %o A320718 (PARI) A(N=100,g=40,p=2,i=primepi(p)-1,L=List())={forprime(q=1+p,,i++; if(p+g==p=q, listput(L,i); N--||break));Vec(L)} \\ returns the list of first N terms of the sequence %Y A320718 Equals A000720 o A126721. %Y A320718 Row 20 of A174349. %Y A320718 Subsequence of A107730 (prime(n+1) ends in same digit as prime(n)). %Y A320718 Indices of 40's in A001223. %Y A320718 Cf. A029707, A029709, A320701, A320702, ..., A320720 (analog for gaps 2, 4, 6, 8, ..., 44), A116493 (gap 70), A116496 (gap 100), A116497 (gap 200), A116495 (gap 210). %K A320718 nonn %O A320718 1,1 %A A320718 _M. F. Hasler_, Oct 19 2018