OFFSET
2,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 2..1000
EXAMPLE
Difference between upper and lower central divisors may be small or relatively large. So neither A060775 nor A033677 are always good central divisors as to their magnitude. n=182,D={1,2,7,13,14,26,91,182}; central divisors={13,14}, difference=1. n=254, D={1,2,127,254}, central divisors={2,127}, a(254)=125. n=p, D={1,p}. Here the central divisors are also marginal ones: a(p)=p-1.
MATHEMATICA
a(n)=Part[Divisors[n], 1+cd[n]]-Part[Divisors[n], cd[n]], where cd[x_] := cd[x_] := Floor[DivisorSigma[0, x]/2]
PROG
(PARI) a(n)={my(d=divisors(n)); if(n>1, d[1 + #d\2] - d[#d\2], 0)} \\ Harry J. Smith, Jul 12 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Apr 27 2001
STATUS
approved