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.

A072612 Minimal value of { abs(n-sigma(k)) : k>0 }.

Original entry on oeis.org

0, 1, 0, 0, 1, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 2, 1, 0, 1, 2, 1, 0, 1, 0, 0, 0, 1, 2, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 2, 3, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 2, 3, 2, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1
Offset: 1

Views

Author

Benoit Cloitre, Aug 11 2002

Keywords

Comments

a(A002191(k)) = 0

Programs

  • PARI
    a(n)=vecmin(vector(n,k,abs(n-sigma(k))))

Formula

Conjecture : S(n) = sum( k=1, n, a(k) ) = n + O(sqrt(n)) and more precisely for n large enough : n - (5/2)*sqrt(n) < S(n) < n - (3/2)*sqrt(n)