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.

A061071 Number of distinct values in the list of number of divisors, d(j), j=1...n.

Original entry on oeis.org

1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11
Offset: 1

Views

Author

Labos Elemer, May 28 2001

Keywords

References

  • B. Spearman and K. S. Williams, Handbook of Estimates in the Theory of Numbers, Carleton Math. Lecture Note Series No. 14, 1975; see p. 2.2.

Crossrefs

Cf. A000005.

Programs

  • Mathematica
    a[n_] = Length[Union[Table[DivisorSigma[0, w], {w, 1, n}]]]
  • PARI
    v=[];vector(100,n,t=numdiv(n);v=vecsort(concat(v,t),,8);#v) \\ Charles R Greathouse IV, Dec 12 2012
    
  • Python
    from sympy import divisor_count
    def A061071(n): return len({divisor_count(i) for i in range(1,n+1)}) # Chai Wah Wu, Sep 08 2023

Formula

Erdős & Mirsky show that log a(n) ~ k sqrt(log x)/log log x where k = Pi sqrt(8/3). - Charles R Greathouse IV, Dec 07 2012