OFFSET
1,1
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..100000
Michael P. May, Properties of Higher-Order Prime Number Sequences, Missouri J. Math. Sci. (2020) Vol. 32, No. 2, 158-170; and arXiv version, arXiv:2108.04662 [math.NT], 2021.
FORMULA
a(n) = A078442(n) mod 2
MATHEMATICA
Select[Prime@ Range@ 75, EvenQ@ Length@ NestWhileList[ PrimePi, #, PrimeQ] &]
PROG
(PARI) A078442(n) = my(k=0); while(isprime(n), k++; n=primepi(n)); k;
a(n) = A078442(n) % 2; \\ Michel Marcus, Jun 15 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael P. May, Jun 01 2024
STATUS
approved