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.

Showing 1-1 of 1 results.

A373328 Numbers k such that the difference between T = k*(k+1)/2 = A000217(k) and the largest square <= T reaches a new record.

Original entry on oeis.org

0, 2, 5, 9, 12, 15, 19, 22, 29, 32, 39, 46, 53, 56, 63, 70, 73, 80, 87, 90, 97, 104, 111, 114, 121, 131, 155, 172, 189, 213, 230, 254, 271, 295, 312, 329, 353, 370, 394, 411, 428, 452, 469, 493, 510, 527, 551, 568, 592, 609, 633, 650, 667, 691, 708, 732, 749, 766
Offset: 1

Views

Author

Hugo Pfoertner, Jun 01 2024

Keywords

Crossrefs

A373327 gives the corresponding differences.

Programs

  • Maple
    J:= 0: m:= 0: count:= 1:
    for i from 1 while count < 100 do
      t:= i*(i+1)/2;
      v:= t - floor(sqrt(t))^2;
      if v > m then
        J:= J,i; m:= v; count:= count+1;
       fi
    od:
    J; # Robert Israel, Dec 19 2024
  • PARI
    a373328(nmax) = {my(m=-oo); for(n=0, nmax, my(T=n*(n+1)/2, d=T-sqrtint(T)^2); if(d>m, print1(n, ", "); m=d))};
    a373328(770)
Showing 1-1 of 1 results.