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.

A331283 a(n) = gcd(n, A329605(n)), where A329605(n) gives the number of divisors of primorial inflation of n, A108951(n).

Original entry on oeis.org

1, 2, 1, 1, 1, 6, 1, 4, 9, 2, 1, 4, 1, 2, 3, 1, 1, 6, 1, 4, 3, 2, 1, 2, 1, 2, 1, 4, 1, 6, 1, 2, 3, 2, 1, 3, 1, 2, 3, 20, 1, 6, 1, 4, 1, 2, 1, 12, 1, 2, 3, 4, 1, 2, 1, 8, 3, 2, 1, 30, 1, 2, 1, 1, 1, 6, 1, 4, 3, 2, 1, 18, 1, 2, 3, 4, 1, 6, 1, 8, 1, 2, 1, 12, 1, 2, 3, 8, 1, 10, 1, 4, 3, 2, 1, 2, 1, 2, 1, 5, 1, 6, 1, 8, 3
Offset: 1

Views

Author

Antti Karttunen, Jan 14 2020

Keywords

Crossrefs

Programs

  • PARI
    A331283(n) = if(1==n,1,my(f=factor(n),e=1,m=1); forstep(i=#f~,1,-1, e += f[i,2]; m *= e^(primepi(f[i,1])-if(1==i,0,primepi(f[i-1,1])))); gcd(n,m));

Formula

a(n) = gcd(n, A329605(n)).
a(A002110(n)) = gcd(A002110(n), A000142(1+n)) = A034386(1+n), for n >= 0.