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.

A078153 a(n) = A051201(n) - A000203(n).

Original entry on oeis.org

0, 0, 0, 0, 2, 0, 5, 0, 6, 3, 10, 0, 15, 7, 9, 8, 22, 4, 24, 9, 21, 19, 32, 0, 35, 26, 30, 17, 44, 11, 52, 24, 41, 37, 45, 12, 66, 46, 52, 22, 71, 27, 80, 43, 52, 60, 85, 14, 89, 56, 79, 56, 101, 39, 89, 52, 94, 86, 117, 15, 122, 90, 85, 73, 118, 62, 139, 84, 116, 72, 145, 36
Offset: 1

Views

Author

Labos Elemer, Nov 27 2002

Keywords

Examples

			n=15: sequence of D1 = {floor(15/j)} = {15,7,5,3,3,2,2,1,1,1,1,1,1,1,1}, Union(D1) = {15,7,5,3,2,1} = divisors(15) and {7,2}, a(15) = (15+7+5+3+2+1) - sigma(15) = 7 + 2 = 9.
		

Crossrefs

Programs

  • Mathematica
    Table[Apply[Plus, Union[Table[Floor[w/j], {j, 1, w}]]] -DivisorSigma[1, w], {w, 1, 128}]
  • PARI
    a(n)=my(m=(sqrtint(4*n+1)-1)\2); m*(m+1)/2+sum(k=1, n\(m+1), n\k)-sigma(n) \\ Charles R Greathouse IV, Feb 14 2013