login
A072612
Minimal value of { abs(n-sigma(k)) : k>0 }.
0
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,10
COMMENTS
a(A002191(k)) = 0
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)
PROG
(PARI) a(n)=vecmin(vector(n, k, abs(n-sigma(k))))
CROSSREFS
Sequence in context: A049816 A328958 A143542 * A116378 A321854 A227839
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Aug 11 2002
STATUS
approved