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.

A324534 The smallest common prime factor of sigma(n) and A276086(n), or 1 if no such prime exists.

Original entry on oeis.org

1, 3, 2, 1, 2, 1, 2, 3, 1, 3, 2, 1, 2, 3, 2, 1, 2, 1, 2, 3, 2, 3, 2, 5, 1, 3, 2, 1, 2, 1, 2, 3, 2, 3, 2, 7, 2, 3, 2, 3, 2, 1, 2, 3, 2, 3, 2, 1, 1, 3, 2, 7, 2, 5, 2, 3, 2, 3, 2, 7, 2, 3, 2, 1, 2, 1, 2, 3, 2, 3, 2, 5, 2, 3, 2, 5, 2, 7, 2, 3, 1, 3, 2, 7, 2, 3, 2, 3, 2, 1, 2, 3, 2, 3, 2, 7, 2, 3, 2, 7, 2, 1, 2, 3, 2
Offset: 1

Views

Author

Antti Karttunen, Mar 11 2019

Keywords

Crossrefs

Programs

  • PARI
    A276086(n) = { my(i=0,m=1,pr=1,nextpr); while((n>0),i=i+1; nextpr = prime(i)*pr; if((n%nextpr),m*=(prime(i)^((n%nextpr)/pr));n-=(n%nextpr));pr=nextpr); m; };
    A020639(n) = if(1==n, n, factor(n)[1, 1]);
    A324534(n) = A020639(gcd(sigma(n),A276086(n)));

Formula

a(n) = A020639(A324644(n)) = A020639(gcd(A000203(n),A276086(n))).