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!)
A321132 a(n) is the number of iterations of the mapping of x -> pi(x) until n reaches the main line as defined by A007097. 0

%I #8 Nov 09 2018 20:53:08

%S 0,0,0,2,0,2,3,3,3,3,0,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,2,2,2,

%T 2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,

%U 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5

%N a(n) is the number of iterations of the mapping of x -> pi(x) until n reaches the main line as defined by A007097.

%C All primes are either on the main line or will join it before reaching 0, as in A060197 or 1, as in A071578.

%C First occurrence of k, k=0,1,2,...: 1, 4, 7, 17, 59, 277, 1787, 15299, 167449, 2269733, etc.

%C A measure of Primeness - see the Fernandez link.

%H Neil Fernandez, <a href="http://www.borve.org/primeness/FOP.html">An order of primeness, F(p)</a>

%F a(n) = 0 iff n is a member of A007097.

%e a(10) is 3 because the tenth prime is 29 -> 10 -> 4 -> 2 and 2 is A007097(1).

%t f[n_] := Length@ NestWhileList[PrimePi, n, ! MemberQ[{1, 2, 3, 5, 11, 31, 127, 709, 5381, 52711, 648391, 9737333, 174440041}, #] &] - 1; Array[f, 105]

%Y Cf. A000720, A007097, A049076, A060197, A071578, A114537.

%K nonn

%O 1,4

%A _Robert G. Wilson v_, Oct 27 2018

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 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)