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.

A145339 a(n) = the minimum of d(p(n)-1) and d(p(n)+1), where d(m) is the number of divisors of m and p(n) is the n-th prime.

Original entry on oeis.org

1, 2, 3, 4, 4, 4, 5, 6, 4, 6, 6, 4, 8, 6, 4, 6, 4, 4, 6, 8, 4, 8, 4, 8, 6, 8, 8, 4, 8, 8, 8, 8, 8, 8, 6, 8, 4, 6, 4, 6, 4, 8, 8, 4, 9, 12, 6, 8, 4, 8, 8, 8, 6, 8, 8, 4, 6, 10, 4, 8, 6, 6, 12, 8, 4, 6, 6, 6, 4, 12, 8, 4, 8, 8, 12, 4, 6, 4, 8, 8, 8, 4, 8, 8, 8, 8, 14, 4, 12, 10, 4, 4, 8, 12, 8, 4, 6, 12, 6, 4, 6
Offset: 1

Views

Author

Leroy Quet, Oct 08 2008

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Min[DivisorSigma[0, Prime[n]-1], DivisorSigma[0, Prime[n]+1]], {n, 1, 100}] (* Stefan Steinerberger, Oct 11 2008 *)
  • PARI
    a(n) = my(p = prime(n)); min(numdiv(p-1), numdiv(p+1)); \\ Michel Marcus, Sep 28 2018

Extensions

More terms from Stefan Steinerberger and Ray Chandler, Oct 11 2008