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.

A166381 a(n) = Sum_{j>n} floor(n^2/j).

Original entry on oeis.org

0, 2, 7, 17, 31, 52, 76, 108, 146, 191, 242, 301, 364, 437, 518, 605, 700, 804, 914, 1034, 1160, 1295, 1438, 1594, 1751, 1921, 2098, 2288, 2483, 2688, 2898, 3119, 3350, 3593, 3845, 4103, 4369, 4647, 4937, 5234, 5540, 5854, 6178, 6512, 6859
Offset: 1

Views

Author

Keywords

Crossrefs

Column sums of A166373.

Programs

  • Maple
    A166381 := proc(n)
        add( floor(n^2/j),j=n+1..n^2) ;
    end proc: # R. J. Mathar, Jul 21 2015
  • Mathematica
    Table[Sum[Floor[n (n - i)/i], {i, n}], {n, 100}]

Formula

a(n) = Sum_{i=1..n} floor(n*(n-i)/i). - Wesley Ivan Hurt, Jan 30 2016