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.

A364573 Starting from k=9, 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.

Original entry on oeis.org

9, 35, 267, 8353, 16475, 16543, 132175, 262563, 295175, 1115151, 2098057, 2109697, 8651313, 537938015, 1073787425
Offset: 1

Views

Author

Antti Karttunen, Aug 06 2023

Keywords

Examples

			           k     A005940(k)  A005940(k)/k  k-A005940(k)
           9             7    0.7777778          2
          35            33    0.9428571          2
         267           255    0.9550562         12
        8353          8177    0.9789297        176
       16475         16275    0.9878604        200
       16543         16443    0.9939551        100
      132175        131733    0.9966560        442
      262563        262119    0.9983090        444
      295175        294831    0.9988346        344
     1115151       1114749    0.9996395        402
     2098057       2097851    0.9999018        206
     2109697       2109629    0.9999678         68
     8651313       8651137    0.9999797        176
   537938015     537931935    0.9999887       6080
  1073787425    1073785843    0.9999985       1582.
		

Crossrefs

Programs

  • PARI
    print1(9,", "); r = A005940(9)/9; forstep(n=9,1+(2^31),2,t=A005940(n)/n; if(t<=1 && t > r, r=t;print1(n, ", ")))