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!)
A333243 Prime numbers with prime indices in A262275. 5

%I #33 Nov 18 2022 09:23:39

%S 5,31,59,179,331,431,599,709,919,1153,1297,1523,1787,1847,2381,2477,

%T 2749,3259,3637,3943,4091,4273,4549,5623,5869,6113,6661,6823,7607,

%U 7841,8221,8527,8719,9461,9739,9859,11743,11953,12097,12301,12547,13469,13709,14177

%N Prime numbers with prime indices in A262275.

%C This sequence can also be generated by the N-sieve.

%H Michael De Vlieger, <a href="/A333243/b333243.txt">Table of n, a(n) for n = 1..10000</a>

%H Michael P. May, <a href="https://arxiv.org/abs/1608.08082">On the Properties of Special Prime Number Subsequences</a>, arXiv:1608.08082 [math.GM], 2016-2020.

%H Michael P. May, <a href="https://doi.org/10.35834/2020/3202158">Properties of Higher-Order Prime Number Sequences</a>, Missouri J. Math. Sci. (2020) Vol. 32, No. 2, 158-170; and <a href="https://arxiv.org/abs/2108.04662">arXiv version</a>, arXiv:2108.04662 [math.NT], 2021.

%F a(n) = prime(A262275(n)).

%e a(1) = prime(A262275(1)) = prime(3) = 5.

%p b:= proc(n) option remember;

%p `if`(isprime(n), 1+b(numtheory[pi](n)), 0)

%p end:

%p a:= proc(n) option remember; local p;

%p p:= `if`(n=1, 1, a(n-1));

%p do p:= nextprime(p);

%p if (h-> h>1 and h::odd)(b(p)) then break fi

%p od; p

%p end:

%p seq(a(n), n=1..50); # _Alois P. Heinz_, Mar 15 2020

%t b[n_] := b[n] = If[PrimeQ[n], 1+b[PrimePi[n]], 0];

%t a[n_] := a[n] = Module[{p}, p = If[n==1, 1, a[n-1]]; While[True, p = NextPrime[p]; If[#>1 && OddQ[#]&[b[p]], Break[]]]; p];

%t Array[a, 50] (* _Jean-François Alcover_, Nov 16 2020, after _Alois P. Heinz_ *)

%o (PARI) b(n)={my(k=0); while(isprime(n), k++; n=primepi(n)); k};

%o apply(x->prime(prime(x)), select(n->b(n)%2, [1..500])) \\ _Michel Marcus_, Nov 18 2022

%Y Cf. A078442, A262275, A333242, A333244.

%K nonn

%O 1,1

%A _Michael P. May_, Mar 12 2020

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 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)