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 A364572 #17 Aug 06 2023 17:50:52 %S A364572 7,19,321,139307,262365,264245,528577 %N A364572 Starting from k=7, each subsequent term is the next larger odd k such that A005940(k) >= k and the ratio A005940(k)/k is nearer to 1.0 than for any previous k in the sequence. %e A364572 k A005940(k) A005940(k)/k A005940(k)-k %e A364572 7 9 1.285714286 2 %e A364572 19 21 1.105263158 2 %e A364572 321 323 1.006230530 2 %e A364572 139307 139965 1.004723381 658 %e A364572 262365 263375 1.003849599 1010 %e A364572 264245 264845 1.002270620 600 %e A364572 528577 528581 1.000007567 4. %o A364572 (PARI) print1(7,", "); r = A005940(7)/7; forstep(n=7,1+(2^26),2,t=A005940(n)/n; if(t>=1 && t < r, r=t;print1(n, ", "))) %Y A364572 Cf. A005940. %Y A364572 Cf. also A364573, A364576. %K A364572 nonn,more %O A364572 1,1 %A A364572 _Antti Karttunen_, Aug 06 2023