login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A227625
Indicator sequence of primes p > 3: k = p mod 6, if k = 5 then a(n) = -1, if k = 1 then a(n) = 1 else a(n) = 0, a(2) = -1, a(3) = 1.
1
0, -1, 1, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0
OFFSET
1
LINKS
MATHEMATICA
Join[{0, -1, 1}, Table[If[!PrimeQ[n], 0, If[Mod[n, 6] = 1, 1, -1], {n, 4, 100}]] (* T. D. Noe, Jul 20 2013 *)
CROSSREFS
Cf. A129950 (indicator function of twin primes), A010051 (characteristic function of primes: 1 if n is prime else 0).
Sequence in context: A286487 A122257 A332219 * A373497 A129950 A010051
KEYWORD
sign
AUTHOR
Freimut Marschner, Jul 18 2013
STATUS
approved