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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A219098 Parity of primepi(3^n). 2
 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0 COMMENTS The parity of pi(n) is obtained without calculating pi(n), and much more quickly. See the paper below. LINKS Henri Lifchitz, Parity of pi(n) EXAMPLE For n = 4, primepi(3^4) = 22 = 0 (mod 2). MATHEMATICA Table[Mod[PrimePi[3^n], 2], {n, 0, 25}] (* T. D. Noe, Nov 12 2012 *) CROSSREFS Cf. A006880, A055729, A219071, A219097. Sequence in context: A135136 A137331 A093386 * A288710 A179827 A285133 Adjacent sequences:  A219095 A219096 A219097 * A219099 A219100 A219101 KEYWORD nonn AUTHOR Henri Lifchitz, Nov 11 2012 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.

Last modified August 14 03:14 EDT 2022. Contains 356109 sequences. (Running on oeis4.)