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!)
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
Sequence in context: A135136 A137331 A093386 * A288710 A179827 A285133
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)