OFFSET
1,5
COMMENTS
Also, integer part of the mean subinterval length in the partition of [0,n] by the divisors of n.
If the first occurrence of m in the sequence is greater than all preceding terms, the corresponding n is noncomposite. - Donald Sampson (Marsquo(AT)hotmail.com), Dec 10 2003
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The divisors of 9 partition the closed interval [0,9] into subintervals [0,1), [1,3), [3,9], with lengths 1, 2, 6, respectively. The mean of these lengths has integer part = 3. Hence a(9) = 3.
MATHEMATICA
<< Statistics`DescriptiveStatistics` f[n_] := Module[{d, l, a, i}, d = Divisors[n]; l = Length[d]; a = {1}; For[i = 1, i <= l - 1, i++, a = Append[a, d[[i + 1]] - d[[i]]]]; a]; Table[Floor[Mean[f[i]]], {i, 1, 100}]
Table[Floor[n/DivisorSigma[0, n]], {n, 90}] (* Harvey P. Dale, Jun 10 2016 *)
PROG
(Python)
from sympy import divisor_count
def A078709(n): return n//divisor_count(n) # Chai Wah Wu, Jun 03 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Dec 19 2002
EXTENSIONS
Replaced definition with a simpler definition suggested by Reinhard Zumkeller, Feb 26 2003. The original definition is now a comment. - N. J. A. Sloane, Jun 19 2022
STATUS
approved