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.

A303781 a(2) = 1; for n <> 2, a(n) = gcd(n, A000005(n)), where A000005(n) = number of divisors of n.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Apr 30 2018

Keywords

Comments

Except for a(2) = 1, a(n) = A009191(n).

Crossrefs

Programs

  • Mathematica
    Join[{1,1},Table[GCD[n,DivisorSigma[0,n]],{n,3,110}]] (* Harvey P. Dale, Mar 20 2023 *)
  • PARI
    A303781(n) = if(2==n,1,gcd(n,numdiv(n)));

Formula

a(2) = 1; for n <> 2, a(n) = gcd(n, A000005(n)).