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.

A060778 a(n) = gcd(tau(n+1), tau(n)), where tau = A000005.

Original entry on oeis.org

1, 2, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 4, 1, 1, 2, 2, 2, 2, 4, 2, 2, 1, 1, 4, 2, 2, 2, 2, 2, 2, 4, 4, 1, 1, 2, 4, 4, 2, 2, 2, 2, 6, 2, 2, 2, 1, 3, 2, 2, 2, 2, 4, 4, 4, 4, 2, 2, 2, 2, 2, 1, 1, 4, 2, 2, 2, 4, 2, 2, 2, 2, 2, 6, 2, 4, 2, 2, 5, 1, 2, 2, 4, 4, 4, 4, 2, 2, 4, 2, 2, 4, 4, 4, 2, 2, 6, 3, 1, 2, 2, 2, 8, 4
Offset: 1

Views

Author

Labos Elemer, Apr 26 2001

Keywords

Crossrefs

Programs

  • Mathematica
    GCD@@@Partition[DivisorSigma[0,Range[110]],2,1] (* Harvey P. Dale, May 27 2014 *)
  • PARI
    a(n) = gcd(numdiv(n), numdiv(n+1)); \\ Michel Marcus, Jan 12 2018
    
  • Python
    from math import gcd
    from sympy import divisor_count
    def A060778(n): return gcd(divisor_count(n+1),divisor_count(n)) # Chai Wah Wu, Aug 12 2023

Formula

a(n) = gcd(A000005(n+1), A000005(n)).