login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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. 2
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,14
LINKS
FORMULA
a(n) = A001221(A160595(n)).
a(n) <= A055734(n).
PROG
(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)));
CROSSREFS
Sequence in context: A143439 A105469 A257857 * A276806 A308427 A252736
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 20 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 8 07:55 EDT 2024. Contains 374148 sequences. (Running on oeis4.)