A156749 For all numbers k(n) congruent to -1 or +1 (mod 4) starting with k(n) = {3,5,7,9,11,...}, a(k(n)) is incremented by the congruence (mod 4) if k(n) is prime and by 0 if k(n) is composite.
-1, 0, -1, -1, -2, -1, -1, 0, -1, -1, -2, -2, -2, -1, -2, -2, -2, -1, -1, 0, -1, -1, -2, -2, -2, -1, -1, -1, -2, -1, -1, -1, -2, -2, -3, -2, -2, -2, -3, -3, -4, -4, -4, -3, -3, -3, -3, -2, -2, -1, -2, -2, -3, -2, -2, -1, -1, -1, -1, -1, -1, -1, -2, -2, -3, -3, -3, -2, -3, -3
Offset: 1
Keywords
References
- Richard E. Crandall and Carl Pomerance, Prime Numbers: A Computational Perspective
Links
- Daniel Forgues, Table of n, a(n) for n = 1..49999
- A. Granville and G. Martin, Prime Number Races, arXiv:math/0408319 [math.NT], 2004.
- Eric Weisstein, Chebyshev Bias
- Wikipedia, Pink noise
Crossrefs
Programs
-
Mathematica
Table[Which[!PrimeQ[2*n+1], 0, Mod[2*n+1, 4] == 1, 1, True, -1], {n, 1, 100}] // Accumulate (* Jean-François Alcover, Dec 09 2014 *)
Formula
Extensions
Edited by Daniel Forgues, Mar 01 2009, Mar 29 2009
Comments