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!)
A322027 Maximum order of primeness among the prime factors of n; a(1) = 0. 4
0, 1, 2, 1, 3, 2, 1, 1, 2, 3, 4, 2, 1, 1, 3, 1, 2, 2, 1, 3, 2, 4, 1, 2, 3, 1, 2, 1, 1, 3, 5, 1, 4, 2, 3, 2, 1, 1, 2, 3, 2, 2, 1, 4, 3, 1, 1, 2, 1, 3, 2, 1, 1, 2, 4, 1, 2, 1, 3, 3, 1, 5, 2, 1, 3, 4, 2, 2, 2, 3, 1, 2, 1, 1, 3, 1, 4, 2, 1, 3, 2, 2, 2, 2, 3, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
The order of primeness (A078442) of a prime number p is the number of times one must apply A000720 to obtain a nonprime number.
LINKS
N. Fernandez, An order of primeness [cached copy, included at A006450 with permission of the author]
EXAMPLE
a(105) = 3 because the prime factor of 105 = 3*5*7 with maximum order of primeness is 5, with order 3.
MAPLE
with(numtheory):
p:= proc(n) option remember;
`if`(isprime(n), 1+p(pi(n)), 0)
end:
a:= n-> max(0, map(p, factorset(n))):
seq(a(n), n=1..120); # Alois P. Heinz, Nov 24 2018
MATHEMATICA
Table[If[n==1, 0, Max@@(Length[NestWhileList[PrimePi, PrimePi[#], PrimeQ]]&/@FactorInteger[n][[All, 1]])], {n, 100}]
CROSSREFS
Sequence in context: A277818 A324607 A023512 * A088192 A218459 A056062
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 24 2018
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 April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)