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.

A339871 Number of primes p for which the p-adic valuation of phi(n) exceeds the p-adic valuation of n-1, with a(1) = 0 by convention.

Original entry on oeis.org

0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 2, 1, 1, 0, 2, 0, 1, 1, 2, 0, 1, 1, 2, 1, 1, 0, 1, 0, 1, 1, 1, 2, 2, 0, 2, 2, 1, 0, 2, 0, 2, 2, 2, 0, 1, 1, 2, 1, 1, 0, 2, 2, 2, 1, 2, 0, 1, 0, 3, 2, 1, 1, 1, 0, 1, 1, 1, 0, 2, 0, 2, 2, 2, 2, 2, 0, 1, 1, 2, 0, 2, 1, 3, 2, 2, 0, 2, 1, 2, 2, 2, 2, 1, 0, 3, 3, 2, 0, 1, 0, 2, 2
Offset: 1

Views

Author

Antti Karttunen, Dec 20 2020

Keywords

Crossrefs

Programs

  • PARI
    A339871(n) = if(1==n,0,my(s=0); for(k=1,n,my(p=prime(k)); if(valuation(eulerphi(n),p)>valuation(n-1,p), s++)); (s));
    
  • PARI
    A339871(n) = if(1==n,0,my(f=factor(eulerphi(n))); sum(i=1,#f~,f[i,2]>valuation(n-1,f[i,1])));
    
  • PARI
    A339871(n) = omega(eulerphi(n)/gcd(n-1,eulerphi(n)));

Formula

a(n) = A001221(A160595(n)).
a(n) <= A055734(n).