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.

A049835 a(n) = Sum_{k=1..n} T(n,k), array T as in A049834.

Original entry on oeis.org

1, 3, 7, 11, 19, 21, 35, 37, 49, 53, 75, 65, 99, 93, 105, 115, 151, 127, 179, 153, 181, 193, 239, 191, 257, 249, 271, 261, 339, 263, 375, 329, 361, 373, 401, 351, 487, 441, 461, 427, 563, 443, 603, 517, 535, 585, 683, 533, 697, 619, 685, 661, 811, 657, 781, 711
Offset: 1

Views

Author

Keywords

Comments

Also the sum of all the partial quotients in the continued fraction for all rational k/n, for 1 <= k <= n. - Jeffrey Shallit, Jan 31 2023

Crossrefs

Programs

  • Maple
    a:= n-> add(add(i, i=convert(k/n, confrac)), k=1..n):
    seq(a(n), n=1..60);  # Alois P. Heinz, Jan 31 2023
  • Mathematica
    T[n_, k_] := T[n, k] = Which[n < 1 || k < 1, 0, n == k, 1, n < k, T[k, n], True, 1 + T[k, n - k]];
    a[n_] := Sum[T[n, k], {k, 1, n}];
    Table[a[n], {n, 1, 56}] (* Jean-François Alcover, Jan 07 2025 *)

Formula

Yao and Knuth proved that a(n) is asymptotically (6/Pi)^2*n*(log n)^2. - Jeffrey Shallit, Jan 31 2023